WHAT'S NEW?
Loading...

Hilangkan menubar as3


package 
{
 import flash.display.Sprite;
 import flash.events.Event;
 
 public class Module extends Sprite 
 {
  public function Module()
  {
   if (stage) init();
   else addEventListener(Event.ADDED_TO_STAGE, init);
  }
 
  private function init(e:Event = null):void 
  {
   removeEventListener(Event.ADDED_TO_STAGE, init);
 
   // ** actual application code begins **
   // ** stage is no longer null **
   stage.showDefaultContextMenu = false;
  }
 } 
}