Loader option for waiting for a large scene to load

Hi This is my first time posting.

The problem is that I have a few huge scenes based on memory that is in the region of 100 Mb. If you create eventlisteners like buttons, the began event and go to next scene is called, now that takes a bit of time and I want to know is there a sort of a loader scene I can create that is small, so the touch began is showed quickly and while this is showing the loading scene bring up the scene required and as soon as the huge scene that is required is fully loaded stop the Loader scene.

It takes some time to read through the forums, I have looked at a few forum topics, maybe I have missed it.

I have picked up on that it is better to make images invisible at first and the visible again on enter scene, will try that to see if it makes the load time faster, but if any body can point me in a direction or help would be appreciated. [import]uid: 192646 topic_id: 32902 reply_id: 332902[/import]

Can one use the scene.overlay maybe as an option for this?
[import]uid: 192646 topic_id: 32902 reply_id: 130752[/import]

I found what I was looking for. It helps if you probably now all the code that is available in the SDK.

So just to give an indication if some one reads this the code is

native.setActivityIndicator( true );

I have used this just before the storyboard.gotoScene and on then on the new scene at either the create scene or enterscene you can add

native.setActivityIndicator( false );

depending when you want to remove the Activity indicator.

It would me nice if there is some one that can still propose a method for my original question if you want to have a custom loader option. [import]uid: 192646 topic_id: 32902 reply_id: 130756[/import]

Hey thanks for updating :slight_smile:

RE custom loader, may be worth reviewing this thread and the linked-to sample; http://developer.coronalabs.com/forum/2011/10/11/how-add-loading-bar

Peach :slight_smile: [import]uid: 52491 topic_id: 32902 reply_id: 130766[/import]

Can one use the scene.overlay maybe as an option for this?
[import]uid: 192646 topic_id: 32902 reply_id: 130752[/import]

I found what I was looking for. It helps if you probably now all the code that is available in the SDK.

So just to give an indication if some one reads this the code is

native.setActivityIndicator( true );

I have used this just before the storyboard.gotoScene and on then on the new scene at either the create scene or enterscene you can add

native.setActivityIndicator( false );

depending when you want to remove the Activity indicator.

It would me nice if there is some one that can still propose a method for my original question if you want to have a custom loader option. [import]uid: 192646 topic_id: 32902 reply_id: 130756[/import]

Hey thanks for updating :slight_smile:

RE custom loader, may be worth reviewing this thread and the linked-to sample; http://developer.coronalabs.com/forum/2011/10/11/how-add-loading-bar

Peach :slight_smile: [import]uid: 52491 topic_id: 32902 reply_id: 130766[/import]