4 Replies Latest reply on Sep 7, 2006 9:17 PM by kglad

    Load new movie clip to exact position

    timsaw Level 1
      I am new to flash but not to programming, but took an example from the docs but it doesn't seem to work...

      // Creates a parent movie clip to hold the container
      this.createEmptyMovieClip("logo_mc", this.getNextHighestDepth());
      // creates a child movie clip inside of "mc_1"
      // this is the movie clip the image will replace
      logo_mc.createEmptyMovieClip("container_mc",0);
      logo_mc.container_mc.loadMovie(" http://www.macromedia.com/images/shared/product_boxes/80x92/studio_flashpro.jpg");
      _root.DY = stage.height+4
      _root.DX = stage.width+4

      Will the last two lines actually place the new movie clip to X and Y postions determined from stage.height+4 and stage.width+4?

      I have tried several variations - even plugged in numbers like root.DY = 200; and root.DX = 200; but still loads in the same position everytime...

      Am I misunderstanding this??? or is there a better way to do it?

      Thanks!

      Tim