I’m using Flash CS5 and I created a fla file with an external as3, where it says:
import flash.display.MovieClip;
import flash.events.Event;
import flash.system.fscommand;
import flash.display.Stage;
public class map extends MovieClip {
public function map() {
addEventListener(Event.ADDED_TO_STAGE, init);
}
private function init(event:Event):void {
removeEventListener(Event.ADDED_TO_STAGE, init);
trace("Starting...");
fscommand("showmenu", "false");
}
}
I’m able to compile the file and see “Starting…” message but the player window still has its menu with " File | View | Control | Debug " options.
This fscommand doesn’t work in player 9 and player 10.
Is it a known bug?
Some people suggested using “stage.showMenu = false;” but in fact, stage object doesn’t have “showMenu” property and it produces an error.