You could add a new Date variable at the end of your swf like:
var d:Date = new Date()
var nc:String = "?nocache=" + d.getTime();
startLoad("moive.swf"+nc);
Nathan Mynarcik
[email protected]
www.mynarcik.com
<http://www.mynarcik.com/feed/rss.xml>
<http://www.twitter.com/NMynarcik>
<http://www.facebook.com/pages/Nathan-Mynarcik-Interactive-Web-Developer/265263144230>
<http://www.linkedin.com/in/nathanmynarcik>
On Thu, Dec 9, 2010 at 1:07 PM, Lehr, Theodore <[email protected]>wrote:
> I am trying to prevent caching via:
>
> function startLoad(dfile:String)
> {
> var ran:int = Math.round(Math.random()*100000);
> var dfileb:String = new String();
> dfileb = dfile+"?ran="+ran;
> var mRequest:URLRequest=new URLRequest(dfileb);
> }
>
> startLoad("moive.swf");
>
> but I get an error 2044: Unhandled IOErrorEvent:text=Error #2035: URL Not
> Found
>
> What am I doing wrong?
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders