Skip to content

Instantly share code, notes, and snippets.

@scottdavis
Created January 6, 2010 16:48
Show Gist options
  • Save scottdavis/270404 to your computer and use it in GitHub Desktop.
Save scottdavis/270404 to your computer and use it in GitHub Desktop.
import mx.controls.Image;
public function init() :void {
myLoader.source = 'Fig23_Clip1.swf';
myLoader.addEventListener(Event .COMPLETE, loaded);
}
public function loaded(e:Event) :void {
var timeline:MovieClip = e.currentTarget.content as MovieClip;
timeline.gotoAndStop(60);
trace(timeline.framesLoaded);
var img:Image = new Image;
img.source = timeline;
canvas.addChild(img);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment