Hi, I have a simple button function on my AS2 game that calls up an ‘instructions’ mc from the library when clicked and places it at the centre of the stage.
I’m having trouble getting my head round converting it to AS3… if anyone can help I’d be really grateful!
instructions_btn.onRelease=instructions_btn.onReleaseOutside=function () {
sClick.start(0,1);
this.enabled=false;
playgame_btn.enabled=false;
var instructions:MovieClip=myRoot.attachMovie("instructions","instructions",myRoot.getNextHighestDepth());
instructions._x=(Stage.width-instructions._width)/2;
instructions._y=(Stage.height-instructions._height)/2;
}