You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Friday, January 7th 2011, 11:15am

WARNING: loadpano busy. How to know if it's busy?

Hi, I'm making a navigation over the scenes in Flex. I've got several buttons that changes the sceens (actually that loads the xml: loadpano(...) )
Problem is similar to this discussed here:
wait between buttonpresses
The solution suggested in the post above is to wait until onpreviewcomplete event dispatches. Unfortunatelly that does not work.
After onpreviewcomplete occurs I click (fast) into another button and I get: WARNING: loadpano() is busy

I've tried also to set up timer before loadstart:

lockerTimer.start();
dispatcher.dispatchEvent(new LockerEvent(LockerEvent.LOCKED));
_krpano.call( 'loadpano(' + _currentResource.url +', null, KEEPVIEW, BLEND(1))' );

and then:

private function _onLockerTimer(event:TimerEvent) : void
{
if( _krpano.get('progress.loaddone'))
{
_isLocked = false;
_lockerTimer.stop();
dispatcher.dispatchEvent(new LockerEvent(LockerEvent.UNLOCKED));
}
}

That does not work either.
It would be great if krpano would dispatch the event every time it gets busy and every time it is ready to work. Is there any variable like that: isPanoBusy? It would be great if it is.
Thanks for the great panorama viewer and for Your help about this topic.

2

Friday, January 7th 2011, 11:24am

I've noticed that when I remove BLEND(1):
_krpano.call( 'loadpano(' + _currentResource.url +', null, KEEPVIEW' );
Everythink works well. How can I know if is blending?

On my app blending is very importent.