Isn't the script already in memory from the previous run? Globals are
kept when start/stopping in authoring mode. This can cause such
'unexplainable' behaviour sometimes.
Add this to your movie script to prevent this from happening
on stopmovie
clearglobals()
end
-----Oorspronkelijk bericht-----
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] arjen
Verzonden: woensdag 1 juni 2005 2:40
Aan: Lingo programming discussion list
Onderwerp: <lingo-l> why does this script get instantiated...
...while the startmovie handler isn't even been called yet?
i've got about a dozen scripts, with a central parent script taking
care of the rest of the branche, but somehow one of the scripts gets
instantiated even before the startmovie-handler is called.
i'm stuck in a situation where this script already starts complaining
about not being able to find a certain object, while the other
parentscript that is supposed to instantiate the complaining script
isn't even instantiated yet.
it's even so mad, that the debugger never even reaches the breakpoint i
put on the very first line of the startmovie-handler.. as if this
script already gets called before anything else happened.
i tried to change the startmovie in preparemovie handler, but same
results.
it stops when i comment-out the 'on new' handler of that script.. or if
i completely delete the script from the cast. but ofcourse this also
disables me from instatiating it..
this is actually driving me insane...
did anyone ever had similair experiences?
or better; does anyone know a solution?
arri
[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!]