/* * ---------------------------------- * Flash Video on 3D * Adobe DevNet Tutorial Sample Code * ---------------------------------- * Paul Spitzer * www.ActionScriptArchitect.com * www.fluid.com * ---------------------------------- */ package { import flash.display.Sprite; import flash.display.StageAlign; import flash.display.StageScaleMode; import flex_video3d_scene; [SWF(backgroundColor="0x222222", frameRate="30")] /** * Represents our Application entry point. */ public class flex_video3d extends Sprite { /** * Constructor. Configures and kicks off the application. */ public function flex_video3d() { this.setupStage(); var scene: flex_video3d_scene = new flex_video3d_scene(); scene.x = this.stage.stageWidth / 2; scene.y = this.stage.stageHeight / 2; this.addChild(scene); } // /** * Configures the Stage object */ private function setupStage(): void { this.stage.scaleMode = StageScaleMode.NO_SCALE; this.stage.align = StageAlign.TOP_LEFT; } } }