1 package net.systemeD.halcyon {
4 === DebugURLRequest ===
6 If this is running under a Flash debug player, this will make the URLRequest using POST
7 rather than GET - thereby preventing FP from caching it
8 (see http://www.ultrashock.com/forums/actionscript/force-reload-files-only-using-as3-123408.html).
10 Sadly we can't just subclass URLRequest, which is defined as final. So you need to create your
11 new DebugURLRequest, then refer to its .request property.
15 import flash.net.URLRequest;
16 import flash.net.URLRequestMethod;
17 import flash.system.Capabilities;
19 public class DebugURLRequest {
21 public var request:URLRequest;
23 public function DebugURLRequest(url:String=null) {
24 request=new URLRequest(url);
25 if (Capabilities.isDebugger) {
26 request.method=URLRequestMethod.POST;