Need help with current frame

i dont understand why this isn’t working. i thought it would be pretty simple.
i’m building an external swf which is going to be my menu. and there are
2 frames the this swf. in the first frame is a movieclip(intro_mc) and in the
second frame there is a movieclip

what i am trying to do is if the movieclip in the first frame(intro_mc) reaches
frame 319 i want the main swf to gotoAndPlay frame 2

this is what i wrote for it but doesn’t work.

ActionScript Code:
[FONT=Courier New][LEFT][COLOR=#0000FF]if[/COLOR][COLOR=#000000]([/COLOR]intro_mc.[COLOR=#0000FF]_currentframe[/COLOR] = [COLOR=#000080]319[/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000]{[/COLOR]
[COLOR=#0000FF]this[/COLOR].[COLOR=#0000FF]gotoAndPlay[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000080]2[/COLOR][COLOR=#000000])[/COLOR];
intro_mc.removeMovieClip();

[COLOR=#000000]}[/COLOR]
[/LEFT]
[/FONT]