Why does swf not stop on RollOut?

I’m new at Flash and getting frustrated rather quickly.

I created an swf file in After Effects. I imported the swf file into my flash library. I placed the swf file in my scene. I placed an invisible button over the swf file.

I want the swf file to play on rollover, and IMMEDIATELY stop on rollout. I have tried two sets of code, neither works. In both cases the swf file will start to play on rollover, but plays until the end even on rollout.

FIRST CODE SET:

on (rollOver) {
gotoAndPlay(2);
}
on (releaseOutside, rollOut) {
gotoAndStop(1);
}
on (release) {
gotoAndStop(1);
}

SECOND CODE SET:

on (rollOver) {
gotoAndPlay(2);
}
on (rollOut) {
stop;
}

This seems like it should be the most straightforward thing you can possibly do in Flash, and it just isnt working in a logical manner.

Thank you in advance.