Skip to main content
SSSSSSBenay
Known Participant
November 8, 2018
Answered

Loading large external swfs into main swf, avoid delay in loading time

  • November 8, 2018
  • 1 reply
  • 442 views

Hello Everyone,

I have numerous large swfs that I am placing into a main swf using different buttons. I am experiencing quite a delay when the external .swfs are called to load and play (because of their size). (Note: I do not experience any delay in loading the external swfs when playing the main swf locally, however when burned to a CD, the large external swfs load very slowly into the main swf each time their button is clicked.) The code I use to load the swfs:

var Lesson1_Loader:Loader;

Lesson1_Loader = new Loader();

Lesson1Numberbtn.addEventListener(MouseEvent.CLICK, playL1);

function playL1(e:Event):void

{

Lesson1_Loader.load(new URLRequest("Lesson1.swf"));

addChild(Lesson1_Loader);

}

My question: Is there a way to have the external swfs start loading themselves (but not playing) when the main swf is opened (there is an introductory animation in the main swf before any external swfs are played), so that when I click each button and addChild for each external swf, it is already loaded and will play instantly without delay? 

Thank you in advance!

This topic has been closed for replies.
Correct answer Robert Mc Dowell

sure you can, but you should try greensock libraries to help you load faster multiple swf simulteanously and very

easy to code

Getting Started Tweening with GSAP for Flash | GreenSock

1 reply

Robert Mc Dowell
Robert Mc DowellCorrect answer
Legend
November 9, 2018

sure you can, but you should try greensock libraries to help you load faster multiple swf simulteanously and very

easy to code

Getting Started Tweening with GSAP for Flash | GreenSock

SSSSSSBenay
Known Participant
December 20, 2018

Thank you Robert! I did in fact achieve this using GreenSock!