Hi,
By "default cache" I think you refer to the "local storage" setting in
the Flash Player configuration... AFAIK, that's the amount of info you
can store with SharedObjects, and has nothing to do with the cache used
for storing loaded assets... the later depends exclusively on the
browser's cache settings.
A preloader is ALWAYS necessary when doing a loadMovie, 'cause even when
they are in cache, there's a slight delay of a few frames till they
actually appear on stage... so any operation dependant on the image
would fail.
So, your options are the ones you describe... preload everything when
doing a loadMovie (My advice is to use a proxy function, or a loader
class, so you never use loadMovie directly, making sure everything is
loaded before beeing used), or else switch to Flash 8 and use
BitmapData. BitmapData allows you to load images and store them in
variables (the same way you would do with text from a loadVars
operation), and use them as many times as you want (attachBitmap). The
bitmapdata information stays in the computer's memory (ram when
available, then virtual memory), so there is absolutely no problem if
you only use 380Kb of images.
Cheers...
David Beermann escribió:
Why don't you use BitmapData for storing the loaded images once and
placing them in different movie clips as many times as you want?
Attila
Thanks, Attila. I forgot to mention that the project I'm currently
working on is Flash7/AS2. So using the BitmapData Class is no option
here.
Am 10.03.2035 um 21:51 schrieb Alain Rousseau:
There is a limit in each browser for the amount of cache available,
if your files go over that amount, not all the files will stay in the
cache ! You should try Attila's solution to this
You right about the cache, Alain. The default cache setting allows
each website to store 100 KB. My images add up to about 380 KB (76
files range from between 2 to 7 KB each). So caching could really be
the problem.
So my options are, to create a preloader for all areas where I need my
thumbnails or the convince my client to switch to Flash 8. Would the
switch really help or would I end up in another caching problem? I
couldn't find any information in the AS2.0 Language Reference where
the BitmapData Class stores its data. Or even better, is there any
other solution to this problem?
Thanks for your help.
David
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com