This post is a continuation of Part 1, which can be found here: http://permadi.com/blog/2010/03/flash-as3-basic-xml-reading-and-parsing-example-part-1/ To make it easier, here’s again the example XML that we are using: Now let’s start putting these nodes in their intended places. To print the node and node, we can simply refer to it by using E4X notation like this […]

ActionScript

Flash CS4 has features can be used to define variables for conditional compilations.  It is useful to use one code base for multiple versions or to tag part of code to compile only under some build. The dialog is avaliable at: File->Publish Settings.  In the Publish Settings dialog, select the Flash tab and then click […]

Playing F4V F4V is the next incarnation of Flash Video which supports H.264 video (MPEG-4), which is more efficient for HD quality videos.   More about F4F: http://www.adobe.com/devnet/flv/.  To play F4V, the player must be Flash player 9 In many cases, the existing FLV player code can be used to play F4V.  The key is […]

Flash Gaming Summit 2010
February 13, 2010

The second annual summit will be held in San Francisco in March.  Participants include Mochimedia, Adobe, Kongregate, Traffichoney, and Gabob.  For more details, see http://www.flashgamingsummit.com/

Create a new Project. Make sure the Components window is open.  If not, open it using Window->Components. Drag component from the Components window into the stage.  Resize it to the size you want.  In the next step, you can decide the scaling mode of the video, such as maintainAspectRatio or noScale. Open the Parameters window.  Use […]

LocalConnection enables two or more Flash files to communicate with each other. You can also use other methods, such as SharedObject, but the benefit of LocalConnection is the real-time nature of LocalConnection. For more information, click Adobe documentation here. For an introduction to LocalConnection, please see this article which explains how to set up a […]

LocalConnection enables two or more Flash files to communicate with each other.  You can also use other methods, such as SharedObject, but the benefit of LocalConnection is the real-time nature of LocalConnection. For more information, click Adobe documentation here.  You can also use LocalConnection if you need to communicate with an ActionScript 2 Flash files. […]

Flash Garbage Collector executes at unpredictable times.  The engineer at Adobe have alleviated this somewhat with the introduction of System.gc(); command.  See the reference at: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/system/System.html#gc() I won’t argue whether it is a good or bad idea to call the garbage collector manually.  I many cases, it is not necessary.  However, I believe that there […]

Until recently, I used to be able to right click on the Flash movie in a browser and select About Flash Player… menu, which will open the Adobe website showing what player version is installed.  Yeah, I know it says 9 already in the menu, but that’s not good enough.  Sometimes we developers need to […]