Thursday, July 31, 2008

class with waarith

have i mini class with waarith abdul-majeed
how to make a button to work on flash8 and 9 because a have 8 in my house


//as2
btn.onPress=function(){
//this code is used for frame control
//_root is to call stage

_root.nextFrame();
gotoAndPlay();
gotoAndStop();
prevFrame();

//this will stop my movie
stop();

play();
}


//this is as3
btn.addEventListener(MouseEvent.DOWN, ondown);

function ondown(e:MouseEvent){
nextFrame();
gotoAndPlay();
gotoAndStop();
prevFrame();
stop();
play();
}