- Bought between 10 and 49 items
- Exclusive Author
- Has been a member for 5-6 years
- Sold between 1 000 and 5 000 dollars
var version:Number = 0.0.1; trace(version);
the first line is the only line needed—the second line is only there to show you what happens if you put this anywhere in your code. i know whats happening but i can’t for the life of me figure out why the compiler is this pathetic.
discuss?
- Author was Featured
- Bought between 10 and 49 items
- Exclusive Author
- Has been a member for 6-7 years
- Interviewed on the Envato Notes blog
- Item was Featured
- Microlancer Beta Tester
- Referred between 200 and 499 users
var version:Number = 0.0.1; trace(version);the first line is the only line needed—the second line is only there to show you what happens if you put this anywhere in your code. i know whats happening but i can’t for the life of me figure out why the compiler is this pathetic.
discuss?
report it here: http://blog.flashden.net/general/flash-cs4/
but i can’t for the life of me figure out why the compiler is this pathetic.
adobe.
- Author was Featured
- Bought between 10 and 49 items
- Exclusive Author
- Has been a member for 6-7 years
- Referred between 1 and 9 users
- Sold between 1 000 and 5 000 dollars
- South Africa
Strange… doesn’t crash my Flash. I run CS3 .
I tried both AS2 and 3. AS2 threw a compiler error, but AS3 just went on to publish the file.
Strange… doesn’t crash my Flash. I run CS3 . I tried both AS2 and 3. AS2 threw a compiler error, but AS3 just went on to publish the file.Same here (CS3 & CS4 , AS2 & AS3 )
- Most Wanted Bounty Winner
- Sold between 250 000 and 1 000 000 dollars
- Has been a member for 5-6 years
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Won a Competition
- Bought between 100 and 499 items
- Exclusive Author
- Referred between 200 and 499 users
+1Strange… doesn’t crash my Flash. I run CS3 . I tried both AS2 and 3. AS2 threw a compiler error, but AS3 just went on to publish the file.Same here (CS3 & CS4 , AS2 & AS3 )
- Exclusive Author
- Sold between 100 000 and 250 000 dollars
- Won a Competition
- Author was Featured
- Has been a member for 5-6 years
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Microlancer Beta Tester
- Author had a File in an Envato Bundle
CS3 , AS2, doesn’t crash… but of-course, “syntax error”.
Sorry but nothing happens in CS3 +Flash Player 10+AS1/2/3…
I think what he means by crash is it throws errors, and it would because 0.0.1 is not a valid number, numbers don’t have multiple decimal points, in flash, math, or anywhere else in general. You could make a string:
var version: String = "0.0.1";- Sold between 250 000 and 1 000 000 dollars
- Exclusive Author
- Interviewed on the Envato Notes blog
- Author was Featured
- Item was Featured
- Beta Tester
- Author had a File in an Envato Bundle
- Author had a Free File of the Month
If that doesn’t give any error is maybe because your not working in strict mode… otherwise the swf will never be compiled 
