How to access MC instance when we have only its name as a String.
Hello,
I am not good at AS, but I am trying out.
I am sending the instance name (i.e. String) of the MovieClip to a function.
From that function I need to access that same instance of MovieClip using that name.
I have a MovieClip Instance name Planet_mc. And I am sending it to function abc()
abc(Planet_mc.name);
function abc(s:String):void
{
// do something to change the alpha of that instance.
}
Thanks