A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: loading movie problems

  1. #1
    Junior Member
    Join Date
    Aug 2002
    Posts
    4

    loading movie problems

    Hi there,
    I'm just starting with flash and need some help with this.

    What I'm doing is really simple. I have an external 2 swf presentations that I want to load to a main flash file.
    I can load and play the first file with no problems. But, the file keep looping and dose not stop and the other file dose not load and play as I want it to.
    So bsically, the first external file will load, play, stop. Then the next external file will load, play and stop and so forth.

    here is what I have

    main flash movie (one layer)
    1st frame: action: loadMovieNum("1a.swf", 0);
    2nd frame-10th frame a tween for a text saying next slide, simple stuff
    11th frame: action: loadMovieNum("1b.swf", 0);

    external swf files

    1a: contains a video (150 frames, one layer)
    1b: contains a video (180 frames, one layer)
    no actions set on any of these.

    Any idea what should I do to make this works?

    Let me know

  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    When loading into _level0 you are replacing everything in it ( your codes ). Load the movies into _level1 instead.

    Also you can make the next movie to load by having the loading code in the last frame of the first external movie.

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  3. #3
    Junior Member
    Join Date
    Aug 2002
    Posts
    4
    So there is no way of making the main flah movie load all of them in sequence?
    Yes, I have tried your suggestion before and works fine when I load the next movie in the last farme of the current movie.
    But I thought that I can do the same from the main movie.

    Whenever I use level 1 to load the movies, things don't strt corectly and overlap each other.

  4. #4
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    To control everything from the main movie you can not replace it, so you have to load the other movies either to new _level or into target movieclips in the main swf.

    The main movie could check when the extrnal swf reaches its last frame with....

    if(_level1._currentframe==_level1._totalframes){
    // Load next movie
    }else{
    // Do something else
    }

    .. and then initiate a load of the second swf.

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

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