RE: [Flashcoders] stop caching
so if it is local - anyway to get around caching? From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Juan Pablo Califano [califa010.flashcod...@gmail.com] Sent: Thursday, December 09, 2010 9:03 PM To: Flash Coders List Subject: Re: [Flashcoders] stop caching If you are loading the swf directly from the file system (that is, localy) appending parameters to the querystring won't work because they'll be considered part of the file name. So those parameters will not be interpreted as such. In a http environment (i.e. a server, local or remote), on the other hand, the querystring will not be considered part of the file name. So yes, it's a local / server issue. Cheers Juan Pablo Califano 2010/12/9 Lehr, Theodore ted_l...@federal.dell.com I am trying to prevent caching via: function startLoad(dfile:String) { var ran:int = Math.round(Math.random()*10); 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 Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] stop caching
If this is a web project, just have a local server on your PC and test using that, then deploy to the remote server. You can always clear the browser cache. Paul On 10/12/2010 14:56, Lehr, Theodore wrote: so if it is local - anyway to get around caching? From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Juan Pablo Califano [califa010.flashcod...@gmail.com] Sent: Thursday, December 09, 2010 9:03 PM To: Flash Coders List Subject: Re: [Flashcoders] stop caching If you are loading the swf directly from the file system (that is, localy) appending parameters to the querystring won't work because they'll be considered part of the file name. So those parameters will not be interpreted as such. In a http environment (i.e. a server, local or remote), on the other hand, the querystring will not be considered part of the file name. So yes, it's a local / server issue. Cheers Juan Pablo Califano 2010/12/9 Lehr, Theodoreted_l...@federal.dell.com I am trying to prevent caching via: function startLoad(dfile:String) { var ran:int = Math.round(Math.random()*10); 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 Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] stop caching
I am trying to prevent caching via: function startLoad(dfile:String) { var ran:int = Math.round(Math.random()*10); 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 Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] stop caching
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 nat...@mynarcik.com 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 ted_l...@federal.dell.comwrote: I am trying to prevent caching via: function startLoad(dfile:String) { var ran:int = Math.round(Math.random()*10); 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 Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] stop caching
I think it is the ?whatever=xxx that it is having issues with - so I am not sure doing it another way does not change it, I don;t think - it seems to only want xxx.swf not xxx.swf?whatever=whatever From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nathan Mynarcik [nat...@mynarcik.com] Sent: Thursday, December 09, 2010 2:01 PM To: Flash Coders List Subject: Re: [Flashcoders] stop caching 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 nat...@mynarcik.com 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 ted_l...@federal.dell.comwrote: I am trying to prevent caching via: function startLoad(dfile:String) { var ran:int = Math.round(Math.random()*10); 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 Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] stop caching
The method I described is how I have kept from caching. Wonder if there is a difference when testing locally vs. on a server. Nathan Mynarcik nat...@mynarcik.com 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 2:13 PM, Lehr, Theodore ted_l...@federal.dell.comwrote: I think it is the ?whatever=xxx that it is having issues with - so I am not sure doing it another way does not change it, I don;t think - it seems to only want xxx.swf not xxx.swf?whatever=whatever From: flashcoders-boun...@chattyfig.figleaf.com [ flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nathan Mynarcik [ nat...@mynarcik.com] Sent: Thursday, December 09, 2010 2:01 PM To: Flash Coders List Subject: Re: [Flashcoders] stop caching 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 nat...@mynarcik.com 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 ted_l...@federal.dell.com wrote: I am trying to prevent caching via: function startLoad(dfile:String) { var ran:int = Math.round(Math.random()*10); 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 Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] stop caching
If you are loading the swf directly from the file system (that is, localy) appending parameters to the querystring won't work because they'll be considered part of the file name. So those parameters will not be interpreted as such. In a http environment (i.e. a server, local or remote), on the other hand, the querystring will not be considered part of the file name. So yes, it's a local / server issue. Cheers Juan Pablo Califano 2010/12/9 Lehr, Theodore ted_l...@federal.dell.com I am trying to prevent caching via: function startLoad(dfile:String) { var ran:int = Math.round(Math.random()*10); 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 Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders