Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by kaikai0428

  1. I think you got some problem with loading,maybe try to load some simple things to verify is there anything wrong when your Main.fla try to load the others.
  2. Hey Carl, First,thanks for replying me. I know as3 is going to die,but my company still have some products need to maintain so... Anyway, I have done lots of tests. I think it's not the SWFLoaderVars's problem,even I use the AS3 Loader got the same problem too. so i use FlashBuilder's "Flash Profile", i found the external class I have loaded was located at a method called "[execute-queued]" here's some detail about it https://forums.adobe.com/thread/432052?tstart=0 I think it can not be control. so I change it like this, and i'm glad it works. it's the best solution i think.. var context:LoaderContext = new LoaderContext(false, new ApplicationDomain(ApplicationDomain.currentDomain), SecurityDomain.currentDomain); var vars:Object = {name:"test", context:context, onComplete:onComplete}; var swfLoader:SWFLoader = new SWFLoader("resource/test.swf", vars); swfLoader.load(true); thanks again.
  3. Hi I got problem when I want to dispose a SWFLoader when I use SWFLoaderVars to set context then I can't dispose external SWF but if I don't set the context everything's right! like this: var vars:Object = {name:"test", onComplete:onComplete}; var context:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, SecurityDomain.currentDomain); var swfVars:SWFLoaderVars = new SWFLoaderVars(vars); swfVars = swfVars.context(context);//marked this everything's right var swfLoader:SWFLoader = new SWFLoader("resource/test.swf", swfVars); swfLoader.load(true); is there anything wrong? please help me, thx!
  4. hey jack, sorry my English is not very well, the first question is, if the browser doesn't has it in cache in the first time, for example: <MP3Loader name="a_mp3" url="a.mp3" autoPlay="false" /> <MP3Loader name="b_mp3" url="a.mp3" autoPlay="false" /> After it finish the first loading ("a_mp3") now the browser will has it in its cache, after that, everyone who want to load the same URL but use the different name it won't load "a.mp3" twice but use from the cache right? and the other question is, if i use LoaderMax.getLoader("b_mp3") to get the Mp3Loader, it will target the same instance of LoaderMax.getLoader("a_mp3") or they are different instance? thanks for answer!
  5. Hello, If i write the same URL request but different name like this: <MP3Loader name="a_mp3" url="a.mp3" autoPlay="false" /> <MP3Loader name="b_mp3" url="a.mp3" autoPlay="false" /> it will load twice? or the second loader will use the cache?