Call a Clip in a function.
Hello,
I want to use gotoAndPlay for a clip in a function but i want to give the name of the clip to this function. I tried to do it but i still got Error #1034: Type Coercion failed.
This is my code:
function Goo(blin:String):void
{
MovieClip(blin).gotoAndPlay(3);
}
Goo('rom');
The Clip rom is on the stage.
Thanks for the answer.