I’m relatively new to Action Script and Flash 8 and I need help with the code…
I am using a movie clip to create a rollover button with the code as:
stop();
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}
this.onRollOver = function(){
rewind = false;
play();
}
this.onRollOut = function(){
rewind = true;
}
this.onRelease = function(){
}
and I want to incorporate the following code into the this.onRelase = function section, but I cannot figure out how. The code is for a button and I can’t seem to make it for a movie clip. here is what I want to incorporate:
on (release) { if (_root.currMovie == undefined) { _root.currMovie = “work”; container.loadMovie(“work.swf”); } else if (_root.currMovie != “work”) { if (container._currentframe >= container.midframe) { _root.currMovie = “work”; container.play();}}}Can anyone please Help ME!!