Yes, that was the 2:nd part of the code i sent you.
Where the sprite being clicked on ran the TurnRed() handler only if the
global is TRUE.
That only happends if the user has clicked the turnRed button. Otherwise the
mouseUp / down handler will do what ever it does if the user has not clicked
the turnRed button.
--CODE
on mouseDown / Up
if gIsRed then --if the user has clicked the turnRed button
makeRed()
else --if the user has not clicked the turnRed button
otherHandler()
end if
--/CODE
HTH
/Micke
____________________________________________
Mikael Wir�n
Knowledge Network
Klubbacken 30
129 39 H�GERSTEN
Tel: +46-(0)8-646 24 31
Mob: +46-(0)709-15 24 30
Mail: [EMAIL PROTECTED]
Web: HTTP://www.knowledgenetwork.se
____________________________________________
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Richie Jindal
> Sent: den 14 september 2001 13:04
> To: [EMAIL PROTECTED]
> Subject: RE: <lingo-l> button-click to activate functionality
>
>
> Hi Mikael,
>
> I understand the logic to constantly switch the
> variable for red between true and false..but what i
> don undertand is how does it still help me to first
> click the button and then trap the sprite to be turned
> red.
> I mean what i probably need to do is to click a button
> and then wait until there is another click somewhere
> on some other sprite..only then this new sprite can be
> passed to the turnRed handler..just clicking a sprite
> somewhere brings some other actions in my movie...what
> i want is that when somebody clicks the turn red
> button only then this funtionality gets activated and
> only then when a sprite is clicked does it turn red..
> I hope this is more understandable now...
> Thanx for your help
>
> Richie
>
> __________________________________________________
> Terrorist Attacks on U.S. - How can you help?
> Donate cash, emergency relief information
> http://dailynews.yahoo.com/fc/US/Emergency_Information/
>
> [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!]