Skip to main content
Participant
June 8, 2007
Question

URGENT! for work, please help.

  • June 8, 2007
  • 3 replies
  • 200 views
I'm working in f8. I have created buttons that have

on(release) {
gotoAndPlay("zvue");
}

and so on and so forth. On the first click it will go to the right place, but if you click the button a SECOND time...it goes some where totally obscure in the presentation. However, the code says the same thing on the button in every frame. PLEASE please please please help.

Thanks,
Bev
This topic has been closed for replies.

3 replies

Damon Edwards
Inspiring
June 8, 2007
where you want the button to go someone different than ZVUE, add a keyframe above with new code
my_btn.onRelease = function() {
//new action
}
bev2Author
Participant
June 8, 2007
I do have a frame labeled zvue. but this button spans over 7 key frames. when you're on the ZVUE frame and oyu click the button it goes to a different part of the main time line, but if you're a couple key frames down and click the ZVUE button it goes to the ZVUE page. So, do I put that code on all 7 key frames?
Damon Edwards
Inspiring
June 8, 2007
you shouldnt attach your code to the button its self, attach it to a keyframe and refer to the button by its instance name.. ex:
my_btn.onRelease = function() {
gotoAndPlay("zvue");
};

so, you have a frame labeled, zvue