Question
calling function from inside the MovieClip
Here's the code I wrote in the first frame of the timeline
function test(){
trace("function Called!!!!!");
}
then I creat a movieclip on the stage, and the problem is how to call the function from inside the MovieClip somewhere?
I tried these in the movieclip
_root.test();
// _root was gone in AS3, so of course it dosen't work
stage.test();
// the LiveDoc said the _root was replaced by "stage", but it still dosen't work ?
parent.test();
// don't know why it dosen't work either
please help me...
function test(){
trace("function Called!!!!!");
}
then I creat a movieclip on the stage, and the problem is how to call the function from inside the MovieClip somewhere?
I tried these in the movieclip
_root.test();
// _root was gone in AS3, so of course it dosen't work
stage.test();
// the LiveDoc said the _root was replaced by "stage", but it still dosen't work ?
parent.test();
// don't know why it dosen't work either
please help me...