Archive for October, 2008
The below class serves as Garbage Collection utility for AS3. You can use it to prevent your applications from memory leakage. package{ import flash.events.TimerEvent; import flash.system.System; import flash.utils.Timer; public class GCUtil { private var _timer:Timer; public function GCUtil(interval_sec:uint = 60) { _timer = new Timer(interval_sec*1000); startGC(interval_sec); } public static function doGC():void { System.gc(); } public [ READ MORE ]
I am glad to announce the first Step for basic requirements of E-Learning using Flex has been achieved. Basic Requirements met: All Flash player versions starting from Flash Player version 6 to 10, should be loaded. (For support of old elearning courses). Without any memory leak due to loading multiple swf files. Ability to navigate to [ READ MORE ]
Get your own mp3 from local system played from web. more[ READ MORE ]
Overcome restrictions on an AVM1 SWF file loaded by an AVM2 SWF file: While trying to control AVM1Movie (Flash Player 8, 9, 10 or older) from flex, we will get the below error message: ”Property stop not found on flash.display.AVM1Movie and there is no default value. ” To overcome this problem, ForcibleLoader class converts them into latest [ READ MORE ]
The below is the code to load flash library asset (using linkage name) on Flex. <?xml version=”1.0″ encoding=”utf-8″?> <mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml” creationComplete=”onCreationComplete()” > <mx:Script> <![CDATA[ import mx.core.UIComponent; private function onCreationComplete():void{ var swfLoader:Loader = new Loader(); swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onSWFLoadComplete); swfLoader.load(new URLRequest("flash.swf")); } private function onSWFLoadComplete(event:Event):void{ var tempClass:Class = event.target.applicationDomain.getDefinition("libraryAsset") as Class; var movieClip:MovieClip = new tempClass() as MovieClip; [ READ MORE ]
Get every new post delivered to your Inbox.
Join 398 other followers