Jump to content


  • Posts

  • Joined

  • Last visited


0 Newbie
  1. Passing the URLRequest into the SWFLoader didn't do the trick ... @squadjot: it's a known iOS-issue, and solvable as shown above with regular Loader-class, but not working for SWFLoader-class. For the project I'm working on right know I switched to the Loader-class, but I still want to know how to solve this problem
  2. I have some issues reloading external swf-files. I know it is a known issue and there is a lot written about it, but I still didn't manage to solve it. This is the simple-code I use: var m_oLoaderContext:LoaderContext = new LoaderContext (false, ApplicationDomain.currentDomain, null); m_oGameLoader = new SWFLoader("externalcontent.swf" + "?newfile=" + Mah.random(), { name:"gameloader", // autoDispose: true, autoPlay:false, centerRegistration:false, x:0, y:0, scaleX:1, scaleY:1, container:this, noCache:true, //onError:f_LoaderError, onComplete:f_LoaderComplete, context: m_oLoaderContext } ); m_oGameLoader.load(); The as3-Loader-class gave the same error at first, but I solved it adding the newfile-parameter + cacheResponse/useCache-properties: m_oLoader = new Loader(); m_oLoader.visible = true; m_oLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, f_NativeLoaderComplete, false, 0, true); //m_oLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, f_NativeLoaderError, false, 0, true); var request:URLRequest; request = new URLRequest(); request.url = p_sPad + "?newfile=" + Math.random(); request.cacheResponse = false; request.useCache = false; m_oLoader.load(request, m_oLoaderContext); In the swfloader I allready diabled cache and added the newfile-paramter, but this doesn't do the trick. I'm using Adobe Air SDK, but also tried some other versions like 3.7 / 3.8, with the same problem. Is there something I'm missing?