<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2009649438393972280</id><updated>2011-04-21T15:02:36.811-07:00</updated><category term='actionscript based application'/><category term='set up actionscript 3 dev enironment'/><category term='netbeans php xdebug'/><category term='actionscript application'/><category term='php debugging env'/><category term='pure actionscript based flash apps'/><category term='netbeans php debug'/><category term='actionscript assets'/><category term='access assets'/><category term='pure actionscript application'/><title type='text'>Teky - Techy - Techno Zone Blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://tekyzone.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2009649438393972280/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://tekyzone.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Record Favorite Blogs</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2009649438393972280.post-5161079124572236742</id><published>2008-07-22T11:00:00.000-07:00</published><updated>2008-07-22T13:23:42.451-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pure actionscript application'/><category scheme='http://www.blogger.com/atom/ns#' term='set up actionscript 3 dev enironment'/><category scheme='http://www.blogger.com/atom/ns#' term='pure actionscript based flash apps'/><title type='text'>Set up Actionscript 3 Development Environment</title><content type='html'>If you are new to Actionscript and its development, you may ponder over what I need to write a pure Actionscript application. With advent of Flex, flash programming is getting easier. You don't have to be a Flash CS guru to write flash applications. All you need is to set up the actionscript development environment using Flex SDK, and use your favorite text editors to write the programs and compile them into flash applications from commandline. Of course, you need some kind of programming background.&lt;br /&gt;Here is what you need to basically get you going:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;A text editor so that you can write some code. Notepad, Textpad, VI, Emacs and JEdit etc. Any your favorite editors should do the work for you&lt;/li&gt;&lt;li&gt;Flex SDK, you can download Flex 3 SDK from &lt;a href="http://www.adobe.com/products/flex/flexdownloads/"&gt;here&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Adobe Flash Player - Debugger versions for Flex and Flash developers. You can download it from &lt;a href="http://www.adobe.com/support/flashplayer/downloads.html"&gt;here&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Unzip Flex SDK into a directory, and add Flex's bin directory to your PATH so that you can invoke mxmlc and other Flex tools from commandline&lt;/li&gt;&lt;li&gt;Actionscript documentations, I am sure you need to read some documents so that you will get familar with the language if you are a serious player. You can read or download a copy from &lt;a href="http://www.adobe.com/support/documentation/en/flex/"&gt;adobe&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;Now you are all set, and start writing your actionscript programms and compile them.&lt;br /&gt;I have a simple tutorial on &lt;a href="http://tekyzone.blogspot.com/2008/07/simple-and-pure-actionscript-3.html"&gt;Create a Simple and Pure ActionScript 3 Application&lt;/a&gt;. It should be simple enough to follow. Good luck&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2009649438393972280-5161079124572236742?l=tekyzone.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tekyzone.blogspot.com/feeds/5161079124572236742/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2009649438393972280&amp;postID=5161079124572236742' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2009649438393972280/posts/default/5161079124572236742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2009649438393972280/posts/default/5161079124572236742'/><link rel='alternate' type='text/html' href='http://tekyzone.blogspot.com/2008/07/set-up-actionscript-3-development.html' title='Set up Actionscript 3 Development Environment'/><author><name>Record Favorite Blogs</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2009649438393972280.post-3582343413729027236</id><published>2008-07-22T10:41:00.000-07:00</published><updated>2008-07-22T10:55:45.509-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php debugging env'/><category scheme='http://www.blogger.com/atom/ns#' term='netbeans php xdebug'/><category scheme='http://www.blogger.com/atom/ns#' term='netbeans php debug'/><title type='text'>Setup Netbeans PHP Debug Environment with XDebug</title><content type='html'>&lt;span&gt;Netbeans IDE is a free, open-source Integrated Development Environment for software developers. You get all the tools you need to create professional desktop, enterprise, web, and mobile applications with the Java language, C/C++, Ruby and PHP. NetBeans IDE runs on many platforms including Windows, Linux, Mac OS X and Solaris.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;The &lt;a class="external" href="http://download.netbeans.org/netbeans/6.1/final/"&gt;NetBeans IDE Early Access for PHP&lt;/a&gt; was released in April at the same time as NetBeans 6.1. Milestone 1 of NetBeans 6.5 now contains &lt;a class="wikipage" href="http://wiki.netbeans.org/FeatureListEAPHP"&gt;all features introduced in this release&lt;/a&gt;.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Setting up Netbeans PHP environment with XDebug is easier compared with Eclipse IDE. The most important step of setting up PHP with Xdebug in Netbeans is to configure PHP and XDebug, here is how:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Check your PHP version by executing: &lt;div style="padding: 15px; background: rgb(255, 255, 224) none repeat scroll 0pt 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 200px; color: rgb(0, 0, 0);"&gt;&lt;code&gt;php -v&lt;/code&gt;&lt;/div&gt; &lt;div&gt;Now you will get something like:&lt;/div&gt; &lt;code&gt;PHP 5.2.2 (cli) (built: May  2 2007 19:18:26)&lt;br /&gt;Copyright (c) 1997-2007 The PHP Group&lt;br /&gt;Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies&lt;/code&gt;&lt;/li&gt;&lt;li&gt;Now you go to &lt;a href="http://www.xdebug.org/"&gt;XDebug.org&lt;/a&gt; to download XDebug module corresponding to the PHP version installed on your machine as shown above, and put XDebug module into PHP's extension directory or somewhere else&lt;/li&gt;&lt;li&gt;Now add the following to your php.ini which is normally under your PHP installation directory &lt;div style="padding: 15px; background: rgb(255, 255, 224) none repeat scroll 0pt 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; color: rgb(0, 0, 0); -moz-background-inline-policy: -moz-initial; width: 400px;"&gt;&lt;code&gt;[xdebug]&lt;br /&gt;xdebug.remote_enable=1&lt;br /&gt;xdebug.remote_host=127.0.0.1&lt;br /&gt;xdebug.remote_port=9000&lt;br /&gt;xdebug.remote_handler=dbgp&lt;br /&gt;zend_extension_ts=D:\tools\php\ext\php_xdebug-2.0.3-5.2.5.dll&lt;/code&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;Now start up Netbeans 6.5 M1 or above (as of this writing, Netbeans 6.5 M1 is just available). You can download it from http://www.netbeans.org&lt;/li&gt;&lt;li&gt;Go to Tools -&gt; Options menu to bring up Netbeans Options dialog&lt;/li&gt;&lt;li&gt;Select Miscellaneous button on top of the dialog and Click PHP tab, you will see the following&lt;div&gt;&lt;a href="http://farm4.static.flickr.com/3007/2660710776_ab201a6185_o.jpg"&gt;&lt;img style="width: 392px; height: 429px;" class="aligncenter" src="http://farm4.static.flickr.com/3007/2660710776_8634946dbf.jpg" alt="" hspace="15" vspace="15" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;p&gt;Basically you don't need to do anything unless you want to change some settings such as where php.exe is located at, how do you want to output the result, debugger port (default to 9000), whether you want debugger to stop at the first line of the php files etc&lt;/p&gt; &lt;p&gt;You may need to write a simple PHP script to test if it's working locally, if so then your installation is fine. Otherwise, make sure you follow the above steps&lt;/p&gt; &lt;p&gt;That's it. Simple and easy.&lt;/p&gt; &lt;p&gt;My Settings: Netbeans 6.5 M1, PHP 5.2.2 and XDebug&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2009649438393972280-3582343413729027236?l=tekyzone.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tekyzone.blogspot.com/feeds/3582343413729027236/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2009649438393972280&amp;postID=3582343413729027236' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2009649438393972280/posts/default/3582343413729027236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2009649438393972280/posts/default/3582343413729027236'/><link rel='alternate' type='text/html' href='http://tekyzone.blogspot.com/2008/07/setup-netbeans-php-debug-environment.html' title='Setup Netbeans PHP Debug Environment with XDebug'/><author><name>Record Favorite Blogs</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://farm4.static.flickr.com/3007/2660710776_8634946dbf_t.jpg' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2009649438393972280.post-1737178849372824676</id><published>2008-07-21T14:55:00.000-07:00</published><updated>2008-07-21T21:08:08.527-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pure actionscript application'/><category scheme='http://www.blogger.com/atom/ns#' term='access assets'/><category scheme='http://www.blogger.com/atom/ns#' term='actionscript assets'/><title type='text'>Embed assets in Pure ActionScript Applications</title><content type='html'>After creating a pure actionscript application by following &lt;a href="http://tekyzone.blogspot.com/2008/07/simple-and-pure-actionscript-3.html"&gt;this article&lt;/a&gt;, you may also want to add some resources such as images, mp3 and even videos etc. Using embedded assets in actionscript applications is not so straightforward, as stated in Flex documents Flex supports the following syntaxes to embed assets in Flex applications:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;samp class="codeph"&gt;[Embed(&lt;/samp&gt;&lt;i&gt;parameter1, paramater2, ...&lt;/i&gt;&lt;samp class="codeph"&gt;)]&lt;/samp&gt; metadata tag&lt;br /&gt;&lt;span&gt;You use this syntax to embed an asset in an ActionScript file, or in an &amp;lt;mx:script&amp;gt; block in an MXML file.&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;samp class="codeph"&gt;@Embed(&lt;/samp&gt;&lt;i&gt;parameter1, paramater2, ...&lt;/i&gt;&lt;samp class="codeph"&gt;)&lt;/samp&gt; directive&lt;br /&gt;&lt;span&gt;You use this syntax in an MXML tag definition to embed an asset.&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;samp class="codeph"&gt;Embed(&lt;/samp&gt;&lt;i&gt;parameter1, paramater2, ...&lt;/i&gt;&lt;samp class="codeph"&gt;)&lt;/samp&gt; directive&lt;br /&gt;&lt;span&gt;You use this syntax in an &amp;lt;mx:Style&amp;gt; block in an MXML file to embed an asset.&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;It's kind of tricky to figure out how to access these embedded assets from actionscripts, I had to spend precious time figuring out how to use these assets from Actionscripts,  especially for these actionscript classes under specific packages.&lt;br /&gt;&lt;br /&gt;It turns out the solution is fairly straight, what you need to make it work is accessing assets using the correct path, assume that all assets are under assets directory which is a subdirectory of your application root.  Here is a sample root directory, the root is helloworld and assets are under assets subdirectory, helloUtil.as is with hello.util package:&lt;br /&gt;&lt;pre&gt;helloworld/helloword.as&lt;br /&gt;        /assets/bg.jpg&lt;br /&gt;        /assets/ball.png&lt;br /&gt;        /hello/util/helloUtil.as&lt;br /&gt;&lt;/pre&gt;now you can access these two images in helloworld.as:&lt;br /&gt;&lt;pre&gt;   [Embed(source="assets/bg.jpg")]&lt;br /&gt; public var bgImg:Class;&lt;br /&gt;&lt;br /&gt; [Embed(source="assets/ball.png")]&lt;br /&gt; public var ballImg:Class;&lt;br /&gt;&lt;/pre&gt;Without putting assets in the correct directory you will get the following compiling errors:&lt;br /&gt;&lt;pre&gt;   Error: unable to resolve 'bg.jpg' for transcoding&lt;/pre&gt;&lt;br /&gt;Now if you structure your classes using packages and you also want to access assets directly, then you must access them like:&lt;br /&gt;&lt;pre&gt;   [Embed(source="/assets/bg.jpg")]&lt;br /&gt;public var bgImg:Class;&lt;br /&gt;&lt;br /&gt;[Embed(source="/assets/ball.png")]&lt;br /&gt;public var ballImg:Class;&lt;br /&gt;&lt;/pre&gt;Pretty straight, huh, but for a novice it will take sometime to figure this out. And I am hoping you will benefit from it&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2009649438393972280-1737178849372824676?l=tekyzone.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tekyzone.blogspot.com/feeds/1737178849372824676/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2009649438393972280&amp;postID=1737178849372824676' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2009649438393972280/posts/default/1737178849372824676'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2009649438393972280/posts/default/1737178849372824676'/><link rel='alternate' type='text/html' href='http://tekyzone.blogspot.com/2008/07/embed-assets-in-pure-actionscript.html' title='Embed assets in Pure ActionScript Applications'/><author><name>Record Favorite Blogs</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2009649438393972280.post-4025294298372365876</id><published>2008-07-15T23:36:00.001-07:00</published><updated>2008-07-18T19:25:22.340-07:00</updated><title type='text'>Ways to set width and height for pure ActionScript applications</title><content type='html'>&lt;span&gt;Mikemo's blog "&lt;a href="http://www.morearty.com/blog/2006/06/27/setting-the-width-and-height-of-a-pure-actionscript-application/"&gt;Setting the width and height of a pure-ActionScript application&lt;/a&gt;" &lt;br /&gt;mentioned a way to set width and height of a pure actionscript application using meta tag:&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span&gt;But for pure-ActionScript projects, it isn't so obvious.  The way to do it is to use the &lt;code&gt;SWF&lt;/code&gt; metadata attribute above the declaration of the class:&lt;/span&gt;&lt;br /&gt;&lt;pre  name="code" class="xml"&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 0, 204); font-weight: bold;"&gt;package&lt;/span&gt;&lt;span style=""&gt; {&lt;/span&gt;&lt;br /&gt;&lt;span style=""&gt;   [&lt;/span&gt;SWF&lt;span style=""&gt;(&lt;/span&gt;width=&lt;span style="color: rgb(153, 0, 0); font-weight: bold;"&gt;"300"&lt;/span&gt;, height=&lt;span style="color: rgb(153, 0, 0); font-weight: bold;"&gt;"200"&lt;/span&gt;&lt;span style=""&gt;)&lt;/span&gt;&lt;span style=""&gt;]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 51, 255); font-weight: bold;"&gt;   public&lt;/span&gt; &lt;span style="color: rgb(153, 0, 204); font-weight: bold;"&gt;class&lt;/span&gt; MyApp &lt;span style="color: rgb(0, 51, 255); font-weight: bold;"&gt;extends&lt;/span&gt; Sprite &lt;span style=""&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style=""&gt;      ...&lt;/span&gt;&lt;br /&gt;&lt;span style=""&gt;   }&lt;/span&gt;&lt;br /&gt;&lt;span style=""&gt;}&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;span&gt;Kevin Hoyt also left a comment in Mikemo's blog stating:&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;You can also set the width, height, stage [background] color, and frame rate as a compiler argument.&lt;/blockquote&gt;&lt;br /&gt;&lt;span&gt;&lt;br /&gt;Here is the option:&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;span&gt;&lt;span style="color: rgb(153, 0, 204); font-weight: bold;"&gt;default-size width height&lt;/span&gt;  -- Defines the default application size, in pixels.&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;span&gt;Or you can even set width and height in flex configuration file as the following:&lt;/span&gt;&lt;br /&gt;&lt;pre name="code" class="xml"&gt;&lt;br /&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&lt;br /&gt;&amp;lt;flex-config&amp;gt;&lt;br /&gt;   &amp;lt;default-size&amp;gt;&lt;br /&gt;      &amp;lt;width&amp;gt;800&amp;lt;/width&amp;gt;&lt;br /&gt;      &amp;lt;height&amp;gt;600&amp;lt;/height&amp;gt;&lt;br /&gt;   &amp;lt;/default-size&amp;gt;&lt;br /&gt;&amp;lt;/flex-config&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2009649438393972280-4025294298372365876?l=tekyzone.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tekyzone.blogspot.com/feeds/4025294298372365876/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2009649438393972280&amp;postID=4025294298372365876' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2009649438393972280/posts/default/4025294298372365876'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2009649438393972280/posts/default/4025294298372365876'/><link rel='alternate' type='text/html' href='http://tekyzone.blogspot.com/2008/07/approachs-of-setting-width-and-height.html' title='Ways to set width and height for pure ActionScript applications'/><author><name>Record Favorite Blogs</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2009649438393972280.post-184309223179794716</id><published>2008-07-15T22:37:00.000-07:00</published><updated>2008-07-16T00:54:01.965-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='actionscript application'/><category scheme='http://www.blogger.com/atom/ns#' term='pure actionscript application'/><category scheme='http://www.blogger.com/atom/ns#' term='actionscript based application'/><title type='text'>Create a Simple and Pure ActionScript 3 Application</title><content type='html'>&lt;p&gt;I am not only new to Flash and Flex development but also ActionScript. But I am pretty familiar with javascript and started to learn Flex and Actionscript development recently for a project. And most of our code is based on Flex mxml and Actionscript 3 classes. Here is what I read from Adobe regarding Flex applications:&lt;/p&gt;&lt;blockquote&gt;Flex application are built using MXML and ActionScript. MXML is an XML markup language that you use to lay out user interface components MXML application. ActionScript is the programming language for the Adobe® Flash® Player and Adobe® AIR™run-time environments. It enables interactivity, data handling, and much more in Flash, Flex, and AIR content and applications.&lt;/blockquote&gt;&lt;p&gt;But I heard/read that we could write a pure actionscript based flex application, so I tried to do a search on google and yahoo, disappointedly, I was unable to find an article/document to talk about it. After reading Flex Programming ActionScript 3 (a PDF programming guide), I could not find a good hint to do that either. But I finally managed to figure out that it's a very simple process. What you need to make an actionscript based flash application is that there is a main class which is either an instance of Sprite or MovieClip. Here I'd like write down what I learned in hoping it will help others too, especially those newbies like me.&lt;/p&gt;&lt;p&gt;First, make sure you have Flex 3 SDK installed, if you haven't done so, please grab it from &lt;a href="http://www.adobe.com/products/flex/flexdownloads/"&gt;http://www.adobe.com&lt;/a&gt;. This is pretty much what you need to write a simple application like "Hello, world" plus so simple drawing. If you really need an IDE to help you on writing code, then you can have Flex Builder but it's very costly though. However, you can get a trial copy from the official website for 60 days free trial period. You may also twist Eclipse IDE to do the work, but you need to google it up yourself.&lt;/p&gt;&lt;p&gt;Ok, let's start the journey.&lt;/p&gt;&lt;p&gt;Now, create a file called hello.as using your favorite editor. You can give your actionscript file any name but you need to change the following code accordingly since the compiler requires you to have a classname same as the filename. &lt;/p&gt;&lt;p&gt;And put the following code in hello.as:&lt;/p&gt;&lt;pre&gt;&lt;div class="syntax_hilite" style="color: rgb(204, 255, 68); width: 500px; padding-top: 10px; padding-left: 40px;"&gt;&lt;br /&gt;&lt;span&gt;package {&lt;/span&gt;&lt;br /&gt;&lt;span&gt;import flash.display.Graphics;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;import flash.display.Sprite;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;import flash.text.StyleSheet;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;import flash.text.TextField;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;import flash.text.TextFormat;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;import flash.text.TextFieldAutoSize;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;public class hello extends Sprite{&lt;/span&gt;&lt;br /&gt;&lt;span&gt;public function hello():void {&lt;/span&gt;&lt;br /&gt;&lt;span&gt;var w:int = 100;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;var h:int = 50;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;var x:int = 50;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;var y:int = 5;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;var g:Graphics = this.graphics;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;g.lineStyle(1, 0xff0000, 0.6);&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;g.moveTo(x, y);&lt;/span&gt;&lt;br /&gt;&lt;span&gt;g.lineTo(x+w, y);&lt;/span&gt;&lt;br /&gt;&lt;span&gt;g.lineTo(x+w, y+h);&lt;/span&gt;&lt;br /&gt;&lt;span&gt;g.lineTo(x, y+h);&lt;/span&gt;&lt;br /&gt;&lt;span&gt;g.lineTo(x, y);&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;var tf:TextField = new TextField();&lt;/span&gt;&lt;br /&gt;&lt;span&gt;var fmt:TextFormat = new TextFormat();&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;fmt.color = 0xFF0000;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;fmt.size = 18;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;tf.defaultTextFormat = fmt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;tf.x = 150;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;tf.y = 100;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;tf.height = 150;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;tf.width = 150;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;tf.htmlText = "&amp;lt; h2&amp;gt;Hello,world!&amp;lt;/h2&amp;gt;";&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;this.addChild(tf);&lt;/span&gt;&lt;br /&gt;&lt;span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/pre&gt;&lt;p&gt;Next, let's compile it using mxmlc from commandline. Note you need to add your flex/bin to your path , otherwise your shell won't be able to find it.Issue the following and press enter to let it compile:&lt;/p&gt;&lt;div style="padding-top: 10px; padding-left: 40px;"&gt;&lt;code style="padding: 15px; color: rgb(204, 255, 68); width: 300px;"&gt;mxmlc hello.as&lt;/code&gt;&lt;/div&gt;&lt;p&gt;There are many mxmlc options you can use, for example, -o to specify a different SWF output file. -debug to generate a movie that is suitable for debugging etc. I didn't use any though. You can use as many as you wish ;-) &lt;/p&gt;&lt;p&gt;And you should now see a SWF file called hello.swf, you can start it up by double click it or type hello.swf at commandline and press enterThat's it.&lt;/p&gt;&lt;p&gt;You can explore more once you get started with this little class&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2009649438393972280-184309223179794716?l=tekyzone.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tekyzone.blogspot.com/feeds/184309223179794716/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2009649438393972280&amp;postID=184309223179794716' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2009649438393972280/posts/default/184309223179794716'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2009649438393972280/posts/default/184309223179794716'/><link rel='alternate' type='text/html' href='http://tekyzone.blogspot.com/2008/07/simple-and-pure-actionscript-3.html' title='Create a Simple and Pure ActionScript 3 Application'/><author><name>Record Favorite Blogs</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry></feed>
