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

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

This tutorial explains how a Flash 4 movie can retrieve data from an external CGI program.  To understand this tutorial, it’s recommended that you are already familiar with: how to access variables in Flash 4 Flash 4 Action Scripting how to program in Perl or C how to run and create CGI (Common Gateway Interface) […]