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

If or case statements with global variabels

Status
Not open for further replies.

Trana

Technical User
Nov 2, 2002
76
0
0
AU
Hello.

I want to create this:

If I am on frame X and click on a button/link to frame Y I want a global variabel to recieve the value X.

Then on frame Y I want a back button which uses a if or case statement which checks the value of the global variabel and then uses it to go to frame X.

Is this possible?, I cant get it to work...

Please any input is appreciated, if it cant be done, then plz say so.
 
On frame X put this code on the button you want:

global gLastFrame

on mouseUP
gLastFrame = the frame
end

Then in frame Y,on the back button

go to gLastFrame

HTH

Mayuresh
 
Thanks! It works great :)

Your solution was a lot easier then what I was trying out aswell.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top