Below is the code which is used to trigger the transitions. For reference ‘home’ is movieclip and ‘homestate’ is a button in the movieclip.
home.homestate.onRelease=function(){
if(_root.section!=“home.swf”){
_root.section=“home.swf”;
_root.transition.gotoAndPlay(“closing”);
}
};
I’m happy with the code because I understand it. However my problem is that I want to include to more actions to this script
on(rollOver){
gotoAndPlay("rollover);
}
and
on (rollOut){
gotoAndPlay(“rollout”);
}
I try incorporating these actions into the first script but I get an error.
home.homestate.onRelease=function(){
if(_root.section!=“home.swf”){
_root.section=“home.swf”;
_root.transition.gotoAndPlay(“closing”);
}
};
home.homestate.on(rollOver){
_root.home.gotoAndPlay(“rollover”);
}
home.homestate.on(rollOut){
_root.home.gotoAndPlay(“rollout”);
}
whats wrong with the code some please help me its driving me nuts.