all groups > flash actionscript > march 2005 >
You're in the

flash actionscript

group:

Help with very tricky preloaders


Help with very tricky preloaders Doing my head in
3/3/2005 10:43:35 PM
flash actionscript:
Hi,

I have a container movieclip and inside am creating a series of movie clips on
the fly (with createEmptyMovieClip())and populating them with external jpgs via
an xml file. The jpgs are large and take time to download. I would like to
create a preloader for each of these dynamic movie clips.

How do I create the preloaders on the fly?

please see www.viaduct.co.uk and select 'furniture' then 'category' then any
option ie 'beds'. Each of the images has its own preloader. I need to achieve
this and the drag too (I have basic drag but no inertia or boundaries).

am using flash mx 2004 pro.

please help.

thanks

Sara
Re: Help with very tricky preloaders Doing my head in
3/7/2005 4:07:22 PM
Can anyone help at all?

I'll put the code up later but basically the architecture is like this..

I got a parent fla with a frame which contains a movieClip called 'container'.

Inside 'container' , on the first frame I have a script which loads an xml
file, creates 3 arrays and then a loop which iterates 28 times. Each time
creating an EmptyMovieClip, giiving it a unique name, position and placing an
external JPG into it. The JPGs are large (some 300K) each so I would like a
preloader for each movie clip.

This is my first project in MX Pro. Am a bit baffled.. Can anyone help?

cheers

S
Re: Help with very tricky preloaders Doing my head in
3/7/2005 4:07:57 PM
Can anyone help at all?

I'll put the code up later but basically the architecture is like this..

I got a parent fla with a frame which contains a movieClip called 'container'.

Inside 'container' , on the first frame I have a script which loads an xml
file, creates 3 arrays and then a loop which iterates 28 times. Each time
creating an EmptyMovieClip, giiving it a unique name, position and placing an
external JPG into it. The JPGs are large (some 300K) each so I would like a
preloader for each movie clip.

This is my first project in MX Pro. Am a bit baffled.. Can anyone help?

cheers

S
Re: Help with very tricky preloaders CanonBoy
3/7/2005 4:34:54 PM
you sure those are jpegs being loaded as jpegs?

One way is to load individual swf files of which each swf file is just an
empty movie clip with a small preloader inside and then a loadMovie command.

That way, as each swf is called to load upon selecting "Beds," they all start
loading in sequence but each has a preloader.

Maybe that can help out.
Re: Help with very tricky preloaders Doing my head in
3/7/2005 5:16:30 PM
hi,
are you talking about the jpgs on the viaduct site? I don't know that they are
jpgs, I just assumed they were.

So you are suggesting that I create 28 swfs each with a preloader inside and
then the jpg? Can I tell the swfs i'm calling in which jpgs to load into
themselves via the master swf with xml? Can I rather than create 28 swfs,
duplicate one 28 times with actionscript?

thanks

S
AddThis Social Bookmark Button