Archived:Hello World in Flash Lite
This article describes how to create the a "Hello World" application in Flash Lite.
Flash Lite is a port of Adobe’s Flash, which is quite easily the most ubiquitous application on PCs. Just like J2ME was created for handheld mobile devices, Adobe marched into the mobile space with Flash Lite in early 2005.
With Flash Lite, you have infinite possibilities, starting from creating a wallpaper or a dynamic screensaver, to a polished application. To get started, you need to have a Flash SDK. You also need Adobe’s Device Central, which is the standard emulator to test your application. Most importantly Flash Lite is device or platform independent, which gives a larger audience to target.
Hello World application
To start with, open you Flash SDK ( or IDE ) and choose ‘Create New Flash Document’. Now you shall see, a blank stage. Now, select Publish settings under the File Menu and under Flash tab, select the choice of Flash Lite version in which you wish to publish. Flash Lite 2.0 and above support Actionscript 2.0. Depending on the content you wish to develop and target audience in mind, you need to decide on the Flash Lite version, you need to use. Remember, the lower version of Flash Lite player you use, more is your audience but less is its power. Later versions like Flash Lite 2.1 or Flash Lite 3.0 have outstanding capabilities including watching video files, access to PIM contacts and more.
After doing this, you need to set your Stage dimensions to those accepted in mobiles. Typically, 176 X 208 or even higher. So, with nothing selected on stage, select the Properties panel and change your stage dimensions. Note, you can automatically rescale your file, using a FSCOMMAND. Also set the frame rate to 12fps. This is the default value.
Now with things set, select a basic Text tool from the Toolbar. And place it on the stage. Now enter HELLO WORLD inside the TextField. Once this is done, save you file and publish your content from the File Menu. When you publish, a SWF file is created. It is this SWF file that can be tested in our emulator or deployed in the handset.
Testing the content
That’s it ! Hello World is as simple as that and so is Flash development.
Excited about learning Flash ? Here, is an outstanding link on where to proceed from here.
--manikantan 23:46, 30 April 2009 (EEST)