SunQuest
           Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 10th, 2004, 06:48 PM
JoeF JoeF is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 28 JoeF User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 h 37 m 48 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old January 10th, 2004, 07:20 PM
Tann San Tann San is offline
Gotta get to the next screen..
Click here for more information.
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,421 Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)  Folding Points: 6414 Folding Title: Novice Folder
Time spent in forums: 2 Weeks 6 Days 5 m 33 sec
Reputation Power: 496
Facebook MySpace
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().
__________________
-Tann

-Vote for your favorite ActionScript editor here.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Loading NON cached images


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway