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

NEED HELPwith the GotoAndPlay command

Status
Not open for further replies.

Bignewbie

Programmer
Feb 22, 2001
351
PH
I thinks it is quite basic but i cant seem to find a solution for it in flash help. what i want to do is this:

i have button "A" that when clicked stores the current frame number then goes to frame 250 where button "B" is. button "B's" function is supposed to bring back to where button "A" is. Please note that button "A" exists in many frames and button "B" exist only on frame 250. i need to know the script to let the GotoAndPlay command recognize a variable. i tried TYPE:"expression" then putting the variable name in FRAME: but it doesn't work.


is there something im missing?

need help soon, or risk the agony of being fired.


thanks and Godspeed!


biggie
 
I suppose B does something else than just resending you to A, if not what's the point in going to B in the first place.
Is it more like... If a certain condition exists when you get to B, go to one of the As, not necessarely the one you came from?
If so, differently labeling your A frames should do the trick?

Answers your question? Or what am I missing?

;-)
 
in this statement:

GotoAndStop (tempo)

where tempo is a variable, is this a valid script? coz it seems it is but it doesn't work at all.

 
I fail to understand why you want to GotoAndStop to a variable? Aren't you talking about a label?

;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top