Unload Movie

Im having problems with this… i have a movie loaded into a mc called “main” and i want to unload it, it doesnt seem to work… heres my code:

on (release) {
	unloadMovie("main");
	gotoAndPlay(2);
}