Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

averagejoe77

Members
  • Posts

    6
  • Joined

  • Last visited

averagejoe77's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Ok, So I solved the audio issue. The only problem I am having now should be a simple fix. As each new part loads, that part is added to the container_mc movie clip and displayed. So what I end up with is part 1 loading to 100%, then part 2 starts to load and gets displayed at frame 1 on top of part 1, then part 3 at frame 1 on top of part 2, etc. Once part 8 is fully loaded, it starts part 1 back over and plays through like it should one after the other. So if I can solve this "overlapping" issue with maybe a poster image or a black background while it loads, that would be all I need. Not able to get the FLAs under 1MB unfortunately. If you want to see all the files I can give you FTP access in a PM. Just let me know. Thanks for you help on this btw. EDIT: And I got it, thanks for everything Carl, you are awesome.
  2. Sorry it has taken me so long to get back to you. This is very close to what I need, the only problem with it is that my swf's are at least 3MB in size, once all 8 of them have finished downloading, the video in each one plays at the same time, so the are all overlapping each other with their audio, while only the video of the last one to load in the sequence shows on top of the others. I need to load them all, put play them only one at a time in sequential order. I tired to play around with your script to get it to work as I need but I am not that good the AS. Thank you for the help though.
  3. If I prepload all the SWFs in the first frame of Main.swf, then that is when they all get loaded on top of each other and play at the same time. the work around for that was to move the prerloading of the subsequent SWFs to the last frame of the currently playing SWF. I thought that LoaderMax would seek out any other Loaders in any subloaded SWF files and call them as well, that is why I placed them there, but apparently I misunderstood that because that is not what is happening. I'll try the LoaderMax.getLoader("part2.swf") and see if that has any effect. Thanks for the help. I'll be back tomorrow if it doesn't work.
  4. I have no idea what is wrong here, but apparently my completeHandler is being fired instantly, and nothing is being preloaded at all. Adding the SWFLoader to the end of each SWF is causing the next SWF to not load until that last frame of the SWF before it, needless to say there is a noticeable delay in each SWF as it loads while playing. Also my progressHandler that is supposed to advance the preloader movie clip is not doing anything at all. I am once again confused... Main.swf (code on frame 1) import com.greensock.*; import com.greensock.events.LoaderEvent; import com.greensock.loading.*; import com.greensock.loading.display.*; import flash.events.Event; var queue:LoaderMax = new LoaderMax({name:"mainLoader", onProgress:progressHandler, onComplete:completeHandler, onError:errorHandler}); queue.append( new SWFLoader("part1.swf", {name:"part1", estimatedBytes:5542000, container:this, autoPlay:true}) ); queue.load(); function progressHandler(event:LoaderEvent):void { progress_mc.progressBar_mc.scaleX = event.target.progress; progress_mc.progress_txt.text = event.target.progress; } function completeHandler(event:LoaderEvent):void { trace("Completed...."); } function errorHandler(event:LoaderEvent):void { trace("Error occured with " + event.target + ": " + event.text); } When ever I test the Main.swf, I immediately get "Completed..." in the output window, while only 0.01... of the progress is completed. My preloader Movie Clip frame only shows for a fraction of a second then the swf begins to play, and all the subsequent SWFs after that while they load. What am I missing here? edit: removed requiredWithRoot:this.root.
  5. Hmm... this is what I have so far and it seems to play through ok Main.swf (frame 1) looks like this: import com.greensock.*; import com.greensock.events.LoaderEvent; import com.greensock.loading.*; import com.greensock.loading.display.*; import flash.events.Event; var queue = new LoaderMax({name:"mainLoader", onProgress:progressHandler, onComplete:completeHandler, onError:errorHandler}); queue.append( new SWFLoader("part1.swf", {name:"part1", estimatedBytes:5542000, container:this, autoPlay:false}) ); LoaderMax.prioritize("part1"); queue.load(); I left out all the handler functions for now cause they aren't really doing anything right now. Then I added another call to the SWFLoader on the last frame of each of the SWFs like so: part1.swf (code on the last frame of the timeline) import com.greensock.loading.SWFLoader; stop(); if(this.currentFrame == this.totalFrames) { var part2Loader = new SWFLoader("part2.swf",{autoPlay:true, container:this, requireWithRoot:this.root}); part2Loader.load(); } Then all the subsequent parts are the same with the number incrementing by 1 for each new part. seems to be working ok so far. Before I upload this to the web I am going to take a stab and say that by using LoaderMax on the first frame of the Min.swf, the subsequent SWFLoader calls will all be handled by it, so calling them again in the last frame of the timeline won't really make a difference because they should already be loaded... right?
  6. I am fairly new to Flash and ActionScript, so go easy on me please... I have a really large FLV file that I have to import into the timeline and add in some custom functionality. I have chopped the FLV into smaller FLV files and imported them into the timeline of several FLAs in an attempt to make several SWFs. I need all the SWFs to load, which LoaderMax does perfectly, but I cannot figure out how to get the SWFs to play in sequence one at a time. Currently, once the SWFs have loaded, they are all placed on the stage one on top of the other, with the last SWF being on top, and they all play at the same time. I am using the Parse_Array class from the Meet LoaderMAx video series to load in the SWFs. I am assuming that I need to change the way the _queueCompleteHandler handles the loaded SWFs, but I am not sure how. If anyone could help out on this it would greatly appreciated. Joe.
×