;

PDA

Click to See Complete Forum and Search --> : how to force page to refresh from flash


DjRubbish
10-23-2004, 12:31 PM
Hello,

version: flash mx
player: 6

I've got a swf of an avatar that users can alter like change its clothes hairstyle etc.

However once they press "ok" to save their changes, the swf doesn't automatically update, even though the changes have been saved server-side as the page doesn't automatically refresh.

The server side app that stores the avatar details is written in perl and updates and xml document but I won't have access to them. (Even if I did, I don'tknow any perl)

I'm aware of caching issues etc, but I was hoping there would be a way thru all that to refresh the page and update the avatar from the flash movie itself.

Is there any way of forcing the page to refresh an show the updated swf from flash?

macca25
10-23-2004, 01:47 PM
Hi,
You could use:

<meta http-equiv="refresh" content="0; url=your_page.htm">

This will refresh your_page.htm immediately. However, you state you don't have access to the Perl. If you can you could put the meta tag in after the avatar is updated.
Do you have access to any of the pages?

Cheers,
macca

Musicman
10-23-2004, 04:43 PM
Hi,

the meta tag does not help since it does not refresh the swf nur the files loaded by the swf, only the html page.
You might put some ?stuff=.... at the end of the url for that xml file, to force reloading

Musicman

DjRubbish
10-24-2004, 04:31 AM
Thanks for your replies!

I'll let you know how it goes.

macca25, I do have access to the html pages that hold the swf that updates the avatar, is that any use?

DjRubbish
11-09-2004, 08:58 AM
musicman, you were right.

I just gave it a ?stuff=getTimer() on the end of the xml url and bob's your uncle, it worked!

thanks for that.