Why won't the second part of my code execute (Flash5)

on (release) {
container.loadMovie(“images.swf”);
if (container.getBytesLoaded() == container.getBytesTotal()) {
FadeIn(0);
}
else {
container.loadMovie(“images.swf”);
}
}

it loads the SWF fine, but the FadeIn function is not being applied… The FadeIn function needs the SWF to be loaded… is that maybe the problem… to put this all in one script on a button???