2 Replies Latest reply: Nov 17, 2011 2:05 PM by DaLe Zki RSS

    How to access dynamic Text within a MovieClip symbol

    DaLe Zki Community Member

      Thanks in advance for help & resources!

       

      ~

      Using CS3 Flash Pro, AS2 or AS3

      ~

      Once the dynamic TextField is converted to a Movie clip symbol,

      access to that TextField is lost / broken.

       

      Could this be a "Class" issue?

       

      How do I enable the dynamic text to be passed into the Movie clip symbol?

       

      Thanks again!

      Dale Zki

        • 1. Re: How to access dynamic Text within a MovieClip symbol
          brcontainer Community Member

          You are setting the instance of the movieclip?


          Type defining the instance of the MovieClip and TextField, we have two instances.


          If the textfield is called "myTxt" movieclip and call themselves"MyMC" access by actionscript should look something like this:


          AS2: trace (_root.MyMC.MyTxt);

          As3: trace (root.MyMC.MyTxt);


          That was it?

          • 2. Re: How to access dynamic Text within a MovieClip symbol
            DaLe Zki Community Member

            Thanks for your response;

             

            For clarity, I should perform the following:

             

            Using AS3

            On the stage,

            insert a "dynamic text" field and label the instance 'myTxt'

            Convert to a Movie Symbol and call this 'MyMC'

             

            In an action script layer (AS3)

            insert~    trace(root.MyMC.myTxt)

             

            Question, Can I assume to still be able to feed the TextField

            by way of the standard .xml file (where I can change the text)?

             

            I'll give it a try....

             

            Dale