Completely untested, but it would be much simpler (and more
adaptable) if you used a behavior without a case statement like this:
property spriteNum -- automatically given the value of the current sprite
property pName -- name calculated in beginSprite below, once
on beginSprite me
pName = sprite(spriteNum).member.name
end
on mouseEnter me
member("guiRollover).text = "The planet you are currently on or
orbiting is " & pName
end
You probably want to add:
on mouseLeave me
member("guiRollover).text = ""
end
Irv
At 1:08 PM -0500 7/24/02, <[EMAIL PROTECTED]> wrote:
>Sorry about the no subject
>
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED]]On Behalf Of Eric Terry
>> Sent: Wednesday, July 24, 2002 1:06 PM
>> To: [EMAIL PROTECTED]
>> Subject: <lingo-l> (no subject)
>>
>>
>> Can someone show me the way to find the member name of the sprite
>> when this
>> rollover is done?
>> Is there a way to use that name in my case statement?
>>
>> on mouseEnter me
>> set currentSprite = the rollover
>> case currentSprite of
>> 13:member("guiRollover").text = "The planet you are
>> currently on or
>> orbiting"
>> 7:member("guiRollover").text = "The planet you are
>> currently on or
>> orbiting"
>> -- there are many more choices
>> end case
>> end
>>
>>
>> Thanks,
>> Eric Terry
>> Programmer/Analyst
>> Web Services
>> Gameport.com
>> 913-663-9437
>>
>> [To remove yourself from this list, or to change to digest mode,
>> go to http://www.penworks.com/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/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!]
--
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/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!]