2 Replies Latest reply on Aug 10, 2009 7:44 PM by Ned Murphy

    I need to move all objects in to ONE MC in the main timeline

    Ron Colmen Level 2
      On the main time line I've got movie clip called Z and also n the main timeline I've got another movie clip called B. Inside B I've got a movie clip called C.

       

      My problem is - the actionscript written in C makes few objects in the main timeline function (changing colors, displaying notes, input text linked with dynamic text, etc...). I need to move all those objects in to ONE MC in the main timeline (changing colors, displaying notes, input text linked with dynamic text, etc...). But when I move it in to a single MC it wont function! simply the actionscripts won't work!! What should I do to make all those objects in to one mc and still make the actionscript written in C work?

       

      p.s. - I've used the _root. command in C.
        • 1. Re: I need to move all objects in to ONE MC in the main timeline
          Ned Murphy Adobe Community Professional & MVP

          You will need to describe how you are putting things together a little better, and then show the code that you want to have working and explain where it is.

          1 person found this helpful
          • 2. Re: I need to move all objects in to ONE MC in the main timeline
            Ron Colmen Level 2

            Here goes the order : A (main timeline) > Z (movieclip inside the main timeline) / B (movieclip inside the main timeline) > C (movieclip inside B).

             

             

             

            A - I've got a many movieclips - instance names A1_mc, B1_mc, C1_mc, A0_mc, etc...

             

            B - I've got movieclips which contains all the buttons and codings to change colors, display color names, add text, locate the positioning of the text, on/off images and rotare - scale them.

             

            C - here the buttons and AS codes are written.

             

            Z - I need all those objects which are in A to go into a single MC (Z)

             

            Few codes used in C

            my_Input_Txt.onChanged = function() {   
            _root.my_Dyn_Txt1.text = my_Input_Txt.text;   
            _root.my_Dyn_Txt2.text = my_Input_Txt.text;

            };

             

            _root.my_Dyn_Txt1._visible = false
            _root.my_Dyn_Txt11._visible = false
            _root.MDT1._visible = false
            grt1._visible = false
            this.chk_tbtn1.onRelease = function() {
            _root.my_Dyn_Txt1._visible = !_root.my_Dyn_Txt1._visible;
            _root.my_Dyn_Txt11._visible = !_root.my_Dyn_Txt11._visible;
            _root.MDT1._visible = !_root.MDT1._visible

            };

             

            on (release) {
            colorchange = new Color ("/A1");
            colorchange.setRGB(0xE5861B);

            {   _root.CN1.text= _root.CN11.text="yourluckycolor"}
            }

             

            on (press) {
            _parent.rotate_mc1._rotation +=10;
            _parent.rotate_mc11._rotation +=10;
            }