Guran said

"on myOwnHandler me"

"is not the way to use the me parameter. "me" can only be used
together with for example "mouseDown", "mouseEnter" etc.

Thanks Guran

Wow! I have been using me like this for years - I am sure all my lingo books
use this convention!

For example in "Advanced Lingo For Games" pg 92

--
on randomizePieces me

end
--

Can someone please confirm if what Guran is telling me is infact true and I
have been writing dodgy code for years?

Btw Guran - RE: And a coding tip for you my friend:

I did know I could dynamically create the names of the members - these are
only temporary names. In the final version I will be replacing the names
with more meaningful names that are not based on a number based naming
system.

But thanks for pointing it out anyway.

Paul



on Change_Sprite

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of guran
Sent: Tuesday, September 26, 2000 1:49 PM
To: [EMAIL PROTECTED]
Subject: Re: <lingo-l> Whats the difference? the currentSpriteNum and
me.spriteNum


Now, there you have it:

"on myOwnHandler me"

is not the way to use the me parameter. "me" can only be used
together with for example "mouseDown", "mouseEnter" etc.


And a coding tip for you my friend:

---------------------------------------------------------------
 on Change_Sprite_To_Appropriate_Note_Member
    sprite(the currentSpriteNum).member = "Instrument" &
pInstrument_Icon_Number & "_Note"
 end
---------------------------------------------------------------

Does the same thing as you want...


;-)

guran





----- Original Message -----
From: Paul Steven <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 26, 2000 12:11 PM
Subject: RE: <lingo-l> Whats the difference? the currentSpriteNum and
me.spriteNum


> My guess is that you are using Cast Member Scripts and not Behaviors.
> Cast Member Scripts do not receive a "me" parameter, so if you use...
>
> No - I am using all behaviours - I never use Cast member scripts - I was
> warned against using them when I first learnt director.
>
> Weird!
>
> Paul
>
>
>
> [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!]



[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