If commands to get the current frame number

I’m using wonderful FSCommands to communicate between the JS world and the AS world. How do I get: goToTFrameNumber(’_root.main,3,0’); to activate when the flash movie reaches Scene1,2 (also frame 54 if there are no scenes).

Here is the code on my html page containing the flash object:

<SCRIPT LANGUAGE=“JavaScript” SRC=“affsclib.js”>
if (currentFrameNumber(0) = Scene1,2){
goToTFrameNumber(’_root.main,3,0’);}
</SCRIPT>
</HEAD>
<BODY bgcolor="#333333" onLoad=“setMovieRef(‘ani_header’,0);”>

I need a lot of help, I suck at anything beyond basic javascript.

Thanks in advance :smiley: