> you can use this in a score script, attached to the button sprite:
> 
> global <your_global_here>
> 
> on mouseUp me
> go to frame <your_global_here>
> end mouseUp

This is what you asked for, but I doubt it's what you really want. The above
approach will let you toggle between two frames, and not much more. To make
a "browser-like" back button, you're going to need more than the previously
visited frame. Turn your global into a global list. Add frame references to
the list when you navigate to those frames (add a method to your navigation
buttons that will store a frame reference for the current frame before
jumping to another. Your button script then looks something like this:

global gHistoryList

on mouseUp me
  backToFrame = gHistoryList.count
  gHistoryList.deleteAt[gHistoryList.count]
  go frame backToFrame
end


2 cents,
Kurt


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to