William Gill
2013-03-29 15:32:03 UTC
I haven't worked with flash or AS for several years, but have a need to
add flash to a client website. I want to put an animation (Flash movie)
on their home page, but the first pass produced an extremely large file.
I was able to trim it significantly by editing the images and other
assets, but to further expedite load time, I want to break it into 3 or
4 swf's that load separately, play in sequence, and then repeat.
Sounds simple enough, but every reference I see relies on browser cache,
and reloads each swf on every iteration.
I may be wrong, but this seems to go against my instincts. Beside not
wanting to depend on browser cache, won't continual reloading cause
memory leaks?
Is there a way to load each swf only once, and cache it within the
parent movieclip, possibly moving it on and off the stage as needed?
Am I wrong about possible memory leaks?
(As I said it's been a very long time, so I'm using MX 2004 and AS 2,
but I think the principle is the same.)
add flash to a client website. I want to put an animation (Flash movie)
on their home page, but the first pass produced an extremely large file.
I was able to trim it significantly by editing the images and other
assets, but to further expedite load time, I want to break it into 3 or
4 swf's that load separately, play in sequence, and then repeat.
Sounds simple enough, but every reference I see relies on browser cache,
and reloads each swf on every iteration.
I may be wrong, but this seems to go against my instincts. Beside not
wanting to depend on browser cache, won't continual reloading cause
memory leaks?
Is there a way to load each swf only once, and cache it within the
parent movieclip, possibly moving it on and off the stage as needed?
Am I wrong about possible memory leaks?
(As I said it's been a very long time, so I'm using MX 2004 and AS 2,
but I think the principle is the same.)