Try this:

on beginSprite me
   pNormalState = sprite(me.spriteNum).member.number --  <-- use the 
number of the member
   pOverState = pNormalState + 1  -- then you can add offsets
   pDownState = pNormalState + 2
end

(As a side note, if you declare "spriteNum" as a property at the top 
of your script, then you can just use "spriteNum" instead of 
"me.spriteNum")

Irv


At 9:39 PM +0200 5/19/01, Kamil Dabkowski wrote:
>Hi,
>
>I've created simple behavior (below) to controll video sprite. I put
>members for buttons in external cast. In the same cast I put this
>behavior. Over and Down button state I create by:
>
>on beginSprite me
>   pNormalState = sprite(me.SpriteNum).member
>   pOverState = sprite(pNormalState.number + 1)
>   pDownState = sprite(pNormalState.number + 2)
>end
>
>Unfortunatelly for Over and Down state Director uses members from
>Internal cast not from External. The number of member is ok but cast is
>different. Somebody know why?
>

-- 

Lingo / Director / Shockwave development for all occasions. 
          
   (Home-made Lingo cooked up fresh every day just for you.)

[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