topical media & game development
actionscript-video-10-thumb-Main.ax
actionscript-video-10-thumb-Main.ax
[swf]
flex
package
{
import flash.display.MovieClip;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;
import flash.media.Video;
//import FLVBitmapThumb;
public class @ax-actionscript-video-10-thumb-Main extends MovieClip
{
public var myVid:Video;
public var thumb:actionscript_video_10_thumb_FLVBitmapThumb;
public function @ax-actionscript-video-10-thumb-Main()
{
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
this.addEventListener(Event.UNLOAD, onUnload);
myVid = new Video(320,240);
addChild(myVid);
myVid.x = 50;
myVid.y = 50;
thumb = new actionscript_video_10_thumb_FLVBitmapThumb(this);
}
public function onUnload():void {
thumb.destroy();
}
}
}
(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.