<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>saumya</title>
	<atom:link href="http://saumyaray.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://saumyaray.wordpress.com</link>
	<description>where there is a will, there is a way</description>
	<lastBuildDate>Thu, 05 Nov 2009 11:10:12 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='saumyaray.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/ea2399993b5f9c224014c46643f1fc41?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>saumya</title>
		<link>http://saumyaray.wordpress.com</link>
	</image>
			<item>
		<title>Flashing Again</title>
		<link>http://saumyaray.wordpress.com/2009/11/05/flashing-again/</link>
		<comments>http://saumyaray.wordpress.com/2009/11/05/flashing-again/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 10:58:12 +0000</pubDate>
		<dc:creator>saumya</dc:creator>
				<category><![CDATA[Actionscript3]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://saumyaray.wordpress.com/?p=345</guid>
		<description><![CDATA[As the flashplayer is moving into 10.1 number,I think Flash player 10 itself has a lot to give me as a developer.
What I found recently is there are some amazing magic methods and tools in AS3,FlashPlayer10 and in flashCS4 IDE.
I have attached a FLA having the source code on the first frame to keep things [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=saumyaray.wordpress.com&blog=187844&post=345&subd=saumyaray&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>As the flashplayer is moving into 10.1 number,I think Flash player 10 itself has a lot to give me as a developer.</p>
<p>What I found recently is there are some amazing magic methods and tools in AS3,FlashPlayer10 and in flashCS4 IDE.<br />
I have<a href="http://www.box.net/shared/uvm9ae6h1r" target="_blank"> attached a FLA having the source code on the first frame to keep things simpl</a>e <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>1. The inverse Kinematics (IK) :</strong><br />
This is Flash IDE and I am amazed with the Bones tool and the IK of it.The thing is one can use the IK at</p>
<p>authortime and if required one can make all the IK interactions runtime with just a user selection. Once all the</p>
<p>bones are drawn,select the &#8220;Armature&#8221; layer which &#8220;Bones&#8221; tool creates by default.Now you can see an option in the</p>
<p>properties pannel to make the IK &#8220;runtime&#8221; or &#8220;authortime&#8221; and VOILA!!Thats short,sweet and simple.Yay.</p>
<p>Next we will jump into some actionscript.</p>
<p><strong>2. EXIT_FRAME</strong></p>
<p>We all flash developers are born with &#8220;enterframe&#8221; events with us. Anything,anytime not working,simply write an</p>
<p>enterframe event-handler and throw some debugging code there. Well,for developers from Macromedia Director or</p>
<p>Lingo scripting world coming to Flash almost always miss their weapon,&#8221; to know when&#8221; the framehead leaves the</p>
<p>current frame. The good news is now we have an event named &#8220;EXIT_FRAME&#8221; and this works the same way as</p>
<p>&#8220;ENTER_FRAME&#8221;.So there we go,if we want to controll the frame exactly the way we want,there are two events we can</p>
<p>check for and do the desired stuff in-between.<br />
The attached FLA has got the &#8220;trace&#8221; statements for the enterframe and exitframe events just to make the test.</p>
<p><strong>3. addFrameScript()</strong></p>
<p>Next is the un-documented method of a movieclip.I think this one we all flash developers were looking for a</p>
<p>long time. What it does is, add a script to a frame in the movieclip and rightly called &#8220;addFrameScript()&#8221;. The</p>
<p>example FLA has got the authortime IK animation controlled,by pushing in actionscript into the frame of the</p>
<p>movieclip. The code looks like<br />
this.barClip.addFrameScript(10,myFunc);</p>
<p><strong>4. describeType</strong></p>
<p>I am quite excited to share these. For me these are real new and useful stuff,which make me think again as to how</p>
<p>to write my next flash application. Now the time for debugging,if I am right the first thing one do in a flash</p>
<p>trace statement is<br />
trace(this);<br />
Wow,that gives me the current object on my output panel.What else,if I want to know any property of the object I</p>
<p>will go ahead and do the same trace with the properties in the trace.<br />
trace(this.myProperty);<br />
I really got excited,when I got to know about a nifty function on &#8220;flash.utils&#8221; package.The name of the function</p>
<p>is &#8220;describeType&#8221;.What it does is returns an XML object of the parameter object we pass in to the function.Thats</p>
<p>huge. I mean it gives all the deatils of that object,I mean all the details.</p>
<p>Now I am putting down here, the whole code there in the FLA just in case you want the code only.</p>
<p><strong>import flash.events.*;<br />
this.addEventListener(Event.ENTER_FRAME,onEntry,false,0,true);<br />
this.addEventListener(Event.EXIT_FRAME,onExit,false,0,true);<br />
//import flash.utils.describeType<br />
trace(this.barClip);<br />
this.barClip.addFrameScript(10,myFunc);<br />
function myFunc():void<br />
{<br />
this.barClip.stop();<br />
}<br />
//<br />
function onEntry(e:Event):void<br />
{<br />
trace(&#8216;: Entry on frame : &#8216;,this.currentFrame);<br />
}<br />
function onExit(e:Event):void<br />
{<br />
trace(&#8216;: Exit from frame : &#8216;,this.currentFrame);<br />
if(this.currentFrame==100)<br />
{<br />
this.stop();<br />
this.removeEventListener(Event.ENTER_FRAME,onEntry,false);<br />
this.removeEventListener(Event.EXIT_FRAME,onExit,false);<br />
trace(describeType(e));<br />
this.barClip.addFrameScript(10,null);<br />
this.barClip.play();<br />
}<br />
}</strong></p>
<p>With that I am hoping these tips may open your door to new innovations in the way we script and do stuffs in</p>
<p>Flash.<br />
Happy Flashing. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/saumyaray.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/saumyaray.wordpress.com/345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/saumyaray.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/saumyaray.wordpress.com/345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/saumyaray.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/saumyaray.wordpress.com/345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/saumyaray.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/saumyaray.wordpress.com/345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/saumyaray.wordpress.com/345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/saumyaray.wordpress.com/345/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=saumyaray.wordpress.com&blog=187844&post=345&subd=saumyaray&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://saumyaray.wordpress.com/2009/11/05/flashing-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8870fd415be0cd76928f6128760eafa6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">saumya</media:title>
		</media:content>
	</item>
		<item>
		<title>Why so silence?!</title>
		<link>http://saumyaray.wordpress.com/2009/10/28/why-so-silence/</link>
		<comments>http://saumyaray.wordpress.com/2009/10/28/why-so-silence/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 20:18:47 +0000</pubDate>
		<dc:creator>saumya</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[me]]></category>
		<category><![CDATA[myself]]></category>
		<category><![CDATA[thoughts]]></category>

		<guid isPermaLink="false">http://saumyaray.wordpress.com/?p=343</guid>
		<description><![CDATA[Its a long time. I am silent here!! Am I dead?! I hope no, but if it will be for any longer, I am sure will be dead. Why the silence? Probably its the twitter, which made me lazy. But I can not blame something/someone for my mistake. I admit, I am the culprit here. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=saumyaray.wordpress.com&blog=187844&post=343&subd=saumyaray&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Its a long time. I am silent here!! Am I dead?! I hope no, but if it will be for any longer, I am sure will be dead. Why the silence? Probably its the twitter, which made me lazy. But I can not blame something/someone for my mistake. I admit, I am the culprit here. And will advice everyone who are shifting from blogging to twitting, that twitter is good but so as blogging. So keep the good habits and never leave the blogging community. Finally I am returning here and will try and put up posts regularly. Whether it is technical or not I am not sure now(though,I will try my best to keep it as technical as possible), but the thing is I want to get back to my regular habit of posting something up here.</p>
<p>Thank you all for visiting me and will try to keep up to the expectations <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/saumyaray.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/saumyaray.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/saumyaray.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/saumyaray.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/saumyaray.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/saumyaray.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/saumyaray.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/saumyaray.wordpress.com/343/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/saumyaray.wordpress.com/343/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/saumyaray.wordpress.com/343/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=saumyaray.wordpress.com&blog=187844&post=343&subd=saumyaray&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://saumyaray.wordpress.com/2009/10/28/why-so-silence/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8870fd415be0cd76928f6128760eafa6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">saumya</media:title>
		</media:content>
	</item>
		<item>
		<title>Flash Player 10.1 is announced</title>
		<link>http://saumyaray.wordpress.com/2009/10/06/flash-player-10-1-is-announced/</link>
		<comments>http://saumyaray.wordpress.com/2009/10/06/flash-player-10-1-is-announced/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 06:05:04 +0000</pubDate>
		<dc:creator>saumya</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Actionscript3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://saumyaray.wordpress.com/?p=339</guid>
		<description><![CDATA[Adobe has announced Flash player 10.1 and with it comes a whole new era of Flash applications.It might seem that this is just a point release,but do not get fooled away by the point.For me it seems like a whole new Flash world. There are so many great things coming, the details can be found [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=saumyaray.wordpress.com&blog=187844&post=339&subd=saumyaray&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Adobe has announced Flash player 10.1 and with it comes a whole new era of Flash applications.It might seem that this is just a point release,but do not get fooled away by the point.For me it seems like a whole new Flash world. There are so many great things coming, the details can be found <a href="http://labs.adobe.com/technologies/flashplayer10" target="_blank">here</a> (http://labs.adobe.com/technologies/flashplayer10/)<br />
From developer&#8217;s perspective Global error handling is a one point solutions for all the try-catch blocks. Wow, I am so excited. Then comes multitouch,accelerometer,orientation detection for mobile devices just to name a few. FP10.1 will support HTTP streaming,another great addition to flash player.This is huge again.Now with Flash player 10.1 we will get direct access to microphone. Wow,simply awesome. Flashplayer will take advantage of Hardware acceleration whenever possible,even for Vector graphics and images(<a href="http://www.adobe.com/devnet/logged_in/jchurch_flashplayer10.1.html" target="_blank">http://www.adobe.com/devnet/logged_in/jchurch_flashplayer10.1.html</a>).<br />
Well and the most tremendous part is Full flash player is now available for mobo devices.(<a href="http://www.adobe.com/aboutadobe/pressroom/pressreleases/200910/100509AFPforMobileDevicesandPCs.html">http://www.adobe.com/aboutadobe/pressroom/pressreleases/200910/100509AFPforMobileDevicesandPCs.html</a>)</p>
<p>Last,but not the list is Flash can now make applications for iphone,yeah from Flash CS5 one can directly produce native ObjecticeC code to deploy into iPhone(Obviously one need to go to Apple AppStore for the so called approval,huh!).<br />
<a href="http://www.youtube.com/watch?v=M3CI5GyNXoA" target="_blank">http://www.youtube.com/watch?v=M3CI5GyNXoA</a></p>
<p>Overall for me as a Flash developer this seems to be a new era coming to Flash platform.I can feel the freedom and fun. Long-live Adobe and long-live the Flash/SWF team at Adobe.</p>
<p>References :</p>
<p><a href="http://www.adobe.com/devnet/logged_in/jchurch_flashplayer10.1.html" target="_blank">http://www.adobe.com/devnet/logged_in/jchurch_flashplayer10.1.html</a></p>
<p><a href="http://tv.adobe.com/watch/max-2009-develop/building-mobile-applications-with-adobe-air" target="_blank">http://tv.adobe.com/watch/max-2009-develop/building-mobile-applications-with-adobe-air</a></p>
<p><a href="http://www.adobe.com/aboutadobe/pressroom/pressreleases/200910/100509AFPforMobileDevicesandPCs.html" target="_blank">http://www.adobe.com/aboutadobe/pressroom/pressreleases/200910/100509AFPforMobileDevicesandPCs.html</a></p>
<p><a href="http://www.youtube.com/watch?v=M3CI5GyNXoA" target="_blank">http://www.youtube.com/watch?v=M3CI5GyNXoA</a></p>
<p>Happy Flashing</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/saumyaray.wordpress.com/339/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/saumyaray.wordpress.com/339/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/saumyaray.wordpress.com/339/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/saumyaray.wordpress.com/339/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/saumyaray.wordpress.com/339/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/saumyaray.wordpress.com/339/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/saumyaray.wordpress.com/339/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/saumyaray.wordpress.com/339/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/saumyaray.wordpress.com/339/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/saumyaray.wordpress.com/339/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=saumyaray.wordpress.com&blog=187844&post=339&subd=saumyaray&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://saumyaray.wordpress.com/2009/10/06/flash-player-10-1-is-announced/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8870fd415be0cd76928f6128760eafa6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">saumya</media:title>
		</media:content>
	</item>
		<item>
		<title>Introduction to SQLite on AIR</title>
		<link>http://saumyaray.wordpress.com/2009/08/30/introduction-to-sqlite-on-air/</link>
		<comments>http://saumyaray.wordpress.com/2009/08/30/introduction-to-sqlite-on-air/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 18:52:27 +0000</pubDate>
		<dc:creator>saumya</dc:creator>
				<category><![CDATA[AIR]]></category>
		<category><![CDATA[Actionscript3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[sqlite]]></category>

		<guid isPermaLink="false">http://saumyaray.wordpress.com/?p=337</guid>
		<description><![CDATA[SQLite is a relational database right inside Adobe AIR environment. While its a full fledged relational database system,the real power of  it comes from the ease of use. There is no server to configure,no server to start. Once Adobe Integrated Runtime (AIR) is installed in your system, you are ready to take  advantage of SQLite [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=saumyaray.wordpress.com&blog=187844&post=337&subd=saumyaray&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>SQLite is a relational database right inside Adobe AIR environment. While its a full fledged relational database system,the real power of  it comes from the ease of use. There is no server to configure,no server to start. Once Adobe Integrated Runtime (AIR) is installed in your system, you are ready to take  advantage of SQLite database. Actually SQLite comes with the AIR itself. So there is absolute zero configuration as it is clearly noted in the <a href="http://www.sqlite.org/index.html" target="_blank">SQLite official site</a>.</p>
<p>Now,all that one need to know is the Flash (Actionscript 3.0) APIs to start talking with the Database.</p>
<p>To begin with any database applications,one need to have a database in a database server,start the server,connect to it and then start putting in data or getting the data. Now in this case of SQLite, we already have the initial set up ready for us. I mean as a SQLite developer on Flash platform one need not worry about the server setup and starting the Database server. All one need to concentrate is, connecting to the Database and puting some data in or getting some data out from the database. For once AIR is installed SQLite is up and running,how cool <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ! Now the best part is,all the standard SQL query runs in the SQLite Database too. To get started, one need to create a database or connect to it,if already created. Now SQLite API gives us one syntax to do the both,I mean if the database is already present it just connects to it else it creates the Database for us and then connects to it. The syntax is as below<br />
<span style="color:#3366ff;"><br />
var conn = new SQLConnection();<span style="color:#000000;">//Connect to the DB server</span><br />
<span style="color:#000000;">//adds event listeners to listen for the events</span><br />
var conn.addEventListener(SQLEvent.OPEN, onOpenConnection);<br />
var conn.addEventListener(SQLErrorEvent.ERROR, onConnectionError);<br />
<span style="color:#000000;">//connects or creates and connects to the database</span><br />
var dbFile:File = File.applicationDirectory.resolvePath(&#8220;myDb.db&#8221;);<br />
conn.openAsync(dbFile);<span style="color:#000000;">//actually connecting to the Database</span></span></p>
<p>Thats all to create and connect to the database. By convention the database files are named with extention &#8220;db&#8221;,In this example we are creating a Database file named &#8220;myDb.db&#8221;. The Database is actually stored as a file,as we created now. To make any query to the Database the syntax will go as below</p>
<p><span style="color:#0000ff;">var sqlStatement:SQLStatement = new SQLStatement();</span><br />
<span style="color:#0000ff;">sqlStatement.sqlConnection = conn;</span>//&#8221;conn&#8221; is the connectino we just made with the above code<br />
<span style="color:#0000ff;">var query:String = &#8220;SELECT * FROM friends&#8221;;</span>//This is actual SQL query we are going to run in the Database<br />
<span style="color:#0000ff;">sqlStatement.text = query;</span><br />
//adds event listeners to see if our query ran properly<br />
<span style="color:#0000ff;">sqlStatement.addEventListener(SQLEvent.RESULT, onQueryResult);<br />
sqlStatement.addEventListener(SQLErrorEvent.ERROR, onQueryError);<br />
sqlStatement.execute();</span>//finally calls to run the query in the Database</p>
<p>Thats all to it. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Now to make things easier for my project,I have created a helper class for regular tasks as querying the Database and getting the result. <a href="http://code.google.com/p/sqlite-helper/" target="_blank">Please find the file at google code repository here</a>. Hope that helps you on your day to day task of SQLite development under AIR and Flash platform.</p>
<p>happy flashing</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/saumyaray.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/saumyaray.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/saumyaray.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/saumyaray.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/saumyaray.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/saumyaray.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/saumyaray.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/saumyaray.wordpress.com/337/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/saumyaray.wordpress.com/337/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/saumyaray.wordpress.com/337/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=saumyaray.wordpress.com&blog=187844&post=337&subd=saumyaray&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://saumyaray.wordpress.com/2009/08/30/introduction-to-sqlite-on-air/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8870fd415be0cd76928f6128760eafa6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">saumya</media:title>
		</media:content>
	</item>
		<item>
		<title>10 development environments for iPhone</title>
		<link>http://saumyaray.wordpress.com/2009/08/03/10-development-environments-for-iphone/</link>
		<comments>http://saumyaray.wordpress.com/2009/08/03/10-development-environments-for-iphone/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 13:01:30 +0000</pubDate>
		<dc:creator>saumya</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[frameworks]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[opensource]]></category>

		<guid isPermaLink="false">http://saumyaray.wordpress.com/?p=333</guid>
		<description><![CDATA[On my previous few days of diving  into iPhone development, found some promising environments for the iphone development.
1.  unity ( http://unity3d.com/unity/features/iphone-publishing )
This is an IDE,for 3d Graphical Object authoring which has compelling capabilities regarding the content creation.
Pros : With in-built events handlers(behaviours) and native iphone support looks very promising as far as the content creation [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=saumyaray.wordpress.com&blog=187844&post=333&subd=saumyaray&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>On my previous few days of diving  into iPhone development, found some promising environments for the iphone development.</p>
<p>1.  <a href="http://unity3d.com/unity/features/iphone-publishing">unity </a>( http://unity3d.com/unity/features/iphone-publishing )<br />
This is an IDE,for 3d Graphical Object authoring which has compelling capabilities regarding the content creation.<br />
Pros : With in-built events handlers(behaviours) and native iphone support looks very promising as far as the content creation and delivery are concerned. Full light,shadow and materials in a 3d environment is just a full fledged game development environment. The IDE can be used in both Windows and MAC.<br />
Cons : A very high price tag.</p>
<p>2.  <a href="http://www.garagegames.com/products/torque-2d/iphone">torque2d</a> ( http://www.garagegames.com/products/torque-2d/iphone )<br />
This is an IDE for 2D Graphical Object authoring. WYSIWYG 2D editor at iPhone screen resolution. Has got a <a href="http://www.garagegames.com/products/tge/iphone">3d IDE </a>(http://www.garagegames.com/products/tge/iphone) for iphone.<br />
Pros  : Makes a complete game development environment as the Objects are visual and a custom scripting environment for the obejcts, same kind as Unity but 2D environment. Option to divide the 2D and 3D games as per requirement.<br />
This IDE can be used in both Windows and Mac.<br />
Cons : Still a high price tag and not a clear Licensing model.</p>
<p>3.  <a href="http://www.stonetrip.com/shiva/publish-3d-game-on-iphone.html">ston3d</a> ( http://www.stonetrip.com/shiva/publish-3d-game-on-iphone.html )<br />
This is an IDE(http://www.stonetrip.com/) for 3D authoring as Unity and Torque.<br />
Pros  : Makes a complete game development environment as the Objects are visual and a custom scripting environment for the obejcts, same kind as Unity and Torque.<br />
Runs on both Windows and Mac.<br />
Cons : Still a high price tag (http://www.stonetrip.com/platform/view-all-products.html)<br />
the iphone exporter only works in Mac.</p>
<p><em>The IDEs are too good for a complete game development environment,where the developers and designers work in the same IDE.Graphics can be done and kept as library items and then developers can take those to add the desired behaviour. This will be much like developing the Flash IDE with actionscript. But then all of the people invloved in the development must have teh clear knowledge of the environment and the developers must learn the new languages specific to the IDEs.</em></p>
<p>4. <a href="http://libnui.net/pages/about.php">nui</a> ( http://libnui.net/pages/about.php )<br />
A C++ framework designed to build multiplatform applications on top 3D rendered dynamic layouts.</p>
<p>Pros : platforms supported are iPhone, MacOSX, Win32, Linux<br />
Cons : High price tag, only coding and no graphics IDE will increase the complexity of development.</p>
<p>5. <a href="http://ncannasse.fr/blog/haxe_for_iphone">HAXE</a> (http://ncannasse.fr/blog/haxe_for_iphone)<br />
A language to create projects in multiple platforms.<br />
Pros : An actionscript like language,with which flash developers can get upto speed very fast. Publish the application in different environment(Haxe publishes to SWF,Javascript,PHP and C++ now)<br />
Complete Opensource development.<br />
Cons : The present support for iPhone is a JailBreak one.</p>
<p>6. <a href="http://pyobjc.sourceforge.net/">PyObjC</a> (http://pyobjc.sourceforge.net/)<br />
A python language derivative to create ObjecticveC applications<br />
Pros : Can use Python knowledge to develop. Opensource development.<br />
Cons : Does not make any sense for a flash developer,anyway has to study a new language. At (http://www.saurik.com/id/5) it says one still need to know ObjectiveC.</p>
<p>7. <a href="http://innaworks.com/alcheMo-for-iPhone.html">alcheMo-for-iPhone</a> (http://innaworks.com/alcheMo-for-iPhone.html)<br />
pros : Use java to develop iphone applications. Seems its the only one which does not require Jailbreak or any other tweeks to develop for iPhone in Java.<br />
cons :  Neither Download norLicensing are clear.</p>
<p>8. <a href="http://quickconnect.sourceforge.net/browser/index.html">QuickConnect</a> (http://quickconnect.sourceforge.net/browser/index.html)<br />
A javascript framework to develop iphone apps.<br />
pros : will be easy and fast develoopement as it is in javascript. Multiple platform deployment.Since it is open source and liberally licenced you can use it to develop for your open source, free projects or closed source, for-cost projects.<br />
cons : still a Release candidate.(http://sourceforge.net/projects/quickconnect/)</p>
<p>9. <a href="http://www.xmlvm.org/iphone/">XMLVM</a> (http://www.xmlvm.org/iphone/)<br />
An XML driven iphone application development.<br />
pros : Simple and fast as its all XML. Opensource.<br />
cons : Needs Jail-break (http://plum.sfsu.edu/xml11-external/java4iphone-google.pdf ,page 28)</p>
<p>10. <a href="http://www.cocotron.org/">The Cocotron</a> (http://www.cocotron.org/)<br />
This is an open source project which aims to implement a cross-platform Objective-C API similar to that described by Apple Inc.&#8217;s Cocoa documentation.<br />
pros : Cross platform developement,so can be developed on windows.<br />
cons : Need to learn ObjectiveC. Still seems premature.</p>
<p>While all of the programming environments either seem under heavy development or missing tutorials,its a good idea to keep an eye on them as all of them seem promising. Same with the graphical IDEs. Would like to see HAXE coming up as my personal favorite from a flash developers point of view. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/saumyaray.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/saumyaray.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/saumyaray.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/saumyaray.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/saumyaray.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/saumyaray.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/saumyaray.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/saumyaray.wordpress.com/333/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/saumyaray.wordpress.com/333/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/saumyaray.wordpress.com/333/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=saumyaray.wordpress.com&blog=187844&post=333&subd=saumyaray&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://saumyaray.wordpress.com/2009/08/03/10-development-environments-for-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8870fd415be0cd76928f6128760eafa6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">saumya</media:title>
		</media:content>
	</item>
		<item>
		<title>My first experience with iPhone development</title>
		<link>http://saumyaray.wordpress.com/2009/08/02/my-first-experience-with-iphone-development/</link>
		<comments>http://saumyaray.wordpress.com/2009/08/02/my-first-experience-with-iphone-development/#comments</comments>
		<pubDate>Sun, 02 Aug 2009 10:27:40 +0000</pubDate>
		<dc:creator>saumya</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[osX]]></category>

		<guid isPermaLink="false">http://saumyaray.wordpress.com/?p=331</guid>
		<description><![CDATA[Recently I started diving into iPhone development as a matter of a project requirement. I had never used MAC before and for me the Operating system is new. So I took time to understand things there first.Why? For,iPhone development you must get a MAC running on intel core!!Yeah,you must get into the Leopard Operating sytem [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=saumyaray.wordpress.com&blog=187844&post=331&subd=saumyaray&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Recently I started diving into iPhone development as a matter of a project requirement. I had never used MAC before and for me the Operating system is new. So I took time to understand things there first.Why? For,iPhone development you must get a MAC running on intel core!!Yeah,you must get into the Leopard Operating sytem with an intel core. Next is an IDE and fortunately you are provided with an IDE in MAC named XCode and for visual integration of components the IDE is called InterfaceBuilder. Now to develop for iPhone is to develop in ObjectiveC and its the same language used (except for some package differences) to develop for any other product of MAC and I felt good about that. The framework used is called COCOA and its on top of Objective-C language.<br />
Objective-C is a written on C and its not C++. For a flash AS3 developer (any OOP language developer) it will look the same if you are keen to adopt the new coding standards in the language. The basics are intact as you have classes and events. Everything happens arround them but then there are strict guidelines as to how these classes and event handlers should be written and glued together.Well, the main differrence in Flash and iPhone development will be the player. While SWF still plays its content as a software renderer, Objective-C programs natively plays on the hardware and the UI elements are bitmaps which is in contrast to basic of Flash&#8217;s vector renderer.Obviously one does not have the timeline <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  but there are multi-touch and accelerometer to give one hell lot of a option to play arround.<br />
Well,after one completes a product for iphone one need to send it to Apple for approval of the product to be installed in the iphone. Once approved anyone can get it through AppStore. To submit to AppStore one need an account though,which is not free even for free applications.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/saumyaray.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/saumyaray.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/saumyaray.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/saumyaray.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/saumyaray.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/saumyaray.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/saumyaray.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/saumyaray.wordpress.com/331/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/saumyaray.wordpress.com/331/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/saumyaray.wordpress.com/331/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=saumyaray.wordpress.com&blog=187844&post=331&subd=saumyaray&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://saumyaray.wordpress.com/2009/08/02/my-first-experience-with-iphone-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8870fd415be0cd76928f6128760eafa6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">saumya</media:title>
		</media:content>
	</item>
		<item>
		<title>Rajgad,trekking experience</title>
		<link>http://saumyaray.wordpress.com/2009/06/29/rajgadtrekking-experience/</link>
		<comments>http://saumyaray.wordpress.com/2009/06/29/rajgadtrekking-experience/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 20:21:52 +0000</pubDate>
		<dc:creator>saumya</dc:creator>
				<category><![CDATA[Friends]]></category>
		<category><![CDATA[general]]></category>
		<category><![CDATA[rajgad]]></category>
		<category><![CDATA[trekking]]></category>
		<category><![CDATA[waterford]]></category>

		<guid isPermaLink="false">http://saumyaray.wordpress.com/?p=319</guid>
		<description><![CDATA[Well,this is not the first time I have trekked but this  is obviously this seemed to be the first time to trek after such a long period of time.  The journey was quite safe and sound. We started off from Thane in the midnight,reached Pune in the morning. Then with multiple vehicles&#8217; shifting  from one [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=saumyaray.wordpress.com&blog=187844&post=319&subd=saumyaray&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Well,this is not the first time I have trekked but this  is obviously this seemed to be the first time to trek after such a long period of time.  The journey was quite safe and sound. We started off from Thane in the midnight,reached Pune in the morning. Then with multiple vehicles&#8217; shifting  from one to another and walking quite a distance finally reached the foot of the mountain containing the Rajgad Fort. While waiting for another 2 of our group members we lost a sever amount of morning time. Keeping our guts alive we have started to climb around 10.30AM with the sun high on the sky. While all of us were expecting rain and packed up our bags with all the rain protecting materials,the weather had a different story to tell. Taking a lot of small to mid size breaks through out the climbing, finally reached  the top around 1.30 PM.</p>

<a href='http://saumyaray.wordpress.com/2009/06/29/rajgadtrekking-experience/dsc00671/' title='DSC00671'><img width="150" height="112" src="http://saumyaray.files.wordpress.com/2009/06/dsc00671.jpg?w=150&#038;h=112" class="attachment-thumbnail" alt="" title="DSC00671" /></a>
<a href='http://saumyaray.wordpress.com/2009/06/29/rajgadtrekking-experience/dsc00625/' title='Rajgad trek'><img width="150" height="112" src="http://saumyaray.files.wordpress.com/2009/06/dsc00625.jpg?w=150&#038;h=112" class="attachment-thumbnail" alt="" title="Rajgad trek" /></a>
<a href='http://saumyaray.wordpress.com/2009/06/29/rajgadtrekking-experience/dsc00567/' title='Rajgad'><img width="150" height="112" src="http://saumyaray.files.wordpress.com/2009/06/dsc00567.jpg?w=150&#038;h=112" class="attachment-thumbnail" alt="" title="Rajgad" /></a>

<p>While the climbing up was a bit more stressful than usual because of sun,but no rain came in favor of us as we never found any slippery path to lead us to trouble. Once reached top the weather was cold and cloudy. It almost started raining within an  hour,by that time we had placed ourselves inside the temple. Cooked the lunch,took some rest and started to go around  the hill,to visit the forts.</p>
<p><span style="text-align:center; display: block;"><a href="http://saumyaray.wordpress.com/2009/06/29/rajgadtrekking-experience/"><img src="http://img.youtube.com/vi/MWvyHggwcuA/2.jpg" alt="" /></a></span></p>
<p>The night stay in the temple was shared with around 70 people from different teams. We cooked  the dinner and had to manage with less Dal than Rice. Then the morning was awesome with noodles in the breakfast and then moved around for visiting some different forts. And then the climbing down started.</p>
<p>Overall, it was a cool journey. Everyone of us were perfectly fit throughout the trek. There were spots, which we had to climb almost 70 degrees slope and on the side of the hill. These were spots which had only rocks in it and you have to make your mind before climbing up/down.</p>
<p>Made some cool new friends. Knew some friends in depth. Got an experience for life time. And finally get my old  dream of visiting  places rolling.</p>
<p>Thank you guys for making me a  part of the trekking team.Looking forward to keep up with you guys.</p>
<p><img class="alignnone" title="th  team" src="http://org112.zpcdn.com/0/5340/34180469.9b2dd9.jpg" alt="" width="218" height="162" /><img class="alignnone" title="me" src="http://org112.zpcdn.com/0/5340/34180465.05a439.jpg" alt="" width="120" height="162" /><img class="alignnone" title="jump" src="http://org112.zpcdn.com/0/5340/34180458.16621f.jpg" alt="" width="215" height="162" /></p>
<p> <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/saumyaray.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/saumyaray.wordpress.com/319/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/saumyaray.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/saumyaray.wordpress.com/319/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/saumyaray.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/saumyaray.wordpress.com/319/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/saumyaray.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/saumyaray.wordpress.com/319/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/saumyaray.wordpress.com/319/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/saumyaray.wordpress.com/319/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=saumyaray.wordpress.com&blog=187844&post=319&subd=saumyaray&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://saumyaray.wordpress.com/2009/06/29/rajgadtrekking-experience/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8870fd415be0cd76928f6128760eafa6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">saumya</media:title>
		</media:content>

		<media:content url="http://img.youtube.com/vi/MWvyHggwcuA/2.jpg" medium="image" />

		<media:content url="http://org112.zpcdn.com/0/5340/34180469.9b2dd9.jpg" medium="image">
			<media:title type="html">th  team</media:title>
		</media:content>

		<media:content url="http://org112.zpcdn.com/0/5340/34180465.05a439.jpg" medium="image">
			<media:title type="html">me</media:title>
		</media:content>

		<media:content url="http://org112.zpcdn.com/0/5340/34180458.16621f.jpg" medium="image">
			<media:title type="html">jump</media:title>
		</media:content>
	</item>
		<item>
		<title>PDF2SWF : Auto conversion from PDF to SWF</title>
		<link>http://saumyaray.wordpress.com/2009/06/25/pdf2swf-auto-conversion-from-pdf-to-swf/</link>
		<comments>http://saumyaray.wordpress.com/2009/06/25/pdf2swf-auto-conversion-from-pdf-to-swf/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 18:35:00 +0000</pubDate>
		<dc:creator>saumya</dc:creator>
				<category><![CDATA[Actionscript3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[auto conversion from pdf to swf]]></category>
		<category><![CDATA[flashpaper]]></category>
		<category><![CDATA[flashpaper alternative]]></category>
		<category><![CDATA[pdf to swf]]></category>

		<guid isPermaLink="false">http://saumyaray.wordpress.com/?p=316</guid>
		<description><![CDATA[I never thought I will be converting some PDF files into SWF anytime. But the time has come and I was doing the same for past some days. Well,while deciding for the tools and technology I always thought FlashPaper is a good option. Surprisingly for me FlashPaper is dead now ! In the beginning days [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=saumyaray.wordpress.com&blog=187844&post=316&subd=saumyaray&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I never thought I will be converting some PDF files into SWF anytime. But the time has come and I was doing the same for past some days. Well,while deciding for the tools and technology I always thought <a href="http://www.adobe.com/products/flashpaper/">FlashPaper</a> is a good option. Surprisingly for me FlashPaper is dead now ! In the beginning days I always asked myself why <a href="http://www.adobe.com/products/flashpaper/">FlashPaper</a> was created from Macromedia ?! But then situations come up,where one has to fall back to flash technology. Well, with the death of FlashPaper, I lost hope, then found Scribd. Awesome, they do the same thing online and have a rich set of API exposed for developers to do the same. Unfortunately, for security reasons my option only include softwares which can be used in-house.</p>
<p>Well, then I came across <a href="http://www.swftools.org/">SWFTOOLS</a>. An opensource library of tools for SWF. One of the tools is <a href="http://wiki.swftools.org/index.php/Pdf2swf">PDF2SWF</a>. As the name suggests, it converts a complete PDF to SWF. It not only just converts PDF to SWF but also maintains all the links in the PDF in the generated SWF. Thats a pretty nice job. It has a GUI too for those who want to use it. Personally I found the command line of this tool to be awesome. There are a large number of options available while converting from PDF to SWF. By default once the SWF is created it starts running as a presentation in a default timer. There is an option to put &#8220;stop()&#8221;  action in each frame(as each page becomes one frame),nice and sweat. The default conversion gives a nice default viewer to navigate to different pages,zoom in/out and scrollbars. One can customise the default viewer to make ones one viewer too.</p>
<p>The only thing which hurt me is the SWF produced in a AVM1 Movie,though <a href="http://www.swftools.org/">SWFTOOLS</a> says that the latest version produces AVM2 movies,but it is not. To make an AVM2 movie I just passed in the flashplayer version 10.0 in one of the command line options.That gave me an AVM2 movie. For my custom player, I just went ahead and loaded the movie with an &#8220;Loader&#8221; and since its AVM2,I typecast it to a &#8220;MovieClip&#8221; and then started controlling it through AS3.</p>
<p>I am expecting more from the tool and the first expectations is, it should produce an AVM2 movie. The method to add a viewer should be more easier.</p>
<p>Over all, the tools are just freaking cool. All the best to the <a href="http://www.swftools.org/">SWFTOOLS</a>. Hoping to see this project mature.</p>
<p>Lastly below are the options one will get while firing up <a href="http://wiki.swftools.org/index.php/Pdf2swf">PDF2SWF</a> from command line. I have just copied the help from PDF2SWF from my command line to put it here.</p>
<p><span style="color:#000080;">Usage: pdf2swf [-options] file.pdf -o file.swf</span></p>
<p><span style="color:#000080;">-h , &#8211;help                    Print short help message and exit<br />
-V , &#8211;version                 Print version info and exit<br />
-o , &#8211;output file.swf         Direct output to file.swf. If file.swf contains &#8216;%&#8217; (file%.swf), then each page goes to a seperate file.<br />
-p , &#8211;pages range             Convert only pages in range with range e.g. 1-20 or 1,4,6,9-11 or<br />
-P , &#8211;password password       Use password for deciphering the pdf.<br />
-v , &#8211;verbose                 Be verbose. Use more than one -v for greater effect.<br />
-z , &#8211;zlib                    Use Flash 6 (MX) zlib compression.<br />
-i , &#8211;ignore                  Allows pdf2swf to change the draw order of the pdf. This may make the generated<br />
-j , &#8211;jpegquality quality     Set quality of embedded jpeg pictures to quality. 0 is worst (small), 100 is best (big). (default:85)<br />
-s , &#8211;set param=value         Set a SWF encoder specific parameter.  See pdf2swf -s help for more information.<br />
-w , &#8211;samewindow              When converting pdf hyperlinks, don&#8217;t make the links open a new window.<br />
-t , &#8211;stop                    Insert a stop() command in each page.<br />
-T , &#8211;flashversion num        Set Flash Version in the SWF header to num.<br />
-F , &#8211;fontdir directory       Add directory to the font search path.<br />
-b , &#8211;defaultviewer           Link a standard viewer to the swf file.<br />
-l , &#8211;defaultloader           Link a standard preloader to the swf file which will be displayed while the main swf is loading.<br />
-B , &#8211;viewer filename         Link viewer filename to the swf file.<br />
-L , &#8211;preloader filename      Link preloader filename to the swf file.<br />
-q , &#8211;quiet                   Suppress normal messages.  Use -qq to suppress warnings, also.<br />
-S , &#8211;shapes                  Don&#8217;t use SWF Fonts, but store everything as shape.<br />
-f , &#8211;fonts                   Store full fonts in SWF. (Don&#8217;t reduce to used characters).<br />
-G , &#8211;flatten                 Remove as many clip layers from file as possible.<br />
-I , &#8211;info                    Don&#8217;t do actual conversion, just display a list of all pages in the PDF.<br />
-Q , &#8211;maxtime n               Abort conversion after n seconds. Only available on Unix.</span></p>
<p>Happy Flashing <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/saumyaray.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/saumyaray.wordpress.com/316/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/saumyaray.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/saumyaray.wordpress.com/316/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/saumyaray.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/saumyaray.wordpress.com/316/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/saumyaray.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/saumyaray.wordpress.com/316/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/saumyaray.wordpress.com/316/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/saumyaray.wordpress.com/316/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=saumyaray.wordpress.com&blog=187844&post=316&subd=saumyaray&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://saumyaray.wordpress.com/2009/06/25/pdf2swf-auto-conversion-from-pdf-to-swf/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8870fd415be0cd76928f6128760eafa6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">saumya</media:title>
		</media:content>
	</item>
		<item>
		<title>Getting the Classes from external SWFs</title>
		<link>http://saumyaray.wordpress.com/2009/05/24/getting-the-classes-from-extenral-swfs/</link>
		<comments>http://saumyaray.wordpress.com/2009/05/24/getting-the-classes-from-extenral-swfs/#comments</comments>
		<pubDate>Sun, 24 May 2009 15:32:53 +0000</pubDate>
		<dc:creator>saumya</dc:creator>
				<category><![CDATA[Actionscript3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[external library]]></category>
		<category><![CDATA[loading sound from swf]]></category>
		<category><![CDATA[swf]]></category>

		<guid isPermaLink="false">http://saumyaray.wordpress.com/?p=310</guid>
		<description><![CDATA[When it comes to divide a flash application into separate swfs, its a whole new ball-game in AS3 than in AS2. In this particular case I think AS2 was rocking and simple. But then its as simple in AS3 as in AS2,one just need to change the thought process. First of all one must understand [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=saumyaray.wordpress.com&blog=187844&post=310&subd=saumyaray&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>When it comes to divide a flash application into separate swfs, its a whole new ball-game in AS3 than in AS2. In this particular case I think AS2 was rocking and simple. But then its as simple in AS3 as in AS2,one just need to change the thought process. First of all one must understand that whatever is happening in AS3 is an Object-Event process. Then everything seems clearer. So lets start the code part.</p>
<p>I have two SWF files, one is having audio library and one is my application FLA.In my audio Library FLA, I have two audio files in the library,with Class name as &#8220;saumya.audio.One&#8221; and saumya.audio.Two&#8221;. These two files are set to &#8220;Export for Actionscript&#8221; and &#8220;Export in Frame 1&#8243;. So this library FLA does not contain anything else except two &#8220;mp3&#8243; in library with the above settings. Now lets publish the FLA to produce a SWF file. Let the file named &#8220;audioPackaging.swf&#8221;. We have the audio library in place. Now all that remains is access these classes from my main container or application SWF. There is another FLA, which is supposed to be the base container or the main application FLA. This file is supposed to load the audio library into it and play them. The process of loading is same as loading any other SWF,using &#8220;Loader&#8221; class.</p>
<p>Once&#8221;audioPackaging.swf&#8221; is loaded into the application SWF, we will get the &#8220;LoaderInfo&#8221; object from the complete event object. This &#8220;LoaderInfo&#8221; object is the key to get all the classes in the loaded SWF. We will go into detailed descrition once we see the code. Below is the code to load the SWF and then access the &#8220;LoaderInfo&#8221; object.</p>
<p><span style="color:#0000ff;">var l:Loader=new </span><span style="color:#0000ff;"><span style="color:#0000ff;">Loader();</span><br />
l.contentLoaderInfo.addEventListener(Event.COMPLETE,onSongs);<br />
l.load(new URLRequest(&#8220;audioPackaging.swf&#8221;));<br />
function onSongs(e:Event):void{<br />
trace(e.target);<br />
var lf:LoaderInfo=LoaderInfo(e.target);<br />
}</span></p>
<p>All the classes in an externally loaded SWF is loacated inside an object of &#8220;ApplicationDomain&#8221; class. This class is in the &#8220;flash.system.ApplicationDomain&#8221; package. Do not worry if the words seem alien to you. These are actually our new friends in AS3 <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  . Now the good news is to find our friends we do not have to search anywhere! There is a property in &#8220;LoaderInfo&#8221; object which contains our friend &#8220;ApplicationDomain&#8221; and the property is called &#8220;applicationDomain&#8221;. Phew,there we go. The revised code now look like</p>
<p><span style="color:#0000ff;">import flash.system.ApplicationDomain; </span></p>
<p><span style="color:#0000ff;">var l:Loader=new Loader();<br />
l.contentLoaderInfo.addEventListener(Event.COMPLETE,onSongs);<br />
l.load(new URLRequest(&#8220;audioPackaging.swf&#8221;));<br />
function onSongs(e:Event):void{<br />
trace(e.target);<br />
var lf:LoaderInfo=LoaderInfo(e.target);<br />
var Two:Class=    (lf.applicationDomain.getDefinition(&#8217;saumya.audio.Two&#8217;))as Class;<br />
var t:Sound=new Two();<br />
t.play();<br />
}</span></p>
<p>Now you can see we have a method in &#8220;ApplicationDomain&#8221; class which actually returns the Class definition object. If you still remember we have already assigned the class name to the second audio file in the properties pannel as &#8220;saumya.audio.Two&#8221;. Once we get the reference to &#8220;ApplicationDomain&#8221; object, its a matter of calling the method &#8220;getDefinition(&#8216;classDefinition&#8217;)&#8221; of this object and casting it as a Class. Thats all.We will have a proper Class definition now onwards. since we know that &#8220;saumya.audio.Two&#8221; is a &#8220;Sound&#8221; class, we can go ahead and play it like any other &#8220;Sound&#8221; class.</p>
<p>I had put this example for &#8220;Sound&#8221; as audio was and still is a painful part in flash application development. But the concept can be applied to any class definitions you may want to load dynamically or want to share as a separate SWF.</p>
<p>Happy Flashing <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/saumyaray.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/saumyaray.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/saumyaray.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/saumyaray.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/saumyaray.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/saumyaray.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/saumyaray.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/saumyaray.wordpress.com/310/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/saumyaray.wordpress.com/310/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/saumyaray.wordpress.com/310/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=saumyaray.wordpress.com&blog=187844&post=310&subd=saumyaray&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://saumyaray.wordpress.com/2009/05/24/getting-the-classes-from-extenral-swfs/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8870fd415be0cd76928f6128760eafa6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">saumya</media:title>
		</media:content>
	</item>
		<item>
		<title>Its Application design,where innovation meets talent.</title>
		<link>http://saumyaray.wordpress.com/2009/05/23/its-application-designwhere-innovation-meets-talent/</link>
		<comments>http://saumyaray.wordpress.com/2009/05/23/its-application-designwhere-innovation-meets-talent/#comments</comments>
		<pubDate>Sat, 23 May 2009 19:41:50 +0000</pubDate>
		<dc:creator>saumya</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[general]]></category>
		<category><![CDATA[opensource]]></category>

		<guid isPermaLink="false">http://saumyaray.wordpress.com/?p=308</guid>
		<description><![CDATA[I was thinking of putting this blog post a long time ago.Somehow I was not able to find the right subject for it.
When comes to application design its not about how good you can code a class.Yeah, I said how GOOD(its not the fix,its a good practice of code,not even mediocre) you code a class.First [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=saumyaray.wordpress.com&blog=187844&post=308&subd=saumyaray&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I was thinking of putting this blog post a long time ago.Somehow I was not able to find the right subject for it.<br />
When comes to application design its not about how good you can code a class.Yeah, I said how GOOD(its not the fix,its a good practice of code,not even mediocre) you code a class.First and foremost is a good coding practice.If you think you are a problem solver then try out good practice in code,the coding standards.This is the starting point of an application designer. Architecting a software is not just quick fixes. Its the foundation of a good building. I had come across many development firms and big corporates,where they only talk about get the things done.How?They simply do not know. I have seen talented developers are driving crazy by stupid managements.Huh,is it the future?!! As a result no innovation,no development growth as a team.<br />
<span id="more-308"></span> Flash community is a great dynamic,self driven,helping and open community.Lately I am finding people from other platforms come in with a view that Flash is just anybody&#8217;s game and anybody can ride it. I have even heard people saying Flash is just a banner stuff in webpages and we are the developers who make the dynamic web. I believe from which ever platform these guys come,they even do not know their own platform. People claiming themselves to be a part of the widely popular OOP languages JAVA and dotNET,does not know the basics of it.They come to Flash,thinking this is a shortcut to money making.And management who were shifted to this platform were also a part of those platforms some years back.They also encourage these people to sit on the head of some good flash developer to eat up the innovation and quality.<br />
First and the critical part is, these people must understand, when talking about application design its not any one technology.Its the design of the product. Even some guy is a good developer(good does not mean mediocre),that does not mean he/she can design a product. Designing applications requires months and years of good coding practice,experience and vision.<br />
Application design requires talent in every aspect of it. From history of software achitecture and the platform, to the future of it. Need to get an understanding of the frameworks. Some self-acclaimed software developers just think a framework is nothing but putting some folders in the hard drive <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ha ha hahha.Lol.Lol.cannot stop laughing at it. This gives me doubt upon their ability to code in their specified platform. Do they know what they are talking?!!<br />
I am disapointed to see these so called developers from the best development platforms are trying to take Flash developers for a ride by talking about serverside and how big their platform is. But there are always talent in Flash paltform and its community which is much more than what these developers think.<br />
Typical developers in India thinks I will have a good relation with management and climb corporate ladder no need to learn anything, will learn politics.Ha!!LOL!!Pity and shame. The management always encourages guys with that kind of mentality over the talent and disciplined ones. Forget management, do these guys understand what are they trying to do to their own life?!<br />
Currently I got a very nice read in Red5 mailing list by the founder of http://rtmpd.com. How he was not selected for a well known company not because his knowledge,but because of the insecurity of the company itself. Companies have got their own share of insecurity, which flows through the management till the end point,which is either a developer or a designer.<br />
I always tried to be with the best of the development team at my reach.Learn from each developer the good development practice.and I think as a developer this is the minimum requirement.<br />
For an application designer, its a must to be a developer. If at all you think you are fit to be in the management,please do not spoil the development environment by your cheap political senses,go and join management team. I say cheap because in India everyone thinks he can be a good poilitician too?!!No education,no hard work just make stories about everybody around you and you can be a good politician in office and thats what management wants. Lol. How far? People from very early stage of their development carrier think they are the best developer in the world and management encourages them in believing the same.Result is, the talent never grows in the direction it should grow. I have seen self-acclaimed developers pampered by management,who can only see and listen the negatives in a positive environment too.These demons are the root cause of the spoiled development environment. They are good for nothing, yeah good for nothing.So what happens when these guys sit in the chair of application design. LOL. Imagine the situation and imagine the product,which will come out of it.<br />
I was talking to one of my friends who is a managing a very big Software company&#8217;s one of the biggest account. He himself was a Java developer. We were talking about product development and new products. He was saying that &#8220;one cannot develop a new product and sell it in the market,there are already similar products available.&#8221; Well, then how he is employed?!!Doing a similar product which is already their in market?!<br />
The question is not &#8220;Not possible&#8221;,if one in such a high position in such a big corporate restricts himself by insecurities, there is obviously good developers down the line cannot prove the possibility,which is very well possible if you remove the thought process of the top. Unfortunately the management alwasy thinks they are the GOD, they even challenge the natural process sometimes,I am not joking here.They think The GOD should actually ask them how to run the Universe. Shame on these guys.And shame on the guys who follow these people.<br />
Fortunately there are good managers around. I brought my believe back when I work with my last employer www.ktcpl.com. I must say all the mangers must take a lesson from the management team there. Its a small company but not small in any regard of work or schedule.<br />
I will ask all the developers in Flash community,please do not go by the words of the developers coming from other platforms as if they know more. Make a habit of good coding practice. The community is open and respect the openness. To end the topic, I will give an example of what you should know to start developing a framework. One day a self acclaimed developer came to me asking why the hell we will write the optional parameters all the time in addEventListener() (ex:eventTarget.addEventListener(EventType.EVENT_NAME, eventResponse, useCapture:Boolean, priority: int, weakReference:Boolean);) for weakReference.We will go and fix the original class that ships with flash itself. While the guy was all set that we fixed a major bug but was not happy when I say we will not do that. But then he started asking about why? And then went back with a face which told me that I am making a huge mistake by making all developers write the the code over and again instead fixing it right there. Next I found that guy is now in the application design stage. How cool and fortunate that guy is?!!Very if you look at that in early success stage. Well, first of all if you are a good developer, do not expect any appreciation from any body. The best pals will be the community. The critical part as a developer is to know that respect any framework. The solution may be obvious and there may be a shortcut to fix things. But as a developer fixing should not be your goal. Fix without breaking anything and respecting the standards is what is needed as a good developer. As an application designer or framework developer one needs respect for frameworks designed by others. That would be the starting point as a grooming software developer and architect.<br />
Happy flashing. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/saumyaray.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/saumyaray.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/saumyaray.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/saumyaray.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/saumyaray.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/saumyaray.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/saumyaray.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/saumyaray.wordpress.com/308/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/saumyaray.wordpress.com/308/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/saumyaray.wordpress.com/308/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=saumyaray.wordpress.com&blog=187844&post=308&subd=saumyaray&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://saumyaray.wordpress.com/2009/05/23/its-application-designwhere-innovation-meets-talent/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8870fd415be0cd76928f6128760eafa6?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">saumya</media:title>
		</media:content>
	</item>
	</channel>
</rss>