> 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!]
- Re: SV: <lingo-l> case question Kerry Thompson
- Re: SV: <lingo-l> case question Jakob Hede Madsen
- RE: <lingo-l> Whats the difference? the curre... Paul Steven
- Re: <lingo-l> Whats the difference? the c... guran
- Re: <lingo-l> Whats the difference? t... Owen Kelly
- RE: <lingo-l> Whats the difference? t... Paul Steven
- RE: <lingo-l> Whats the differenc... roy crisman
- RE: <lingo-l> Whats the differenc... Karina Steffens
- <lingo-l> Re: Getting OT: Whats t... guran
- Re: <lingo-l> Whats the difference? the c... James Newton
- RE: <lingo-l> Whats the difference? the currentSpr... Robert Wingate
- RE: <lingo-l> Whats the difference? the curre... Paul Steven
- RE: <lingo-l> Whats the difference? the curre... Karina Steffens
- RE: <lingo-l> Whats the difference? the c... Paul Steven
- Re: <lingo-l> Whats the difference? t... Bjarne Nyquist
- SV: <lingo-l> Whats the difference? t... guran
- RE: <lingo-l> Whats the difference? t... Karina Steffens
- Re: <lingo-l> Whats the difference? t... Carl West
- RE: <lingo-l> Whats the differenc... Paul Steven
- Re: <lingo-l> Whats the difference? t... Carl West
- RE: <lingo-l> Whats the difference? the currentSpr... Robert Wingate
