"Pranav Negandhi" <[EMAIL PROTECTED]> wrote
> 
> Naaahhh....it doesn't work. Here's what I tried out.
> property mySprite
> 
> on beginSprite me
>   mySprite = sprite(me.spriteNum)
>   put mySprite
> end beginSprite me
> 
> on exitFrame me
>   go the frame
> end
> 
> The beginSprite puts (sprite -5) in the message window.
> Then in the message window I keyed in:
> put sprite(0).mySprite and I got a "property not found" error. Any other ideas, 
>anyone?

I thought Karina was a bit off there. I know framescript is sometimes 0,
but I always take it as -5. Even so, there are things you just can't do
with sprite numbers below 1.

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. ;)

-- 
_____________

Brennan Young

Artist, Composer and Multimedia programmer

mailto:[EMAIL PROTECTED]

In software, the chain isn't as strong as the weakest link; it's as weak
as all the weak links multiplied together.
-Steve McConnell


[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