x = -1 * x

modern lingo syntax could be:

aValue = -1 * aValue

aValue = -(the aValue of me) ? (untested)

"the aValue of me" is the entire name of the variable you're going after here, so you need to make sure the negative is outside the entire 'variable'.


At 03:47 PM 9/28/2004, you wrote:
Hello,

In this behavior:

property aSprite
property aValue

on beginSprite me
  set the aSprite of me to sprite the spriteNum of me
  set the aValue of me to 9
end beginSprite

on doSomething me
  set the aValue of me to the -aValue of me
end doSomething

------
using verbose syntax I'm trying to set property variable aValue to a
negative meaning. I know I can do this like "set the aValue to -9" or
"aValue = -aValue", but I want it the way this is done in doSomething
handler. Director complains saying "Expected end of statement". I played
around with the brackets but to no result. Is there a workaround about this?

Thanks
Petro Bochan



[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!]

----------- Roy Crisman Macromedia Director Programmer, Lingo Guru, Multimedia Producer Greater Rochester Macromedia User Group (GRMMUG.org) Coordinator 277 N. Goodman St. Rochester, NY 14607-1162 (585)473-3492 home (585)615-2873 cell roymeo(AT)brokenoffcarantenna.com

[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!]

Reply via email to