HI Jack, I've been going through your forum for sequential loading swfs, and a previous post did not work for me, see also attached files, seems a simple enough problem, but I can't get it to work, grid.swf and grid1.swf keep loading simultaneously.
What am I doing wrong?
also, (and this is nothing to do with your wonderful tweening classes, but I thought I'ld throw it in there in any case, what If I upon loading the swfs, in the end there will be four of these, I want a movie clip button to appear? the loaded swfs keep covering anything I put on stage...I know this is real beginner's stuff, but whatever I try with addChild just won't work... I have a flashBnt0 movie clip in the library of HomePg1.fla.)
Thank you as always, so much for your help,
Fam
PS: I am really vdheyning but I couldn't manage to log in under that name...so I re-registered. Sorry about that.
here's my failing code:
here's my code:
stop();
import com.greensock.*;
import com.greensock.loading.*;
import com.greensock.events.LoaderEvent;
import com.greensock.loading.display.*;
var queue:LoaderMax = new LoaderMax({name:"mainQueue", onComplete:completeHandler, maxConnections:1});
queue.append( new SWFLoader("grid.swf", {name:"mainClip", estimatedBytes:3000, container:this, autoPlay:false}) );
queue.append( new SWFLoader("grid1.swf", {name:"dotClip", estimatedBytes:20, container:this, autoPlay:false, delay:3}) );
LoaderMax.prioritize("mainClip", true)
queue.load();
function completeHandler(event:LoaderEvent):void {
var image:ContentDisplay = LoaderMax.getContent("mainClip");
TweenLite.to(image, 3, {alpha:0, delay:3});
trace(event.target + " is complete!");
}