Thsnks Robert
Still weird though that
sprite(the currentSpriteNum).member = "Instrument2_Note"
works!
?????
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Robert Wingate
Sent: Monday, September 25, 2000 10:58 PM
To: '[EMAIL PROTECTED]'
Subject: RE: <lingo-l> Whats the difference? the currentSpriteNum and
me.spriteNum
> sprite(me.spriteNum).member="Instrument2_Note"
> I get a script error
You're trying to set a sprite's member to a string, instead of a member. Do
this instead:
sprite(me.spriteNum).member = member("Instrument2_Note")
That'll clear the error up. Not that that info answers your question:
> Just wondering if there are any major differences?
spriteNum -
"Sprite property; determines the channel number the behavior's sprite is in
and makes it available to any behaviors."
currentSprite -
"Movie property; indicates the channel number of the sprite whose script is
currently running...The currentSpriteNum property is similar to spriteNum of
me, but it doesn't require the me reference."
HTH,
Rob
/*********************************
* Rob Wingate, Software Human *
* http://www.vingage.com *
* mailto:[EMAIL PROTECTED] *
*********************************/
[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!]
[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!]