A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: positioning a loadMovieNum on stage

  1. #1
    human
    Join Date
    May 2000
    Posts
    132

    positioning a loadMovieNum on stage

    when you load an external movie into say level10, how do you control it's position on the stage? Can you do it with get movie property?

    thanks

  2. #2
    Flash Video Moderator Wheels's Avatar
    Join Date
    Dec 2000
    Location
    Minneapolis
    Posts
    1,590
    Code:
    loadMovieNum("your.swf, 10);
    this.onEnterFrame = function(){
        if(_level10._currentframe==1 ) { // check to make sure it's there
               _level10.stop();
               _level10._visible = 0; // hide for a second
               _level10._x = 100 // your position
               _level10._y = 250// your position
               _level10._visible = 1;  // make visible, 1 same is true;
               _level10.play();
               this.onEnterFrame = null;
               }
    };

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center