2 Replies Latest reply on Jun 21, 2007 9:51 PM by kkuhl86

    LoadMovie Troubles

    kkuhl86
      I'm having trouble loading a movie into a movie clip at the _root level. I have a movie clip on the _root level (a nav bar) with buttons in it. I understand that in flash CS3 you need to implement button actionscript a little differently so I did the following on the actions frame of the nav button movie clip:
      quote:

      import flash.events.MouseEvent;
      home.addEventListener("MouseEvent.CLICK",goHome);
      function goHome(event:MouseEvent):void {
      _root.mainclip.loadMovie("home.swf");
      }


      The movie clip on the _root level has an instance name 'mainclip'. So I figured this would work... but I get the following compiler error:
      quote:

      1120: Access of undefined property _root.


      Any ideas as to why this is happening if I have an empty movie clip directly below the nav movie clip which is calling _root.mainclip?