| Package | com.hippohx |
| Class | public class Application |
| Inheritance | Application HaxeBackendListener flash.events.EventDispatcher |
| Method | Defined by | ||
|---|---|---|---|
|
Do NOT call this constructor, please use getInstance method instead.
| Application | ||
|
getApplicationFolder():String
Returns the full path of the folder in which the application is running.
| Application | ||
|
getApplicationPath():String
Returns the full path of your application's executable.
| Application | ||
|
getAppXML():XML
HippoHX's applications need a configuration xml file called app.xml which must
be at the same level as the app.n file.
| Application | ||
|
getCmdLine():Array
Returns an array of strings with the parameters passed to your application.
| Application | ||
|
getCmdLineArgCount():int
Returns the number of paramenters passed to your application.
| Application | ||
![]() |
getHaxeBackendId():String
Returns HAXE_BACKEND API identifier.
| HaxeBackendListener | |
|
[static]
Use this method to retrieve an instance of the class, do NOT call the constructor directly.
| Application | ||
|
quitApplication():void
Quits application.
| Application | ||
| Application | () | constructor |
public function Application()Do NOT call this constructor, please use getInstance method instead.
See also
| getApplicationFolder | () | method |
public function getApplicationFolder():StringReturns the full path of the folder in which the application is running. If you are planning to use this folder to store data, please read about storing data good practices first.
For Mac applications we tweak the path a little bit see Application path on Macs.
ReturnsString |
| getApplicationPath | () | method |
public function getApplicationPath():StringReturns the full path of your application's executable. If you are planning to use this path to store data, please read about storing data good practices first.
Neko call is neko.Sys.executablePath().
For Mac applications we tweak the path a little bit see Application path on Macs.
ReturnsString |
| getAppXML | () | method |
public function getAppXML():XMLHippoHX's applications need a configuration xml file called app.xml which must be at the same level as the app.n file.
You can add your own information to app.xml provided that you respect its basic format. Please take a look to the wiki for more information.
ReturnsXML |
| getCmdLine | () | method |
public function getCmdLine():ArrayReturns an array of strings with the parameters passed to your application.
Neko call is neko.Sys.args().
ReturnsArray |
| getCmdLineArgCount | () | method |
public function getCmdLineArgCount():intReturns the number of paramenters passed to your application.
Returnsint |
| getInstance | () | method |
public static function getInstance():ApplicationUse this method to retrieve an instance of the class, do NOT call the constructor directly. Note that you don't need to store the instance to access its methods, you can simply do this:
var appFolder:String = Application.getInstance().getApplicationFolder();
Application |
| quitApplication | () | method |
public function quitApplication():voidQuits application.
This method makes this calls on the backend:
swhxWindow.destroy();
swhx.Application.exitLoop();
swhx.Application.cleanup();