How do I toggle play w/ action script?

on (release) {
if (stop == “no”) {
stop = “yes”; stop();
}
else if (stop == “yes”) {
stop = “no”; play();
}
}

I know this is bad form, but it also doesn’t work. Please help!
(and yes I set the variable to no to begin with)

Ron R