I am building a presentation and am having a problem stopping the movie on the first frame of the slide when it loads. Following is the code that I am using. This code was working well when I had two frames on the slide, but I have added a third frame and now it stops on the second frame instead of the first. What could cause the one frame advance? Also, what can I do to correct it so that the movie will stop on the first frame?
Thanks!
Thanks!
Code:
on (reveal) {
// Transition behavior
if (!eventObj.target._isSlide || (eventObj.target._isSlide && eventObj.target.currentSlide)) {
mx.transitions.TransitionManager.start (eventObj.target,
{type:mx.transitions.Fade,
direction:0, duration:0.5, easing:mx.transitions.easing.None.easeNone,
param1:empty, param2:empty});
eventObj.target.__transitionManager._triggerEvent = eventObj.type;
}
// End Transition behavior
}
on (hide) {
// Transition behavior
if (!eventObj.target._isSlide || (eventObj.target._isSlide && eventObj.target.currentSlide)) {
mx.transitions.TransitionManager.start (eventObj.target,
{type:mx.transitions.Fade,
direction:1, duration:0.5, easing:mx.transitions.easing.None.easeNone,
param1:empty, param2:empty});
eventObj.target.__transitionManager._triggerEvent = eventObj.type;
}
// End Transition behavior
}
onClipEvent (enterFrame) {
stop();
}