Skip to main content
Participating Frequently
June 28, 2018
Question

simple Flash pre-loader

  • June 28, 2018
  • 2 replies
  • 1070 views

Hello,

I'm putting back online a very old Flash project (2001) which needs to load tons of swf. https://focused-mestorf-27ac7d.netlify.com/

in my base file, I need to create a simple text preloader that will work for every swf loading without having me to update each button action calling the swf url, otherwise I'll have to update every button (1000 or 2000 of them) which will be a ton of work.

is it possible to do? I haven't touched Flash and AS3 for 10 years. I'm super rusty...

I'll appreciate any help.

This topic has been closed for replies.

2 replies

Robert Mc Dowell
Legend
June 29, 2018

why not....

- are your swf located on the same place?

- are the name normalized? (like swf1, swf2 etc..), if not, could you provide the entire list on a file?

- are the swf need to be loaded only?

thanks

Robert Mc Dowell
Legend
June 29, 2018

Also provide the FLA...

It seems also that your photos are very low resolution, is it normal?

manage all the buttons with loops and dynamic logic is the right way to go.

Participating Frequently
June 29, 2018

all swf are in separate folders, per month and day. and have arbitrary names.

for instance for January 04 2002:

files/01/04/02.swf

files/01/04/02_arbre.swf

files/01/04/02_art.swf

files/01/04/02_lumiere.swf

I guess I could find a way to catalog all the files in a txt file.

but I don't want to pre-load all the swf, too many of them, and close to 1.5 Gb total. I really just want either a simple text percentage loader for when a swf loads or a simple animation to let the visitor know something is loading.

that project was done in 2001, picts were super low resolution back then. so yeah it's normal.

here are a few files:

Dropbox - diary-sample.zip

I'm including the first day April 12 2001, which only has 1 picture diaporama, so 01.swf for that day as only 1 button calling 01_birthday.swf but most days have more diaporamas

Robert Mc Dowell
Legend
June 28, 2018

Welcome back!

first of all you are better to create a class out of the timeline.

Then use GreenSock (ActionScript Animation made Easy - GreenSock Animation Platform GSAP ) libraries for a dynamic and efficient preloader

I guess the text preloader is linked to each swf so just make an array in your class

if it's static or if it constantly changing import it from your server in JSON.

Participating Frequently
June 28, 2018

it's static.

not sure what you mean about array class, I'm really ultra rusty, I feel like I can't do anything with Flash nor AS3 now.

if I have to link a text preloader to each swf that would not work. as I said, too many swf files. but all the swf load on the same level (replacing each other every time a new one loads) so perhaps a preloader for that level?

Robert Mc Dowell
Legend
June 28, 2018

to create a class

Adobe Flash Platform * Creating your own classes

so if your swf won't change in real time it's better to create your array

directly in your class like

swfList = ["mc1.swf","mc2.swf",...]

then use Greensock preloader to load your SWFs.