Calling functions from another class
How does one access a function from a different class?
Let's say I have an .as file called Main. My flash file uses this as it's main class, so it runs when you test the program. Let's say I have another class called Test which looks like this :
package
{
public class Test
{
public function Test()
{
trace ("why won't you work?!");
}
}
}
Say I want to call the Test function when the game runs (by calling it in Main), how would I get it into the Main file to run? I've imported it, made sure the functions were public/static, created it as a variable and it still won't work.
Any help would be good
