I'm on a "defensive programming" kick so if you have a lot of these "s01",
"s02" etc text members and frame labels, then its a good idea to check that
the frameLabel exists in "the markerlist" before using the go command.

This way the error isn't fatal to a projector when testing and you can check
other areas of your beta CD.

property spriteNum

on mouseDown me
  theName = sprite(spriteNum).member.name
  if getPos(the markerList, theName) then
     go theName
  else
     Alert "Joe, I can't find marker =" && theName
     exit
  end if
end


-- Randy

on 12/12/01 12:51 AM, Irv Kalb at [EMAIL PROTECTED] wrote:

> Try this:
> 
> property spriteNum
> 
> on mouseDown
> theName = sprite(spriteNum).member.name
> go theName
> end


[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