I am sure you can't have multiple prepareMovie and startMovie...

Actualy Director will execute only the first global handler (handler in
a movie script) that it finds. I makes sense...if you have two handlers
with the same name doing diferent things how will you call a specific
one?
Don't mix the movie scripts with parent scripts and behaviors. 
The movie script has no instance on it's own, even though you may have a
100 movie scripts Director will parse through all of them and collect
their handlers and keep them in the RAM as handlers not movie scripts
(correct me guys if I'm wrong) ...when you call a global handler the
first one found will execute...that's the nature of movie scripts.

I know what you want to achieve and the way to do that is simple but not
as simple as you've tried.
What you have to do to trigger other movie scripts to do something on
start/prepareMovie is to create start/prepareMovie handlers with
different names in those other scripts and then call them at the end (or
wherever) in the main start/prepareMovie handler...like this

--- the first startMovie

On startMovie
 -- do something here
 startMovie2
 startMovie3
 --etc
End

----------------------

-- some other movie script
 on startMovie2
  --do something
 end

-- some other other movie script
 on startMovie3
  --do something
 end

Etc....

So..when the first (main) one executes it will call other handlers which
ensures that they are also executed on startMovie

Still, I would recommend that you give more understandable names to
these handlers because if they are doing specific things then they
should have there names refering to what they do..they are still global
handlers and it makes no difference if they all live in the same script
or all over the place, you can trigger them at anytime from anywhere,
all you are doing here is to call them when the movie starts

Hope this helps

Pedja


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Roland Schroth
Sent: 09 June 2004 09:07
To: [EMAIL PROTECTED]
Subject: <lingo-l> pass with prepareMovie not possible?


I have the following problem:

In a movie script I have a prepareMovie and a startMovie procedure to
initialize some settings. As I want my other movie scripts to still
execute their own code for these messages, I thought that putting a pass
at the end of each of these procedures should enable that behaviour. But
now I have the problem that only the first prepareMovie is executed and
the pass does not seem to have any effect at all. Neither the scripts in
the internal cast nor those in the external ones execute their
prepareMovie or the startMovie messages.

Can't these two messages be passed?
I am sure, I did this in the past and it worked ...

I did not find anything regarding this in the lingo help.
It is important that I can have more than one movie script with
preapareMovie and startMovie procedures.

Any help is really welcome.

Kind regards,
Roland

(I am working with Director 8.5G)


[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