Jump to content
Search Community

amg99

Members
  • Posts

    1
  • Joined

  • Last visited

amg99's Achievements

0

Reputation

  1. Hi, Just learned about GreenSock a couple of days ago. I was able to create two(2) swfs based on TweenMax and TimelineMax and it's beautiful and I was amazed at how easy it is. However, I need to create a parent swf that will load the two I mentioned above plus four(4) more... sequentially. So the first two is based on TimelineMax while the rest are frame-based animations. I liked the approach done on "loadSWFsPlaySequence", but it tracks the progress based on frame. This doesn't seem to work with the two TimelineMax - based swfs I created. function trackSWFPlayback(e:Event):void { //trace(currentLoader.rawContent.currentFrame); //detect if the loaded swf is on the last frame if (currentLoader.rawContent.currentFrame == currentLoader.rawContent.totalFrames) { trace("swf done"); //hide and stop current swf currentLoader.content.visible = false; currentLoader.rawContent.stop(); //set up and play the next swf initCurrentLoader(); } } Later on, Carl posted the "loadAndControlSwfWithTimelineLite" which tracks the playing time of a child swf. //reference the TimelineMax in the loaded swf var loadedTimelineMax:TimelineMax= e.target.rawContent.tl; trace(loadedTimelineMax); //track when the loaded TimelineMax is done playing loadedTimelineMax.addEventListener(TweenEvent.COMPLETE, timelineCompleteMessage); //tell the loaded TimelineMax to play loadedTimelineMax.play(); I've been messing around with the code and sample files mentioned above, unfortunately I can't make it work. Any ideas? Thanks!
×
×
  • Create New...