Jump to content
Search Community

andresapitt

Members
  • Posts

    6
  • Joined

  • Last visited

andresapitt's Achievements

0

Reputation

  1. not sure if this is the right class to do this. but i am loading different swf using SWFLoader(). the problem is that each swf load on top of the previous one. so i am looking to unload the previous one before uploading the next one. Any ideas? function loadSWF(path:String):void { setChildIndex(preloader_mc,numChildren - 1); var filename:String = path; // Find the location of the period. var extensionIndex:Number = filename.lastIndexOf( '.' ); // The extension-less filename ("mydocument") is everything before the period. var extensionless:String = filename.substr( 0, extensionIndex ); trace( "The filename is " + extensionless ); loader = new SWFLoader("./"+path, {name:extensionless, container:container_mc, x:50, y:87, onInit:initHandler, onProgress:progressHandler, onComplete:completeHandler, onError:errorHandler, onOpen:onOpenHandler, estimatedBytes:9500}); //begin loading loader.load(); previousMc=extensionless; }
  2. IT´s ood but if i try to include load="true" in the the applicacion doesn´t work, it doesn´t load the xml at all. So am still stuck trying to load all the video before starting to play: i have:
  3. Yes i still struggling to fire the complete event when all the video form the XML are loaded how do you add a onComplete event to var queue:LoaderMax = LoaderMax.getLoader("videoListLoader"); I tried an addEventListener and it didn´t work. Regards, Andres.
  4. Yes i do use: <?xml version="1.0" encoding="iso-8859-1"?> And then in flash i do: private function xmlHandler(event:LoaderEvent):void { var queue:LoaderMax = LoaderMax.getLoader("videoListLoader"); //store the nested VideoLoaders in an array _videos = queue.getChildren(); queue.load(); } Regards, ANdres.
  5. cool, thank you, and how do you than same thing bringing the videos from a XML? Regards, Andres.
  6. Hi, i am building a game that consist in a series of videos. I was following Michael B Tutorial on how to build a Smart AS3 Video Loading and Playback with GreenSock LoaderMax. And it works fine is just that i want to be sure to start the game once all the videos have been preloaded so there is no delay switching between video. is this posible? SO I´ll have an xml with all the video that need to be played in that scene, preload them and then depending on user interaction I´ll play all of them, the thing is that the order will not allway be the same as could change depending on user input, that´s why they need to be preloaded to start as soon as posible when i have the user´s custimized play order. Regards, Andres
×
×
  • Create New...