OK...I know that five minutes after I post this I will figure it out,
but that only seems to happen *after* posting, so here goes.
I have a sprite with a behavior attached to it during authoring. It
looks like so:
on beginSprite me
put "authoring attach: 1"
end
I attach another behavior to this sprite that says this:
on beginSprite me
put "authoring attach: 2"
end
When the playhead hits this frame, the message window reads:
-- "authoring attach: 1"
-- "authoring attach: 2"
All well and good.
Now, what I really want to do is have only the first behavior attached
in author mode. The second behavior would then be added dynamically via
the scriptInstanceList. The problem I am running into, however, is that
whenever I do:
sprite(1).scriptInstanceList.add(script("Behavior2").new()) it seems to
wipe the first attached behavior. The behavior still resides in the
scriptList, but it disappears from the scriptInstanceList and the code
never fires.
Too much eggnog last night is really impeding my thinking. ;)
Brian Romanko
Lead Developer - Neo/SCI Corporation
Member - Greater Rochester Macromedia User Group
[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!]