Trying to tween a swf loader
var queue:LoaderMax = new LoaderMax({name:"mainQueue",onProgress:progressHandler,oncomplete:completeHandler,onError:errorHandler,maxConnections:5});
queue.append( new SWFLoader("shoeHorn.swf", {name:"start", estimatedBytes:1363148.8, container:this, autoPlay:true,visible:false,onComplete:completeHandler}) );
queue.append( new SWFLoader("yourvids.swf", {name:"yv", estimatedBytes:1080, container:this, autoPlay:false,visible:false}) );
queue.append( new SWFLoader("book_Luanch.swf", {name:"bookl", estimatedBytes:10670, container:this, autoPlay:false,visible:false,x:0,y:0,width:1000,height:600}) );
LoaderMax.prioritize("shoeHorn.swf");
queue.load();
function progressHandler(event:LoaderEvent):void
{
trace("progress: " + event.target.progress);
}
function errorHandler(event:LoaderEvent):void
{
trace("error occured with " + event.target + ": " + event.text);
}
function completeHandler(event:LoaderEvent):void
{
TweenLite.from(event.target.content, 0, {x:0,y:0,autoAlpha:1})
setChildIndex(Object(root).spauseBtn,numChildren - 1);
TweenLite.to(splayBtn, 1, {autoAlpha:1 });
TweenLite.to(Object(root).fullScreenBtn, 2, {autoAlpha:1})
trace("it worked!");
}
function bookon():void
{
TweenLite.to(bookl.content, 1, {autoAlpha:1});
}