开发者

do actionscript 2 and actionscript 3 have a main class?

开发者 https://www.devze.com 2023-03-08 16:37 出处:网络
Ive been reading a bit about actionscript 2 and actionscri开发者_C百科pt 3, and there is something I want to ask, does these languages have a main class like in other languages ( C++ C#)...am asking t

Ive been reading a bit about actionscript 2 and actionscri开发者_C百科pt 3, and there is something I want to ask, does these languages have a main class like in other languages ( C++ C#)...am asking this because I came across alot of code in the net and alot of them seem to not have a main class

Thanks


you're technically wrong about your reply to George. AS2 does not have a main document class. It is POSSIBLE to create a type of pseudo main class, but this STILL requires some hackery by using code on the timeline to prototype the main SWF as a base object and add to it. This is not a document class, but rather a type of extension using flash prototyping. In AS3 you set the main document class explicitly as a compiler argument and that document class BECOMES the main object definition, as opposed to extending the existing one. Lets put it this way, if you asked Adobe if AS2 supported a document class, they would say no. If you stated that you use a document class in AS2 in an interview, they would tell you you're wrong and it would count against you. So the answer to your question is simply "no".

0

精彩评论

暂无评论...
验证码 换一张
取 消