hello every one, I trying to get move from AS2 to AS3. I get errors in AS3 that I don't understand. I saw this code on this form but I can't get it to work.
They are both in the same file directory
afx.as
afx.flaCode:package { public class Greeter { public function sayHello():String { var greeting:String = "Hello World!"; return greeting; } } }
The ErrorCode:var myGreeter:Greeter = new Greeter(); mainText.text = myGreeter.sayHello();
Thank you for the helpPHP Code:5000: The class 'afx' must subclass 'flash.display.MovieClip' since it is linked to a library symbol of that type.




Reply With Quote