A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Preloader issues

  1. #1
    Member
    Join Date
    Jul 2002
    Posts
    38

    Preloader issues

    Hello all, a wee problem here.
    In my portfolio I have a main flash movie of opening and closing doors. This main movie is supposed to load other flash movies (resume.swf, contact.swf, ect) under these doors.

    When going from section to section, the doors close, then open on a new section. The problem is, my preloader isn't working. The doors don't wait until the swf under them is loaded, and open prematurely. You can see what I mean at

    www.threeplusone.ca/scott/

    Here is my code for the preloader frame one

    // This loads the movie "MyResume.swf" into a movie clip called "Contentclip"
    loadMovie(MyResume.swf, "ContentClip");

    // This pauses (or it SHOULD) everything until MyResume.swf is fully loaded
    if (ContentClip._framesloaded = 8) {
    gotoAndPlay(3);
    }

    Here is my code for the preloader frame two
    gotoAndPlay(1);

    Can anyone tell me why this isn't working?

  2. #2
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,488
    Put the preloader code in the first two frames of MyResume.fla.

    In frame 1.

    ifFrameloaded(8) {
    this.gotoAndPlay(3);
    }

    In frame 2.

    this.gotoAndPlay (1);

    To open and close the doors for loading externals, check out this thread

    http://www.flashkit.com/board/showth...hreadid=437330
    Last edited by iaskwhy; 05-05-2003 at 02:04 PM.

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