> I thought Karina was a bit off there. I know framescript is

I'm never off!

Well... very rarely.

Sometimes.

All the time?

:)


That should teach me to make assumptions. I knew you can use "sendSprite"
with 0 or -5, so I thought 0 will do for sprite.property. My sole defence is
that I never use that syntax anyway because it's evil ;p


> sometimes 0,
> but I always take it as -5. Even so, there are things you

They're mostly interchangable, although I often use 0, since you can use it
for the gpdl (= getPropertyDescriptonList). The difference between the two
is:

put the currentSpriteNum
--0

put me.spriteNum
--0

the thing about me.spriteNum is that it can't be used untill the behavior is
instantiated, so if you put it in the gpdl, you get an error. also, you can
use the "if not the currentSpriteNum" syntax.


> The way I have done this is to include a handler in the framescript
> which exports a reference to itself:
>
> on get me
>   return me
> end
>
> Then you can get a proper pointer to the instance with:
>
> framescriptInstance = sendsprite(-5, #get)
>
> After that it's up to you how dirty you want to be. ;)

Or just use getter/setter methods, with "sendSprite (0,
#SetWhateverProperty, newValue)" - which I suggested in the first place...


Karina








[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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