From: DarkLabs on
Hello every one,
I am creating a banner in flash, this flash moive reads the images that it
needs to load from xml file
here is where the problem happens...this xml file needs to updated once in the
while so that new images can be loaded inot the movie..but the browser caches
the xml file ..so it doesnot read it from the server it reads it from the
cached xml in the browser...therefore when i upate the xml ..it doesnot update
my flash movie...how do i go around this issue?

From: Stan Vassilev on
You need to supply the browser with a unique URL so it doesn't recognize the
cache:

myXML.load("xmlfile.xml?nocache="+escape(new Date()));

Good luck!

Regards, Stan Vassilev
www.flashbeyond.com -->

"DarkLabs" <webforumsuser(a)macromedia.com> wrote in message
news:e19h2c$8q6$1(a)forums.macromedia.com...
> Hello every one,
> I am creating a banner in flash, this flash moive reads the images that it
> needs to load from xml file
> here is where the problem happens...this xml file needs to updated once in
> the
> while so that new images can be loaded inot the movie..but the browser
> caches
> the xml file ..so it doesnot read it from the server it reads it from the
> cached xml in the browser...therefore when i upate the xml ..it doesnot
> update
> my flash movie...how do i go around this issue?
>


From: DarkLabs on
it did thank you
From: abeall on
That works? Shouldn't it be:
escape(new Date().toString());
?
From: Stan Vassilev on
Hi, you're correct indeed (for AS2). Technically it converts it to String
implicitly as can be shown with:

trace(escape(new _global["Date"]()));

working in AS2...

but the compiler would otherwise complain for the type.

Regards, Stan Vassilev
www.flashbeyond.com -->

"abeall" <webforumsuser(a)macromedia.com> wrote in message
news:e1ae92$aue$1(a)forums.macromedia.com...
> That works? Shouldn't it be:
> escape(new Date().toString());
> ?


 |  Next  |  Last
Pages: 1 2
Prev: loadMovie help
Next: no sound when streaming