Howdy-Tzi wrote

> on mouseUp
> go movie whatever
> doThis()
> end
> 
> on doThis
> alert "What do you want?"
> end
> 

try this


   on mouseUp
     -- create a temp reference to the moviescript object (to
     -- keep the movie script alive after we change movies)
     moviescriptObj = script("the movie script name")
     go movie whatever
     doThis()
   end

   -- in the specified movie script in the first movie
   on doThis
     alert "What do you want?"
   end

You can call the "doThis" handler in the moviescript object from within a
handler as if it were a normal movie script handler (ie not a call to an
object ref) even though the movie script cast member does not exist in the
new movie - provided you make some sort of reference to the moviescript
object to keep it 'alive').

I started writing a little explanation about the differences between script
cast members, script types, script objects and instance objects. Its pretty
rough, but if you are interested, have a look at
http://www.lingoworkshop.com/Articles/article12.asp

Luke

[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