How os OnLoad() working?
Monkey Forums/Monkey Programming/How os OnLoad() working?
| ||
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? |
| ||
EDIT |
| ||
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. |
| ||
i thouhgt i need to do something with async load and stuff to use this :) but if its so easy^^ |
| ||
So this is basically the same as OnCreate()? |
| ||
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. |
| ||
yeah so you can display a little "Loading..." text while your app loads in all its media/. |