|
Prev: Error Message
Next: wave effect
From: Toe Cutter on 27 Mar 2006 17:41 Greetings, Does anyone know how to get actionscript to get a button to "gotoNextMarker" or "gotoPrevMarker"? According to "Macro... Flash MX Freehand 10 Advanced Training from the Source" .... one of its chapters says " Markers are your friends. Use them to keep track of significant events in the timeline. Later, you'll learn how to use ActionScript commands to jump from marker to marker within a timeline. " Unfortunately, I do not have this book. Regards, Toe Cutter
From: Toe Cutter on 28 Mar 2006 10:22 Hi again, When I used the word 'marker', I really meant 'frame label'. Any ideas? Regards, Toe Cutter "Toe Cutter" <newsgroup(a)macromedia.com> wrote in message news:e09pmi$7ms$1(a)forums.macromedia.com... > > > Greetings, > > Does anyone know how to get actionscript > to get a button to "gotoNextMarker" or > "gotoPrevMarker"? > > According to "Macro... Flash MX Freehand 10 Advanced Training from the > Source" > ... one of its chapters says " > Markers are your friends. Use them to keep track of significant events in > the timeline. Later, you'll learn how to use ActionScript commands to jump > from marker to marker within a timeline. " > > Unfortunately, I do not have this book. > > Regards, > Toe Cutter > > > >
From: gravideo on 28 Mar 2006 11:12 Put the following code on the button: on (release) { gotpAndPlay("Frame Label:); }
From: Toe Cutter on 28 Mar 2006 11:36 Hi Again, Here is where I'm at: } onClipEvent (mouseDown) { framelabelArray = ["N01","N02","N02","N03"]; label = 0; // start at index 0, so 'home' gotoNextLabel = function () { // go to next label // add 1 to 'label' label++; // get appropriate framelabel var framelabel = framelabelArray[label]; // move main timeline to that label _root.gotoAndPlay(framelabel); } // to call: gotoNextLabel(); } The first time I click I go from N01 to N02, but then it stops going forward/working. Any ideas? Regards, Toe Cutter "Toe Cutter" <newsgroup(a)macromedia.com> wrote in message news:e0bkav$nfi$1(a)forums.macromedia.com... > > > Hi again, > > When I used the word 'marker', I really meant 'frame label'. > Any ideas? > > Regards, > Toe Cutter > > "Toe Cutter" <newsgroup(a)macromedia.com> wrote in message > news:e09pmi$7ms$1(a)forums.macromedia.com... > > > > > > Greetings, > > > > Does anyone know how to get actionscript > > to get a button to "gotoNextMarker" or > > "gotoPrevMarker"? > > > > According to "Macro... Flash MX Freehand 10 Advanced Training from the > > Source" > > ... one of its chapters says " > > Markers are your friends. Use them to keep track of significant events in > > the timeline. Later, you'll learn how to use ActionScript commands to jump > > from marker to marker within a timeline. " > > > > Unfortunately, I do not have this book. > > > > Regards, > > Toe Cutter > > > > > > > > > > > >
From: gravideo on 28 Mar 2006 12:15
It loooks to me like you're starting over each time you click because you have everything inside the onClipEvent. Try setting everything up in the actions for the first frame of the movie. The only thing you need in the onClipEvent is the call to your function. |