If you are always on a labeled frame, and you didn't mind displaying the
name of the frame label, then you could just do it like this:
on mouseUp
result =yesNoDialogBox("Exit "& the frameLabel, "Are you sure you want
to exit "&the frameLabel)
if (result = "yes") then
halt
end if
end
That is, just dynamically generate the message to go with whatever frame
label you're on.
If you're between labels then you'll have to do a little more work, since
the frameLabel only applies when you're sitting on a frame.
- Tab
At 05:25 PM 1/22/01 +0000, Jon Paul Alongi wrote:
>i wanna use a button which displays a message depemdent on where the movie
>heead is...
>
>for example whilst the movie head is on FRame "lobby" i want to press the
>button and it say are u sure u want to leave the lobby...
>or whilst the movie head is on FRAME "game"
>are u sure you want to leave the game..
>
>
>at the moment the lingo I have to work with is:
>
>on mouseUp me
>
>
>
> result = yesNodialogBox("Exit Cirondo", "Are you sure you want to Exit
>Cirondo ?")
> if result = "yes" then
> quit
> else
> end if
>end if
>
>
>end
>
>
>what can i add to do this.....i think i know but i dont know the lingoo
>
>soemthing like...
>
>if the frame = "lobby" then
> result = yesNodialogBox("Exit Cirondo", "Are you sure you want to Exit
>Cirondo ?")
> if result = "yes" then
> quit
> else if the frame = "game" then
>
>
>etc....
>
>
>thanx i would appreciate all help!!
>
>jon
>
>
>
>
>[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!]
[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!]