3 Replies Latest reply: Dec 15, 2006 8:39 AM by svarmuza RSS

    Problem with loadMovie function

    svarmuza Community Member
      Please if somebody could help me,

      I have the main movie where i would like to load external swf ( scrolable menu ) at specific coordinate.
      I have created the empty movie clip on main stage (container) and positioned it where I want my menu to apear.
      Then I create the actionscript layer and wrote:

      container.loadMovie("meni.swf")

      It loaded the meni.swf and positioned it right, but scrolling function of loaded menu won't work.

      If I load it directly to main stage with function loadMovie("meni.swf", 1) everything works but it is positioned at upper left corner of the stage and I don't know how to move it where I want it.

      I'm beginner at action script and flash so I would appreciate if somebody could help me.
      Thank you for your time.
      Sasa
        • 1. Re: Problem with loadMovie function
          ggshow Community Member
          if you are using any _root in your meni.swf, be aware that when it has beed loaded into another main movie, the _root will no longer refer to meni.swf root, but it refer to the root of your main movie.

          You can change the _lockroot properties,

          Put in the main movie:
          container._lockroot = true;

          or put in your meni.fla
          this._lockroot = true;


          Good luck
          • 2. Re: Problem with loadMovie function
            svarmuza Community Member
            Thank you very much, this solved the problem I posted at beginning but now another issue ocurred.
            Meni.swf has vertical scrolling function ( when you go with the mouse up and down towards the edges of meni it scrolls, in middle stands still).

            Now, when loaded into the main movie it took _x and _y scrolling coordinates from main movie. Now when I scroll anywhere up and down in a main movie ( which is much bigger than meni.swf) meni scrolls. I would like it to scroll only when I come with my mouse inside meni.swf area.
            I hope my explanation is clear.
            If you could help me I would appreciate. Thanks one more time for previous solution because it saved me days of research. ( it is so funny how easy it is for people who know:)
            Sasa
            • 3. Re: Problem with loadMovie function
              svarmuza Community Member
              anyone??
              Thanks