Skip to main content
Inspiring
June 15, 2007
Question

preloading multiple jpgs at once

  • June 15, 2007
  • 2 replies
  • 194 views
I would like to load several individual jpgs at one time and have the
preloader reflect the size of all of them combined. Is that possible?
How would i do that?

Thank you!
This topic has been closed for replies.

2 replies

Inspiring
June 15, 2007
Thanks for the help, but this is not really what I want to do.
I want to add the file size of all images together, so I can preload
them all together.
Participating Frequently
June 15, 2007
A simple way:

this.createEmptyMovieClip("container", this.getNextHighestDepth());
this.container._x = (some number way off the movie if you don't want to see it or change _visible to false);
this.container.loadMovie(one.jpg, one, 1); // path, new name, and level
this.container.loadMovie(one.jpg, two, 2);
//so on...
this.container.two._x = Math.floor(this.container.one._width);
var nLengthPhotos:Number = getProperty( this.container, _width);
trace(nLengthPhotos);