PDA

View Full Version : frame label jumping issue..


mikhaii
04-18-2006, 12:30 PM
Hi, big issue you..

ill be dead by today if i dont get this to work fyi...

i have a main clip that has fwd+back buttons which control externally loaded movie clips which have varying frame labels 'slide1...slide2 .. etc"

//p is holding total number of frame labels (slide1..etc) in the loaded movie

..this works great to jump around..but here is the problem
when you let the movie play and it plays through slide 3... if you hit the fwd button..it will only jump to 2... basically its not tracking with the timeline

i some how need it to advance to the next frame label, almost intelligently..

so if you fit fwd to slide 3..then let it play till slide 5..then hit fwd button again..it will take you to slide 4..not slide 6



p=12;
var currentNumb:Number = 1;
if (currentNumb<=p) {
currentNumb++;
} else {
currentNumb = 0;
}
_parent._parent.pContent_mc.intro_mc.gotoAndPlay(' slide'+CurrentNumb);
trace("number is"+currentNumb);


please help :)

oldnewbie
04-18-2006, 01:57 PM
You need to increase p with each slide that is played, not only when the fwd button is hit.

mikhaii
04-18-2006, 04:02 PM
thank you..

what i did exactly was in the frame before the 'slide1' frame label i put

_level0.currentNumb = _level0.currentNumb+1;

and in my root code on the main swf i changed everything to _level0.

works super!

i hope this can help someone in the future..