3 Replies Latest reply on Sep 28, 2011 3:10 PM by kglad

    Problem with external swf loading

    pantelis224466

      Hi there.

      I have a main.swf file.

      In first frame i load a background slideshow with this code:

      var loader:MovieClipLoader = new MovieClipLoader();

      this.createEmptyMovieClip("myGalleryContainer",1);

      myGalleryContainer._lockroot=true;

      loader.loadClip("slideshow.swf",myGalleryContainer);

      myGalleryContainer._y =3;

      myGalleryContainer._x =2;

      myGalleryContainer.swapDepths(myMenu);

       

      In the same frame (1st)  in different layer, i load 3 .swf files for language selection with this code:

       

      var loader:MovieClipLoader = new MovieClipLoader();

      this.createEmptyMovieClip("myGalleryContainerlang",5);

      this.createEmptyMovieClip("myGalleryContainerlang2",6);

      this.createEmptyMovieClip("myGalleryContainerlang3",7);

      myGalleryContainerlang._lockroot=true;

      myGalleryContainerlang2._lockroot=true;

      myGalleryContainerlang3._lockroot=true;

      loader.loadClip("clock-athens.swf",myGalleryContainerlang);

      loader.loadClip("clock-london.swf",myGalleryContainerlang2);

      loader.loadClip("clock-roma.swf",myGalleryContainerlang3);

      myGalleryContainerlang._y =0;

      myGalleryContainerlang._x =450;

      myGalleryContainerlang2._y =0;

      myGalleryContainerlang2._x =543;

      myGalleryContainerlang3._y =0;

      myGalleryContainerlang3._x =630;

       

      In the second frame, i load a .swf file which loads external xml html content page (483 kB) with this code:

      var loader:MovieClipLoader = new MovieClipLoader();

      this.createEmptyMovieClip("myGalleryContainerhtmltext",2);

      myGalleryContainerhtmltext._lockroot=true;

      loader.loadClip("html_content_page-el.swf",myGalleryContainerhtmltext);

      myGalleryContainerhtmltext._y =30;

      myGalleryContainerhtmltext._x =2;

      In 3rd frame, i load another external xml html content page with this code:

      var loader:MovieClipLoader = new MovieClipLoader();

      this.createEmptyMovieClip("myGalleryContainerhtmlcontact",2);

      myGalleryContainerhtmlcontact._lockroot=true;

      loader.loadClip("html_contact_page-el.swf",myGalleryContainerhtmlcontact);

      myGalleryContainerhtmlcontact._y =30;

      myGalleryContainerhtmlcontact._x =2;

      I want the gallery to play on the background all the time.

       

      My problem is that when the site loads the 1st time and click from the menu to go to the 2nd frame (1st content page) then i have to wait at about 3-4 seconds to load my html content. The same for the 3rd frame.

      If these two content pages load for the 1st time, then the pages open immediately. What can i do for this?

       

      Is there a way to open this content pages more quickly, or place a loader, and with what code?

       

      Thank you in advance