Tag: ActionScript 2

  • ActionScript 2: Copy MovieClips with BitmapData on runtime

    The flash.display.BitmapData class enables you to copy arbitrary movie clips on runtime, e.g. movie clips attached from the library or external loaded images or swf files. Here is a little helper function that does all the magic stuff: import flash.display.BitmapData; /** * @param sourceMovieClip Movie clip to copy * @param targetMovieClip (Empty) movie to past […]

  • ActionScript 2: Bugfixes in “ActionScript 2.0 Arabic Parsing v1.2” – Part 2

    Update 2010-08-12: In the meantime version 1.5 of Arabic Parsing for ActionScript 2 has been released (see http://ixd-consultant.com/blog/2010/07/12/open-source-arabic-parsing-v1-5/). As you can read in my previous post ActionScript 2: Bugfixes in “ActionScript 2.0 Arabic Parsing v1.2”, I have fixed some bugs in version 1.2 of the “Arabic parser” for ActionScript 2. After the user “geekgirl” has […]

  • ActionScript 2: Bugfixes in “ActionScript 2.0 Arabic Parsing v1.2”

    Update 2010-04-26: I’ve also fixed the problem, that Latin characters at the beginning are ignored (see ActionScript 2: Bugfixes in “ActionScript 2.0 Arabic Parsing v1.2” – Part 2). I’ve just reviewed the new version 1.2 of the “Arabic parser” for ActionScript 2. Among some bugfixes, the library now adds a rudimentary support for arabic input […]

  • ActionScript 2: Create dynamic text fields with Arabic texts

    Update 2010-04-04: I’ve reviewed version 1.2 (see “ActionScript 2: Bugfixes in ‘ActionScript 2.0 Arabic Parsing v1.2′”). Update 2010-03-26: The author has just released version 1.2 of the “ActionScript 2.0 Arabic Parsing” that includes my bug fixes and other improvements. You can find the new version here. ActionScript 2 and the Flash Player up to version […]

  • ActionScript 2: Cast object to array

    Explicit conversion (casting) in ActionScript2 is very easy. Just put the variable in parentheses and precede the (new) type you want to cast to, like: var i:Number = 1; var b:Boolean = Boolean(i); trace(b); // outputs “true” Trying to cast an object to an array using this technique does not result in the expected output. […]

  • ActionScript 2: Create dynamic FLVPlaybacks with attachMovie

    There is a simple way in ActionScript 2 to dynamically create instances of the FLVPlayback component: Put the FLVPlayback component into your library (you can drag’n’drop the component from the components window into the library). Use the following two lines of code to attach the FLVPlayback to a MovieClip (_root in the simple example) and […]