
class ApplicationDocument extends ::APP_MAIN::
{
   public function new()
   {
      #if nme
      var added:nme.display.DisplayObject = null;
      ApplicationMain.setAndroidViewHaxeObject(this);
      if (Std.is(this, nme.display.DisplayObject))
      {
         added = cast this;
         nme.Lib.current.addChild(added);
      }
      #end

      super();

      #if nme
      if (added!=null && added.stage!=null)
         added.dispatchEvent(new nme.events.Event(nme.events.Event.ADDED_TO_STAGE, false, false));
      #end
   }
}



class ApplicationDocument extends ::APP_MAIN::
{
   public function new()
   {
      #if nme
      var added:nme.display.DisplayObject = null;
      ApplicationMain.setAndroidViewHaxeObject(this);
      if (Std.is(this, nme.display.DisplayObject))
      {
         added = cast this;
         nme.Lib.current.addChild(added);
      }
      #end

      super();

      #if nme
      if (added!=null && added.stage!=null)
      {
         added.dispatchEvent(new nme.events.Event(nme.events.Event.ADDED_TO_STAGE, false, false));
         added.dispatchEvent(new nme.events.Event(nme.events.Event.ADDED, false, false));
      }
      #end
   }
}


Send 'ADDED' event too at startup
Send 'ADDED' event too at startup

thomasuster/NME,madrazo/nme,thomasuster/NME,madrazo/nme,thomasuster/NME,haxenme/nme,madrazo/nme,thomasuster/NME,madrazo/nme,madrazo/nme,haxenme/nme,haxenme/nme,thomasuster/NME,madrazo/nme,haxenme/nme,haxenme/nme,thomasuster/NME