Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

load external jpg - cache related question

Status
Not open for further replies.

Bignewbie

Programmer
Feb 22, 2001
351
PH
Hi guys,

I always thought that when an external jpg is loaded into an swf, it is cached by the browser. or is it?

is there anyway to force it to be cached? I have an swf that loads external jpgs (10-20 of them) at certain points, when I refresh the page, it seems that the swf loads the external jpgs from my server not my cache, coz it takes the same time to show up. and i inspected my cache folder, it contains no jpgs, only the swf file. Any help would be appreciated.

biggie





The Man of Tomorrow is forged by his battles today.
 
It should be cached! Are you using the full url?

Regards,

cubalibre2.gif
 
old,

sorry for the delayed reply, i was soooo busy yesterday. My boss kept me busy. anyways, i found out our test server doesnt cache. Our administrator confirmed it. for security reasons, he says, though i can't think of a reason.

a few questions though, in the code below:

Code:
MCurl="[URL unfurl="true"]http://myserver.com/images/myimage.jpg";[/URL]
loadMovie("_root.MC1",MCurl);


if myimage.jpg is already in cache, does flash load the pic from the server or from cache? Would it matter if I use relative URL instead of the full URL?

Im using a similar approach to loading an external jpg on two MCs (im showing it one after another using loadmovie), the second always has a delay (longer than i expected or almost as long as the first MC, provided the jpg is already cached)


also would it be possible to duplicate an MC in the _root timeline into another MC? in other words, i would like to duplicate _root.MC1 and put it within _root.MC2? just a wild theory since I dont know why we can duplicate an MC onto a unique depth but not into a target MC. ;-)

biggie




The Man of Tomorrow is forged by his battles today.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top