MovieClip

extern class flash.display.MovieClipextends Spriteimplements Dynamic<Dynamic>Available in flash var currentFrame(default,null) : IntThe frame number which the playhead is in the timeline of that MovieClip
Example
if (target.currentFrame >= 10){
    target.gotoAndStop(1);
}
var currentFrameLabel(default,null) : StringReturns the label name of the current frame of the MovieClip. If there is no label, it returns null. var currentLabel(default,null) : StringReturns the label name of the current frame of the MovieClip. If that frame doesn't have a label name, it will return the name of a previous frame. If there is no (previous) label it returns null.
Example
trace("target.currentLabel: "+target.currentLabel);
var currentLabels(default,null) : Array<FrameLabel>Returns an array of FrameLabel.
Example
 
var labelArray:Array = target.currentLabels;
for (i in 0...labelArray.length; i++) {
    var label:FrameLabel = labelArray[i];
    trace("frame number: " + label.frame + " // frame name: " + label.name);
}
var currentScene(default,null) : Scene var enabled : BoolMovieclips that behave like buttons can be 'deactivated' so the 'up', 'over', 'down' are disabled. Default value is true
Example
target.enabled = false;
var framesLoaded(default,null) : IntThe number of frames that are loaded from a streaming SWF file. In combination with totalFrames you can calculate the loaded percentage.
Example
var pct:Float = (target.framesLoaded / target.totalFrames) *100;
trace (pct + "%");
var isPlaying(default,null) : Bool var scenes(default,null) : Array<Scene> var totalFrames(default,null) : IntThe total number of frames of a MovieClip.
Example
 trace("target.totalFrames: "+target.totalFrames);
var trackAsMenu : Bool function new() : VoidCreates a new MovieClip.
var target:MovieClip = new MovieClip();
flash.Lib.current.addChild(target);
function addFrameScript( ?p1 : Dynamic, ?p2 : Dynamic, ?p3 : Dynamic, ?p4 : Dynamic, ?p5 : Dynamic ) : Void function gotoAndPlay( frame : Object, ?scene : String ) : VoidJump the playhead to a specific frame (number or name) and Play.
Example
target.gotoAndPlay(3);
target2.gotoAndPlay("foobar");
function gotoAndStop( frame : Object, ?scene : String ) : VoidJump the playhead to a specific frame (number or name) and Stop.
Example
target.gotoAndStop(3);
target2.gotoAndStop("foobar");
function nextFrame() : Void function nextScene() : Void function play() : VoidStarts the playhead from it current frame and moves over the timeline.
Example
target.play();
function prevFrame() : Void function prevScene() : Void function stop() : VoidStops the playhead in the movie clip.
target.stop();
version #16116, modified 2013-02-24 23:45:12 by api
0 comment