Kerry Thompson wrote
<.....>
> ...do multiple Flash movies on a
> page launch multiple instances of the Flash player? And if so, what's the
> RAM hit?
>

In my experience with Flash, the number of external movies that are added to
a main movie does not matter as much as the amount of movement and tweening
that is going on - as well as the complexity of the objects that comprise
the movie.

That is, 30 external movies that contain a button in the first frame, each
of which just sits there waiting for a mouse event is far different than
even 5 external movies., each of which contains complex shapes with lots of
nodes in them with all sorts of special effects and lots of tweens.

If your design is such that only one of the 30 external movies are actually
"playing" at one time - as opposed to just waiting for the mouse event -
then in my experience the number of buttons should not be an issue.

To test the performance of the movies that you will be loading, you could
create a main Flash movie and follow these steps:

1. Use the insert New Symbol menu option to create an empty movieClip
2. Add this empty symbol to the stage and give it an instance name of
Container

3. Add something like the following code to the first frame of the movie:


moviesToLoad = new Array();

function preloadMovies (initDepth) {
  if (this.moviesToLoad.length != 0) {
  for (i=0; this.moviesToLoad.length; i++) {
   depth = initDepth+i;
   duplicateMovieClip (Container, "Container"+depth, depth);
   loadMovie (this.moviesToLoad.pop(), "Container"+depth);  }
 } else {
  trace ("the array is empty");
 }
}

moviesToLoad = new Array();
with (moviesToLoad) {
 push("movie1.swf");
 push("movie2.swf");
 push("move3.swf");
 <.........>
push("movie30.swf");
}
initDepth = 5;

preloadMovies(initDepth);


This should load the movie1.swf through movie30.swf on top of each other.
(Of course the external swf files will need to exist and be local to the
main movie)  It won't be pretty, but it should give you an idea of the
issues involved.

hope this helps,
Lee Goldshcmidt




[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to