2 Replies Latest reply on Jul 23, 2006 3:43 AM by tivins

    loadMovie with coordinate

    bebef Level 1
      hi, i want to load a movie in another .swf exactly where i want to, without the same size. The first is 550 x 400 pixels, and the 2 will be 130 x 40 pixels.

      Something like this one: (but this is not working)

      on (release) {
      _root.my_movie.loadMovie( "contact.swf", w = 130, h = 40, x = 329, y = 430 );
      }

      PLS reply
        • 1. Re: loadMovie with coordinate
          tivins
          Hi. try this :

          myButton.onRelease=function
          {
          var my_mc:MovieClip = _root.my_movie.loadMovie("contact.swf",0); // 0 or another needed depth;
          my_mc._x = 329;
          my_mc._y = 430;
          my_mc._width = 130;
          my_mc._height = 40;
          }

          You can't set "init object" with loadMovie. (More lines, but it's work ;)
          • 2. Re: loadMovie with coordinate
            tivins Level 1
            re...

            Note :

            If it don't work, try to do transforms only when movie loaded at 100%.
            Maybe you could use _mc.onEnterFrame, _mc.getBytesLoaded() & _mc.getBytesTotal() to know when it's done ;)