Instead of using button instances on my site, I’m using movie clips as buttons from the tutorial on gotoandlearn.com instead. How would I change the actionscript to make the movieclip load?
**b1.onRelease = function(){**
if (_root.currMovie == undefined) {
_root.currMovie = "about_me";
container.loadMovie("about_me.swf");
} else if (_root.currMovie != "about_me") {
if (container._currentframe >=
container.midframe) {
_root.currMovie = "about_me";
container.play();
}
}
}
After adding the bolded to the AS, I get the following error when I test the movie:
**Error Scene=Scene 1, layer=buttons, frame=1:Line 1: Statement must appear within on/onClipEvent handler
b1.onRelease = function(){
**Obviously I’m a newb and I’m trying to learn as I create my site… I don’t know what to add or where. Anyone willing to help? TIA!