Load movie

I having the following actionscript coded for one of my buttons in my intro movie, when this button is pressed my second movie should be loaded (on level 1) and proceed with one of the following greetings assigned.

Obviously this is not working for me but how can I get these two movies to interact with each other?

Can an action like this be possible to execute in flash?

PS
“world” is the name of my scene and “early, morning, afternoon, evening” are names of my labels, they are all in the second movie.

on (press) {
loadMovieNum (“opener.swf”, 1);
day = new Date();
x = day.getHours();
if (x>=0 && x<4) {
gotoAndStop (“world”, “early”);
} else if (x>=4 && x<12) {
gotoAndStop (“world”, “morning”);
} else if (x>=12 && x<18) {
gotoAndStop (“world”, “afternoon”);
} else if (x>=18 && x<24) {
gotoAndStop (“world”, “evening”);
stop ();
}
}

Just use the Frame Labels, it works great.

on (press) {
loadMovieNum ("opener.swf", 1);
day = new Date();
x = day.getHours();
if (x>=0 && x<4) {
gotoAndStop ("early");
} else if (x>=4 && x<12) {
gotoAndStop ("morning");
} else if (x>=12 && x<18) {
gotoAndStop ("afternoon");
} else if (x>=18 && x<24) {
gotoAndStop ("evening");
stop ();
}
}

I’ve tried and it still doesn’t work.

When the button is pressed it does successfully go to the second movie (on level 1) and it plays the movie up to the point way I have inserted a “stop” actionscript.

The greeting texts are placed frame after frame (e.g. 4, 5, 6, 7) but flash plays and stops at frame 4 only. If I have coded my actionscript correctly it should go to and stop at the right frame based on the times I have assigned.

What am I doing wrong?