Skip to main content
Participating Frequently
September 14, 2007
Question

Using string to turn into movieclip

  • September 14, 2007
  • 1 reply
  • 180 views
Hello guys!

How do i turn a string to movieclip?

i tried something like this and is not working:

function funcaoMenuCom(choice:Number){

var myMovie:MovieClip = _parent["button" + String(choice)];

}
This topic has been closed for replies.

1 reply

MauredoAuthor
Participating Frequently
September 14, 2007
ups sorry, its solved now...

var myMovie:MovieClip = ["button" + String(choice)];