Hello
I have a video player on this page: http://www.gamingz.c...anew/test2.html
The player gets a playlist from an xml file, but whenever I update the playlist xml file with a new video, it doesn't seem to update the list in Firefox. I'm guessing that it's just reloading from local cache again, so, is it possible to have flash simply force a refresh on it, so that it loads the updated xml playlist? Refreshing the browsing, and closing and opening again doesn't seem to work.
Thanks
Forcing flash to reload
Started by Wil, Jun 21 2006 01:22 PM
4 replies to this topic
#1
Posted 21 June 2006 - 01:22 PM
#2
Posted 21 June 2006 - 01:47 PM
generate a random number in flash
eg.
Everytime the xml is loaded the URL is always different..
eg.
var cache = random(9999);
xmlData.load("http://www.yourdomain.com/yourxml.xml?cache=" + cache);
Everytime the xml is loaded the URL is always different..
#3
Posted 21 June 2006 - 02:28 PM
Oh, I see. Thanks man. So it sort of tricks flash into thinking there's a different url, therefore making it reload.
#4
Posted 21 June 2006 - 09:26 PM
Sorry for double post.
My friend and I are making this progressive video player (http://www.pixel2lif..._player_part_2/) and we can't figure out how to get it to not auto-play. Can anyone point us in the right direction?
Thanks
My friend and I are making this progressive video player (http://www.pixel2lif..._player_part_2/) and we can't figure out how to get it to not auto-play. Can anyone point us in the right direction?
Thanks
#5
Posted 22 June 2006 - 12:53 AM
after the ns.play action put a ns.stop
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
