|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Loading NON cached images
hey,
im making a flash movie that simply loads a image(.jpg) from a URL (http://neo.tribalscribble.co.uk/cam_1.jpg ). Now i want the movie to loop so that the image is reloaded every few secs. Now. Im having trouble getting the image to load into the movie, and when it is looped it keeps showing the same (cached) image. can someone pls help me load the image and reload a non cached version. thnxs in advance laters JoeF |
|
#2
|
|||
|
|||
|
Hi, the following thread is a solution to a similar question in the php forum:
prevent image cache in browser using dynamic form You could try something similar with loadMovie i.e: Code:
loadMovieNum("images/header.jpg?"+Math.random()*Math.random()+Math.random(), 3);
Thats if your loading into a level number, if your loading into a target clip: Code:
loadMovie("images/header.jpg?"+Math.random()*Math.random()+Math.random(), targetClip);
I've just tried and tested this and it works for me. I might of been excessive with the 3 calls to random but I figured it raised the chance of the same number not repeating..i.e. cancelling out the update for a cycle..still might happen but if your refreshing the image every few seconds the user might never notice the odd one here or there and you can get away with just one random(). |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Loading NON cached images |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|