Jump to content


Forcing flash to reload


  • You cannot reply to this topic
4 replies to this topic

#1 Wil

    Young Padawan

  • Members
  • Pip
  • 4 posts

Posted 21 June 2006 - 01:22 PM

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

#2 funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 21 June 2006 - 01:47 PM

generate a random number in flash

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 Wil

    Young Padawan

  • Members
  • Pip
  • 4 posts

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 Wil

    Young Padawan

  • Members
  • Pip
  • 4 posts

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

#5 funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

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