This post is a continuation of Part 1, which can be found here: https://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 […]

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 […]

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. […]

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 […]

In Flex, there’s a define directive, which is useful to enable/disable certain sections of your code.  The syntax is like this: -define=namespace::identifier,value It is similar to C’s #if #endif and #ifdef #endif feature. You can, for example, designate sections of code to be only compiled on Debug build.  Or to disable sections of code for […]

Where To Get The Debug Flash Player Installers This link at Adobe has a list of archived Flash Player versions from Flash 8. http://www.adobe.com/support/flashplayer/downloads.html Debug Players supports the “trace” command (while Release version does not) by writing to a log file. To see trace outputs, you can open the log directly (using a text editor), […]