• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

Explorer ,
Nov 08, 2018 Nov 08, 2018

Copy link to clipboard

Copied

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!

TOPICS
ActionScript

Views

324

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advisor , Nov 08, 2018 Nov 08, 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

Votes

Translate

Translate
Advisor ,
Nov 08, 2018 Nov 08, 2018

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 20, 2018 Dec 20, 2018

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines