Can I do this with?

Im having some trouble with this code. I have a button that will pop in and out depending on the rollover and rollout. but then i want it to get and external swf when released. this is all done with smartclips if that matters.

on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = “home”;
} else if (_root.currMovie != “home”) {
if (container._currentframe>=container.midframe) {
_root.currMovie = “home”;;
on (rollOver) {
on (rollOut) {