Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: FLASH: Ignoring an if statement!!!!!!! (F5 action script BUG)
From: Rebecca Lovelace
Date: Thu, 9 Nov 2000 21:50:42 GMT

I wrote a nice long email to ask about this problem, but I found the
answer, so instead of asking the question I thought I'd share the
workaround:
------
testval = false;
trace("testval:"+testval);
if (testval == true)
// I really think this is silly
{
trace("I like Flash, but it's driving me nuts today!");

}
--------
See the comment in there between the if statement and the bracket?
Theoretically, it shouldn't affect anything, the parser should just ignore
it.
It chokes the parser, and whether testval is true or false, it executes the
body of the if.
I just spend a day trying to figure this out. Remove the comment, the code
works as expected.

I thought this might help someone out.

Rebecca

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]