A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Loadmovie into specific postion?

  1. #1
    Junior Member
    Join Date
    Aug 2005
    Posts
    3

    Loadmovie into specific postion?

    Does anyone know how to load a movie into a specific postion on the _root movie?

    I want to load a smaller movie in (physical size), into my root movie but i want it centralised.

    any help would be appreciated.

    thanks.

  2. #2
    Noor._alpha = 0 ! nooor83's Avatar
    Join Date
    Aug 2005
    Posts
    252
    create an empty movie and nest the movie u want to load in it..here is the code..

    _root.createEmptyMovieClip("myMovieClip", 1);

    here the depth is 1..u gotta be carefull about depths if u r creating any other movie clips dynamicly..so be sure that your depths are unique..

    _root.myMovieClip.loadMovie("youmovie.swf");

    i hope that it works fine..

    please let me know..

    Regards,

    Noor

  3. #3
    Noor._alpha = 0 ! nooor83's Avatar
    Join Date
    Aug 2005
    Posts
    252
    i forgot..

    _root.myMovieClip._x = 10
    _root.myMovieClip._y = 10

    set the position of ur movie..

  4. #4
    Senior Member
    Join Date
    Apr 2002
    Posts
    178

    what if....

    Just woundered how this would work when using the movieClipLoader object and levels...

    var myMCL:MovieClipLoader = new MovieClipLoader();
    _root.createEmptyMovieClip("myMovieClip", 5);

    myMCL.loadClip("expo_final5.swf",5);
    _level5.myMovieClip._x = 515;
    _level5.myMovieClip._y = 349;

    This does not work any suggestion
    gr verner

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