3 Replies Latest reply on Nov 21, 2006 4:33 PM by Newsgroup_User

    Can't reach MC from actionscript (from a  root timeline)

    Level 7
      Hi!

      I'll try to explain step by step:

      1) On the main (root) timeline I have MovieClip "base_mc" (instance name
      "base_mc") , but inside that
      MC "base_mc" I have another MC called "insideBase_mc" (instance name
      "insideBase_mc").

      2) On the main (root) timeline I have ActionScript:

      insideBase_mc._alpha = 50;

      but it's not working. All I can do is set alpha for "base_mc".

      Can anyone help me to understand how to reach MC that's in another MC?

      Thanks a lot!


        • 1. Re: Can't reach MC from actionscript (from a  root timeline)
          Level 7
          _root.base_mc.insideBase_mc._alpha = 50 ;

          Also, check out the doc regarding _parent, so that you can go back up
          the hierarchy

          :-)



          Bare wrote:
          > Hi!
          >
          > I'll try to explain step by step:
          >
          > 1) On the main (root) timeline I have MovieClip "base_mc" (instance name
          > "base_mc") , but inside that
          > MC "base_mc" I have another MC called "insideBase_mc" (instance name
          > "insideBase_mc").
          >
          > 2) On the main (root) timeline I have ActionScript:
          >
          > insideBase_mc._alpha = 50;
          >
          > but it's not working. All I can do is set alpha for "base_mc".
          >
          > Can anyone help me to understand how to reach MC that's in another MC?
          >
          > Thanks a lot!
          >
          >
          • 2. Re: Can't reach MC from actionscript (from a  root timeline)
            Level 7
            OK, I fount it on my own: base.topBar._alpha = 50;


            • 3. Re: Can't reach MC from actionscript (from a  root timeline)
              Level 7
              Thanks joseAT!

              "Jose Guevara" <joseAT@guevaraDOT.net> wrote in message
              news:ek05on$s1e$1@forums.macromedia.com...
              > _root.base_mc.insideBase_mc._alpha = 50 ;
              >
              > Also, check out the doc regarding _parent, so that you can go back up the
              > hierarchy
              >
              > :-)
              >
              >
              >
              > Bare wrote:
              >> Hi!
              >>
              >> I'll try to explain step by step:
              >>
              >> 1) On the main (root) timeline I have MovieClip "base_mc" (instance name
              >> "base_mc") , but inside that
              >> MC "base_mc" I have another MC called "insideBase_mc" (instance name
              >> "insideBase_mc").
              >>
              >> 2) On the main (root) timeline I have ActionScript:
              >>
              >> insideBase_mc._alpha = 50;
              >>
              >> but it's not working. All I can do is set alpha for "base_mc".
              >>
              >> Can anyone help me to understand how to reach MC that's in another MC?
              >>
              >> Thanks a lot!
              >>