Função atribuida a uma botão (as2)
botao_btn.onRelease = function (){
gotoAndPlay(7);
}
Função atribuida a um movieclip (as2)
onClipEvent (mouseDown) {
startDrag(this);
}
onClipEvent (mouseUp) {
stopDrag();
}
Fullscreen(as2)
_root.btn_mc.onRelease = function(){
if(Stage["displayState"] == "normal"){
Stage["displayState"] = "fullScreen";
}else{
Stage["displayState"] = "normal";
}
}
var listener:Object = {};
listener.onFullScreen = function(isFullscreen:Boolean){
if(isFullscreen){
trace("entered full-screen mode");
}else{
trace("exited full-screen mode");
}
}
Stage.addListener(listener);
fscommand:
//na primeira frame do filme
fscommand("allowscale", "true");
fscommand("showmenu", "false");
fscommand("fullscreen", "true");
fscommand("trapallkeys", "false");
botao_btn.onRelease = function(){
fscommand("quit");
}