In your code below, in your call to sendSprite, you need to pass just 
the number of the sprite you want to send to, not "sprite(spriteNum)".

Further, you don't say where you do this sendsprite.  But for your 
code below to work correctly, you must do the sendSprite before you 
attempt to click on this sprite.

Irv


At 8:25 AM -0700 9/4/01, Richie Jindal wrote:
>Hi Christian,
>
>..by calling sendsprite and
>passing datalist which is a linear list to it like
>this:
>
>---------------------------------------
>sendSprite( sprite(spritNum), #setData,datalist)
>
>------------------------------
>
>property pChannel, pChildDataList, spriteNum
>
>on beginSprite me
>   pChannel = me.spriteNum
>   pChildDataList = []
>end
>
>on setData me, theData
>   pChildDataList = theData
>   put pChildDataList
>end
>
>on mouseUp me
>   put "channel of clicked sprite:" && pChannel
>   put "data held by clicked sprite:" && pChildDataList
>end
>
>-----------
>Now when i run this script and debug it i realise that
>theData gets the right value but pChildDataList is not
>assigned any value but for the iniatialisation with
>void. Also 'on mouseUp me' handler shows a void value
>for 'me' even though i click on a sprite ..
>what could be wrong in what i am doing??
>thanx for any suggestions..
>Greets
>

-- 

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