_totalframes (MovieClip._totalframes property)
public _totalframes :
Returns the total number of frames in the movie clip instance specified in the
parameter.
Availability: ActionScript 1.0; Flash Lite 2.0
Example
In the following example, two movie clip buttons control the Timeline. The
moves the playhead to the previous frame, and the
next frame. Add content to a series of frames on the Timeline, and add the following
ActionScript to Frame 1 of the Timeline:
stop();
prev_mc.onRelease = function() {
var parent_mc:MovieClip = this._parent;
if (parent_mc._currentframe>1) {
parent_mc.prevFrame();
} else {
parent_mc.gotoAndStop(parent_mc._totalframes);
}
};
next_mc.onRelease = function() {
var parent_mc:MovieClip = this._parent;
if (parent_mc._currentframe<parent_mc._totalframes) {
parent_mc.nextFrame();
} else {
parent_mc.gotoAndStop(1);
}
};
trackAsMenu (MovieClip.trackAsMenu property)
public trackAsMenu :
A Boolean value that indicates whether other buttons or movie clips can receive a release event
from a mouse or stylus. If you drag a stylus or mouse across a movie clip and then release it on
a second movie clip, the
you to create menus for the second movie clip. You can set the
button or movie clip object. If you have not defined the
behavior is
.
false
Number
[read-only]
Boolean
event is registered for the second movie clip. This allows
onRelease
button moves the playhead to the
next_mc
trackAsMenu
property, the default
trackAsMenu
MovieClip
button
prev_mc
property on any
MovieClip
519
Need help?
Do you have a question about the FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE and is the answer not in the manual?
Questions and answers