Hey guys!
I have the following problem:
Simplified example:
I have a loaded Movie Clip on my main.fla called McContactUs.as (exporting)...
On my main.fla = Main.as
Code:
public function userRequestCheckCurrentEmailForContactForm(username:String)
{
trace("INSIDE CHECKING FORM...bla bla bla");
}
On McContactUs.as I have the following:
PHP Code:
public class McContactUs extends MovieClip
{
public function McContactUs()
{
init();
}
public function init()
{
MovieClip(root).userRequestCheckCurrentEmailForContactForm("test");
}
}
}
I get TypeError: Error #1009:
You can see that I am calling the function on Main.as exactly at the moment the class is initialized...This is where the problem is...
If I try to call the function through a btn.addEventListener...it works just fine...but I need to call the function at the time the class/movieclip is loaded...
Any ideas and or suggestions how I can get around this without using a timer :[ ??
Thanks a lot in advance!!
Cheers!