Jump to content
Search Community

matthewwilliams

Members
  • Posts

    7
  • Joined

  • Last visited

matthewwilliams's Achievements

0

Reputation

  1. Yes it seems to work okay setting the noCache to true. However, my idea was that noCache was good for testing but once the app was complete I would rather have the loadedswfs cached for performance. I have not seen the cache break since updating the code. I will keep you posted. Thanks.
  2. I am having an issue when loading an xml file which contains serveral "SWFLoaders"... I noticed while debugging with Charles or Tamperdata that the XMLFile that has the SWFLoaders get loaded multiple times. My issue is that if the user exits the application sometimes the XML file (Main configuration for the application) becomes corrupt in Firefox Cache. The result is that the next time the application is started it will not run. The xml file has been partially loaded and is in the browser cache but is corrupt. I am wondering if there is way to handle this? I can't handle it when the app starts since the app won't start if there is a partially loaded xml in the Browser cache. And I can't control if a user quits the app by closing a browser window. Any ideas. Is this a known issue?
  3. Hello, I want to use my xml file to load swfs into my app. But I was wondering what the sequence of events are? First I tried: _queue= new LoaderMax({name:"mainQueue", onProgress:progressHandler, onComplete:completeHandler, onError:errorHandler}); _queue.append( new XMLLoader("shared/courseData.xml", {name:"courseData",noCache:true})); Then I decided that I needed to be notified when the xml was loaded without waiting for the whole queue to load. So I changed the above and added an explicit event listener for the data.xml. They are: onComplete:xmlCompleteHandler, onFail: xmlFailHandler. _queue= new LoaderMax({name:"mainQueue", onProgress:progressHandler, onComplete:completeHandler, onError:errorHandler}); _queue.append( new XMLLoader("shared/data.xml", {name:"courseData",noCache:true, [b]onComplete:xmlCompleteHandler, onFail: xmlFailHandler[/b]})); _queue.load(); Is there a better way to go about this? My goal is to use the very nice feature of LoaderMax which allows me to pull "SWFLoaders" out of my xml doc. For our app's needs we have to have the xml loaded first. If I trace the above out I see that the xmlCompleteHandler fires before the completeHandler. (In the authoring environment). Can I count on that? Is there a better way to do this without having to make 2 separate xml docs? (One for loading swfs and one for the other data the application needs). Thanks.
  4. Okay I see. The SWFLoader is working very nicely for us. We need to Stream via rmtp because some of our video content is quite long and we want our users to be able to scrub through the video.
  5. Hello I am trying to figure out if I can load a Video from a Flash Media Server from a VideoLoader xml node. I see that an instance of VideoLoader takes the param: urlOrRequest:* But I do not see a "url" property for VideoLoader? I would be trying something like this: Thanks.
  6. Hello. I am trying to pull a SWFLoader from an existing queue and add a ProgressEvent Listener to it. The code below: var loader:SWFLoader = _main.queue.getLoader(String("url to SWFLoader path which is included in my xml")); loader.addEventListener(LoaderEvent.CHILD_PROGRESS,onLoadProgress); loader.addEventListener(LoaderEvent.CHILD_COMPLETE, completeHandler); trace(loader + " loader.... type?"); loader.load(); The bit in the xml which is the loader I am trying to get with the above code: Event Handler Methods: private function onLoadProgress(e:LoaderEvent):void{ trace("is the loader event firing?"); trace(e.target + " :target"); } private function completeHandler(e:LoaderEvent):void{ trace("Complete EVent has been fired..."); } Basically I set up a queue in my main.as which loads an xml file which has several SWFLoader nodes inside it. I want to load my assets on demand. So each time I am ready to load a swf I want to grab the swf from the queue add an event listener to listen for progress and complete? Can you help me with the proper syntax to achieve this? Thanks.
×
×
  • Create New...