Alright, so what I am doing is loading in 4 videos and placing them into a 'background' MovieClip. Then when transitioning between the 4 pages, I play a video transition. What I am seeing is that my memory slowly increases on each transition. I have found that it is caused by playing the current video during the transition, and eventually it crashes Flash CS4. Any thoughts on this?
Loading code:
_queue.append(new VideoLoader(xml.page[i].@backgroundVideo, { name:xml.page[i].@title, width:1400, height:900, alpha:0, visible:false, container:model.backgroundHolder, autoPlay:false } ));
Transition code:
var vid_curr:ContentDisplay = ContentDisplay(mainBackground_mc.getChildByName(model.pages[_currPanel]));
var vid_prev:ContentDisplay = ContentDisplay(mainBackground_mc.getChildByName(model.pages[_prevPanel]));
VideoLoader(vid_curr.loader).gotoVideoTime(0);
mainBackground_mc.swapChildren(vid_curr, vid_prev);
var loader:VideoLoader = VideoLoader(vid_curr.loader);
TweenMax.to(vid_prev, 1, { autoAlpha:0 } );
TweenMax.to(vid_curr, 1.25, { autoAlpha:1, loader.playVideo } );