0 Replies Latest reply on Oct 2, 2007 12:21 PM by jeffEngland1

    dynamic instance name

      I am current setting the value of a dynamic text field from an XML file using the current script.

      MovieClip(root).Bowler1.one_1_1.text = WhosTurn.bowler[0].frameScore[0].attribute("ball2Symbol");

      However I would like the instance name of the field( MovieClip(root).Bowler1.one_1_1.text) to be generated using part of the XML.

      I have tried doing this - MovieClip(root) + "Bowler1.one_" + WhosTurn.bowler[0].attribute("frameNumber"); but I had no luck,

      So I guess to simplify the problem, what is the proper syntax to call an instance name using a combination of text and variables?

      Jeff England