Hi, I guess this is simple to do, but I’m new to flash and have been stuck on this issue for days.
Bascially, how do I reference a dynamic text field in my fla file from a class which isn’t the document class?
For example:
I have an fla file called main.fla which contains no actionscript and has a single dynamic textfield called “text_txt” on the main timeline.
My class file is called aClass.as and is the following:
package
{
public class aClass extends MovieClip
{
public function aClass
{
about_tab.text = “Text dynamically added from a class file”;
}
}
}
Any help greatly appreciated