>Is there a simple way to just active or desactive specific movie or score
>scripts by Lingo?

While we're waiting for you to answer Tab's question, I'll take a stab. I'm 
only guessing what you're trying to do, but here are a couple of techniques.

In a movie script or frame script:

global gActive

on prepareMovie
   gActive = TRUE
end prepareMovie

on someOtherHandler
   gActive = FALSE
end someOtherHandler

on sometimesActive
   if gActive then
     --whatever
   end if
end

Of course, gActive has to be declared wherever you use it.

Another technique, the one I prefer, using OOP. In a parent script:

property pActive

on new me, myState
   pActive = myState
   return me
end new

on activateMe
   pActive = TRUE
end activateMe

on deActivateMe
   pActive = FALSE
end deActivateMe

on allOtherHandlers
   if pActive = TRUE then
     --execute
   end if
end allOtherHandlers


Cordially,
Kerry Thompson


[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