3 Replies Latest reply on Aug 19, 2007 9:53 AM by kglad

    reference a movieclip by a variable containing its instance name?

      There are some movie clip instances on the stage (not dynamically created at run time). Now, I want to do this:

      use a variable to hold a instance name at runtime. then use this variable to reference the movie clip it points to.

      Problem: suppose this variable is named "mc_ref". it fails to use "_root.mc_ref" to refer to the movie clip by the name that mc_ref contains. it seems in this case flash takes "mc_ref" as instance name and thus looks for any child by that name. since mc_ref itself is not a name, this will not work.

      is there something like MovieClipbyInstanceName function for this? Any thoughts? Thanks!