I'd use the flag method and I'd use two state switching handlers so 
that I wouldn't have to think about phase issues.

property objectState

on beginSprite me
   activate -- if you want it to initialize to TRUE
end

on activate me
   objectState = TRUE
end

on deActivate me
   objectState = FALSE
end

on enterFrame me
    if objectState then
      -- code to execute of not goes here
    end if
end

then you can just use sendSprite to activate or deactivate it.
sendSprite(theSpriteOfInterest, #activate)
             or
sendSprite(theSpriteOfInterest, #deActivate)

hth

-Buzz

At 11:51 AM +0100 1/4/02, Giulio Genti wrote:
>First off all many thanks for your help, I'll try to explain better the
>situation in order to let you understand the purpose. I think we'll find a
>solution!
>I got a box and three object, when I drag one of the object in this box(and
>set a value for the variable that the object use), the behaviour of the
>other object should be unavailable. The box should have only one object
>inside at the same time.
>Hope my English is enough to get your precious suggestion ;-)
>Bye
>Gg
>
>
>Giulio Genti wrote:
>
>>  Hi guys,
>>  just a simple question...
>>  is there a command that freeze a behaviour until a condition is true? I
>>  guess there is...
>>  which is?
>>  Many thanks in advance.
>>  Gg
>>
>>  [To remove yourself from this list, or to change to digest mode, go to
>>  http://www.penworks.com/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/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/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