class ApplicationMain
{
   public static function main()
   {
      nme.Lib.create(
           function(){ ::APP_MAIN::.main(); },
           ::WIN_WIDTH::, ::WIN_HEIGHT::,
           ::WIN_FPS::,
           ::WIN_BACKGROUND::,
             ( ::WIN_HARDWARE::   ? nme.Lib.HARDWARE  : 0) |
             ( ::WIN_RESIZEABLE:: ? nme.Lib.RESIZABLE : 0),
          "::APP_TITLE::",
          "::APP_ICON::"
          );
   }
}


class ApplicationMain
{
   public static function main()
   {
      nme.Lib.create(
           function(){ ::APP_MAIN::.main(); },
           ::WIN_WIDTH::, ::WIN_HEIGHT::,
           ::WIN_FPS::,
           ::WIN_BACKGROUND::,
             ( ::WIN_HARDWARE::   ? nme.Lib.HARDWARE  : 0) |
             ( ::WIN_RESIZEABLE:: ? nme.Lib.RESIZABLE : 0),
          "::APP_TITLE::",
          "::APP_ICON::"
          );
   }

   public static function getAsset(inName:String):Dynamic
   {
      ::foreach assets::
      if (inName=="::id::")
      {
         ::if (type=="image")::
            return nme.display.BitmapData.load(inName);
         ::elseif (type=="sound")::
            return new nme.media.Sound(new nme.net.URLRequest(inName),null,false);
         ::elseif (type=="music")::
            return new nme.media.Sound(new nme.net.URLRequest(inName),null,true);
         ::else::
            return new nme.utils.ByteArray.load(inName);
         ::end::
      }
      ::end::
      return null;
   }
}


Add getAsset on nme platform too
Add getAsset on nme platform too

git-svn-id: 6cc2fa9b7d2830c930c171b991ffcd5e23f23d5e@662 1509560c-5e2a-0410-865c-31c25e1cfdef

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