ActionScript 2.0 nonsense
Monday, 4. December 2006, 18:58:06
I have a bunch of old AS code (you know, function(){} instead of class{}, .prototype using and so on) and trying to compile it in Flash 8:
1) First frame: #include "cube.as" (BTW, there is no class named "cube" or "Cube")
2) Ctrl+Enter: ***Error*** ActionScript 2.0 class scripts may only define class or interface constructs.
3) Renaming cube.as into cube.as1
4) Doing #include "cube.as1"
5) Error message disappears!
ActionScript is still as stupid as it was in Flash 4. Much more powerful, but still stupid.
1) First frame: #include "cube.as" (BTW, there is no class named "cube" or "Cube")
2) Ctrl+Enter: ***Error*** ActionScript 2.0 class scripts may only define class or interface constructs.
3) Renaming cube.as into cube.as1
4) Doing #include "cube.as1"
5) Error message disappears!
ActionScript is still as stupid as it was in Flash 4. Much more powerful, but still stupid.








Anonymous # 28. March 2008, 19:15
Maybe this error is because you use reserved name 'cube' or something like that.
Anonymous # 20. April 2008, 23:56
This error comes up without anything being reserved. He is right that Actionscript is still a bugged-pos language.
Anonymous # 6. March 2009, 20:12
I think its because of cached-compiled code of of the previous cube.as file... by changing the name you're creating a whole new file.
Anonymous # 25. May 2009, 06:27
stupid language
in Java we write something like
String myString; Simple like that
In AS, we write
var myString:String.
I check other syntax, its just close to java, but use something unpleasant syntax.
Its stupid??????
Dont understand, but dont want to learn this language at all, even its quite useful...
Anonymous # 9. June 2009, 14:06
Use "Control/Delete ASO files" menu command. It's like browser's cache - sometime you need to do that in order to make things as they should be.