topical media & game development
flex-video3d.ax
flex-video3d.ax
[swf]
flex
/*
* ----------------------------------
* 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 @ax-flex-video3d-scene;
[SWF(backgroundColor="0x222222", frameRate="30")]
Represents our Application entry point.
public class @ax-flex-video3d extends Sprite
{
Constructor. Configures and kicks off the application.
public function @ax-flex-video3d()
{
this.setupStage();
var scene: @ax-flex-video3d-scene = new @ax-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;
}
}
}
(C) Æliens
27/08/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.