> [...]
> Parent scripts are not intended to be "attached" to sprites. [...]
>
> Irv
Why? OK, maybe they are not intended but you can do this and it works. For
example, I can't attach behavior from Library Palette "Automatic Model
Rotation" in run time typing
x = script("Automatic Model Rotation).new()
sprite(1).scriptInstanceList.add(x)
because new script does'n works properly (pMember is VOID, pSprite is VOID
and so on).
BUT if you add a 'new' handler to this behavior, like this:
on new me, my_member, my_sprite -- and others
pMember = my_member
pSprite = my_sprite
return me
end
"Automatic Model Rotation" behavior becomes Parent script/behavior and you
can use it by
x = script("Automatic Model Rotation).new(member(1),sprite(1))
sprite(1).scriptInstanceList.add(x)
I don't want to quarrel with you Irv, but I think I can attach parent
scripts to sprites exactly the same as I can attach behaviors.
Greetings
Szymon
[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!]