Im new please help

hi everyone

i have just started to use flash and i am in the process of making a game but im stuck on putting actionscript into one part.

i have a character and i want the game to go t the next level (next frame) when he hit the exit door.

i know this might sound stupid but i have only just started so please help.