all groups > flash actionscript > july 2006 >
You're in the

flash actionscript

group:

Flash 6 vs. Flash 7/8 AS1 difference?


Flash 6 vs. Flash 7/8 AS1 difference? abeall
7/21/2006 9:36:49 PM
flash actionscript:
Is this behavior documented? It has left me utterly baffled.

var a = "string";
if(!a)trace("!a:"+a);

Working in the Flash 8 IDE, I get these results:
Publish settings - Flash 6 AS1
Output - "!a:string"

Publish settings - Flash 7 or 8 AS1
Output - ""

So (!var_str) evaluates 'true' in SWF6, but evaluates 'false' in SWF7 and
SWF8? Is this essentially a bug in SWF6 that was fixed in SWF7? Or is there a
problem with the Flash 8 IDE compiling to SWF6? I'll try compiling with my old
copy of Flash 6 when I get a chance.
Re: Flash 6 vs. Flash 7/8 AS1 difference? Jeckyl
7/22/2006 12:00:00 AM
[quoted text, click to view]

Yes .. and its all documented in the help files (what's new section) in MX
2004
--
Jeckyl

Re: Flash 6 vs. Flash 7/8 AS1 difference? abeall
7/22/2006 12:28:33 AM
AddThis Social Bookmark Button