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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dysfunctional button!

Status
Not open for further replies.

bigmacopilac

Technical User
Nov 20, 2003
8
US
i created this interactive menu and so far it has two buttons and they were each assigned different scenes to gotoandplay when clicked.but no matter what i do, one of they both goto the same damn scene. anyone know why? please help.
thanks
-john
 
Are your buttons within a movie clip?
Are you targeting scene names?

You should try targeting labeled frames instead as targeting scene names is most of the times, useless.

Label the targeted frame in the targeted scene with an unique label such as start2 for the first frame of a Scene 2 for example (no number only labels or at least not starting off with a number), add _root to your path, and target the labeled frame...

on(release){
_root.gotoAndPlay("start2");
}

Regards,

cubalibre2.gif
 
thanks for the help. it worked fine after that. now another small question. a couple buttons i made seems to have trouble at first to do their assigned "gotoandplay" action. eventually the scene that i want the button to take me to appears but after i click on the damn button like 10 times. any comments?
 
Hard to say without seeing your movie and/or .fla.
Do these buttons have tweens in them?
Can you post a link to your .fla?

Regards,

cubalibre2.gif
 
Well, can't say much without seeing the .fla.
I suspect you're using a tween on this ring, and that you might not have the button script on all of the tween. Check all keyframes of your tween to see if the script is actually allways present. It might be just on one part of the tween.
Other than that, you'll have to post a link to your .fla.

Regards,

cubalibre2.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top