Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flash Presentation wont stop on first frame

Status
Not open for further replies.

remeng

Technical User
Jul 27, 2006
519
US
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!

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();
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top