Hi,
MoveObject_Behavior:
property sp
on beginSprite(me)
sp = sprite(me.spriteNum)
end
on exitFrame(me)
sp.locH = sp.locH + 1
end
----------------------------
I run the movie and in the Message Window:
t = script("MoveObject_Behavior").new()
sprite(1).scriptInstanceList.add(t)
and get a script error: Property not found.
Director docs say that at least one behavior should be attached to a sprite
before using SIL. I tried that, still doesn't work. I wonder ho do I
reference to a sprite that I attach behavior to? sprite(me.spriteNum)
doesn't work, what's the way out?
TIA
Peter Bochan
[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!]