At 2:29 Uhr -0400 03.06.2003, Carl West wrote:

Write the rollover and mouse behaviors as parent scripts and apply them thusly:


sprite(x).scriptinstancelist = [new(script"rolloverParent"),new(script"mouseyStuffParent")]

or

 sprite(x).scriptinstancelist.add(new(script"rolloverParent")
 sprite(x).scriptinstancelist.add(new(script"mouseyStuffParent")


be aware, that the channel you treat like this will not instantiate sprite behaviors after such an operation.
that's not a problem, if you use this channel exclusively for dynamically assigned sprites, but it leads to very difficult to track down unexpected results, if there are other sprites, which use behaviors in any aother frame in the same channel in the score.


I'ver uploaded a demo movie which shows the bug in driector which leads to this behavior at:
<http://www.farbflash.de/director/scriptInstanceListBug.dir>


in short:
referencing the scriptinstancelist of an *empty sprite* (note that *empty sprites* are dynamically assigned sprites as well) will 'kill' the sprite (-> no more events from the score/director).
the only workaround I found so far, is to set the SIL to something (e.g. []) in a frame, where there is something in the channel *physically* !
thus you can go the recommended (macromedia) route of using dummy sprites in the first place.
--


  |||
ażex
 --
[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