package { import flash.display.Sprite; import flash.events.Event; [SWF(width = "1280", height = "720", backgroundColor="0xFF0000", frameRate = "25")] /** * test to check out the memory usage on the greensock loader classes * @author David Amey */ public class Main extends Sprite { /** @private **/ private var _videoPlayer:VideoPlayer; public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(e:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); // entry point this._videoPlayer = new VideoPlayer(); this.addChild(this._videoPlayer); } } }