If Statements?

Hello All…

Is there a way to:[color=#4f5044]

From a button, check what swf file is loaded into _level1 and then tell it to gotoAndPlay frame #

I have a feeling I need to use if and else, but I am not sure how to go about it.

Any help would be appreciated.[/color]