# External actionscript file to load in fla

**URL:** https://forum.kirupa.com/t/external-actionscript-file-to-load-in-fla/263398
**Category:** Uncategorized
**Created:** [June 15, 2008, 6:29pm UTC](https://forum.kirupa.com/t/external-actionscript-file-to-load-in-fla/263398 "2008-06-15T18:29:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jikowhitewolf](https://avatars.discourse-cdn.com/v4/letter/j/67e7ee/32.png) [@jikowhitewolf](https://forum.kirupa.com/u/jikowhitewolf)
#### Post date: [June 15, 2008, 6:29pm UTC](https://forum.kirupa.com/t/external-actionscript-file-to-load-in-fla/263398/1 "2008-06-15T18:29:00Z")

</div>

[http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/js/html/wwhelp.htm](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,

1. create Greeter.as in Flash CS3.
2. create helloWorld.fla and save the file at the same folder
3. apply the code in the first frame.
4. Last, test the movie.  
THanks,  
Janelle

---

<div class="post-metadata">

### Author: ![swd120](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@swd120](https://forum.kirupa.com/u/swd120)
#### Post date: [June 17, 2008, 8:23pm UTC](https://forum.kirupa.com/t/external-actionscript-file-to-load-in-fla/263398/2 "2008-06-17T20:23:21Z")

</div>

[quote=jikowhitewolf;2343172][http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/js/html/wwhelp.htm](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,

1. create Greeter.as in Flash CS3.
2. create helloWorld.fla and save the file at the same folder
3. apply the code in the first frame.
4. 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();
