Hi!
I am creating a helloWorld example here with actionscript 3.0 but I am having some dificulties.
Here is my class :
Code:
package
{
public class Greeter
{
public function sayHello():String
{
var greeting : String;
greeting = “Say Hello!”;
return greeting;
}
}
}
and here is my code at flash:
Code:
var mygreeter : Greeter = new Greeter();
mainText.text = mygreeter.sayHello();
And here are the error messages I am getting:
1180: Call to a possibly undefined method Greeter.
1046: Type was not found or was not a compile-time constant: Greeter.
What am I doing wrong?
thank you