Your question is kind of confusing but it might just be me. If you declare a
script as a parent script it can be instatiated with the new keyword and
need not be attached to any physical sprite thats there on the stage, so you
do not have to attach it to any sprite like a behavior if you create a new
instance and then assign it to a global variable it will exist for the
entire period the movies running until you void it or create a new instance
once again using the same variable. Hope this helps, feel free to ask for
clarifications if this is not clear enough.

Vijay
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Matthew
DeSimone
Sent: Saturday, February 16, 2002 4:20 PM
To: [EMAIL PROTECTED]
Subject: <lingo-l> Does P/C support abstract children?


For some reason in  5 years of director development, I've never worked
seriously with Parent/Child scripting.  Now I'm dumped into the middle
of it, and desperately need some help here.

I have a flash movie which has 25 moving objects on the screen, as well
as a number of obstacles.  These objects react to a mouse click in flash
to set their new destination.  However, due to the amount of processing
needed to find the shortest available route, I want to offload the
pathfinding scripts to director.

Now, in order to find the shortest route possible, I need to keep track
of several arrays specific to each flash "sprite".  I believe the
easiest way to do this is to make a new child instance each time my
pathfinding handler is called.  However, I have nothing to "attach"
these children to.

I guess my main question is, is it possible to have abstract children
off a parent script, where the children exist simply as invocations of a
script, and not invocations of a script which are attached to a specific
director sprite?

I know that may seem convulted, so if anything needs clarification, let
me know.

~matt desimone
[EMAIL PROTECTED]

[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