External load swf, then go?

okay, i got these swf, that i am trying to load other swfs with, so far i have it so the swf are kinda preload, loading on a container off the stage and then advancing to a new frame, my problem is with this code it just stays on frame one for some reason

this is on frame one

 bytes=container.getBytesLoaded()+this.getBytesLoaded() 
total=container.getBytesTotal()+this.getBytesTotal() 
_root.createEmptyMovieClip("container",1)
container.loadMovie("01.swf")
container._x = -500 ;
container._y = -1000;
if (bytes == total) {
_root.gotoAndPlay(3)
}

and this is on frame two

gotoAndPlay(1) 

anyone know why it’s staying on frame one instead of advancing after the swf is loaded?