A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: loadmovie troubles

  1. #1
    Senior Member
    Join Date
    Nov 2003
    Location
    Bournemouth, UK
    Posts
    144

    loadmovie troubles

    Just like many others I am struggling with loadmovie. I am loading an swf into level1 like so: -

    on (release) {
    loadMovie ("gallery1.swf", 1)
    }

    How do I now control the loaded swf e.g. if I wanted to click a button on level0 and make gallery.swf goto the next frame, i'm currently using: -

    on (release) {
    _level1.nextFrame
    }

    but that doesn't work. What am I doing wrong? Cheers

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    If loading on a level, you should really use loadMovieNum...
    code:

    on (release) {
    loadMovieNum("gallery1.swf", 1)
    }



    As for moving it, your script should work, but only when the movie is fully loaded...
    code:

    on (release) {
    _level1.nextFrame();
    }


  3. #3
    Senior Member
    Join Date
    Nov 2003
    Location
    Bournemouth, UK
    Posts
    144
    Thanks, was missing the ()


    I'm now loading another swf into an empty movieclip on level0. I'm struggling with positioning it correctly.

    If I load an swf into a mc and the first frame of the swf has the code:

    this._x=0;
    this._y=0;

    would that put my swf to the top left of my empty movieclip or put the movieclip to the top left of the stage? If the latter how is the positioning of the swf within the mc determined?

    thanks

  4. #4
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    If using...

    this._x=0;
    this._y=0;

    ...In the "to be loaded" external movie, then the external movie will be aligned on the top-left corner of the movie clip container. But unless you want to position it elsewhere, there's no need to specify that, since it's the default position.

    You can position your container clip anywhere on stage, by dragging it into position, or setting it's x & y coordinates in it's properties.

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