http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/js/html/wwhelp.htm
Hi
I am new to working on Flash CS3. I started with the tutorial from adobe documentation. I am trying to figure out how to link the “Greeter.as” file to my “helloWorld.fla”.
I downloaded the sample, and it is working. The Greeter class can be called in the fla file. But when I start a new project, it just does not work.
Hope anyone can tell me what did I miss out other than just,
create Greeter.as in Flash CS3.
create helloWorld.fla and save the file at the same folder
[quote=jikowhitewolf;2343172]http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/js/html/wwhelp.htm
Hi
I am new to working on Flash CS3. I started with the tutorial from adobe documentation. I am trying to figure out how to link the “Greeter.as” file to my “helloWorld.fla”.
I downloaded the sample, and it is working. The Greeter class can be called in the fla file. But when I start a new project, it just does not work.
Hope anyone can tell me what did I miss out other than just,
create Greeter.as in Flash CS3.
create helloWorld.fla and save the file at the same folder
apply the code in the first frame.
Last, test the movie.
THanks,
Janelle[/quote]
You need to import the as file - so in the first frame you need this statement at the top
//import statement
import Greeter;
//your code
var myGreeter:Greeter = new Greeter();
mainText.text = myGreeter.sayHello();