This is how i would do it in AS2…
_root.controls.fullscreen_btn.onRelease = function() {
ns.displayFull();
toggleFullScreen();
trace("sdflkj");
};
Stage.scaleMode="Scale";
Stage.align = "TC"; //T:top, C: center
function toggleFullScreen(){
if(Stage["displayState"]=="normal"){
Stage["displayState"]="fullScreen";
}else{
Stage["displayState"]="normal";
}
}
Can’t find documentation or tutorials on achieving this with AS3… Somebody must know the answer!