How os OnLoad() working?

Monkey Forums/Monkey Programming/How os OnLoad() working?

Salmakis(Posted 2013) [#1]
i tried to use this, but i have no clue how its working and there seems like no documentation aviable about this.

anybody got an idea?


dragon(Posted 2013) [#2]
EDIT


computercoder(Posted 2013) [#3]
OnLoad() is executed when the app starts up. Any code you place in this function will execute prior to anything else.

If you want to perform initializations or the like, this is where you would want to do it. This is a one time thing for the application per app execution.


Salmakis(Posted 2013) [#4]
i thouhgt i need to do something with async load and stuff to use this :)
but if its so easy^^


rIKmAN(Posted 2013) [#5]
So this is basically the same as OnCreate()?


ordigdug(Posted 2013) [#6]
From monkey docs:

Method OnLoading:Int()

This method is called instead of OnRender when the application should render itself, but there are still resources such as images or sounds in the process of being loaded.

The return value of this method is currently ignored, but should be 0 for future compatibility.


Paul - Taiphoz(Posted 2013) [#7]
yeah so you can display a little "Loading..." text while your app loads in all its media/.