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

Sunday, May 13th 2012, 6:28pm

event onloadcomplete and multires

This event will be called when the loading of the pano image will be done. In the case of multi-resolution panos this event will be called when the first complete view was loaded.

I need that event will be called when all tiles loaded. How i can do this? anybody help me;) thanks

I wrote the code to preload the scene. And i have multires scenes with 2 level. I can change level by button, use lockmultireslevel. –°ode finds the hotspots within the scene and only preload them scenes.

But if now used level 2 tiles of current scene loaded after others scenes. So i need solution how to verify 2 level tiles of scenes were loaded.
Maybe I do not see any future mistakes, I hope someone was trying to do something like

and sorry for my english;)

2

Monday, May 14th 2012, 12:09pm

Hi,

an real onloadcomplete event for multires isn't possible because there typically never all tiles will be loaded,

but by using lockmultireslevel and downloadlockedlevel=true it should be possible to force loading all tiles from one level:
http://krpano.com/docu/actions/#downloadlockedlevel

and the onloadcomplete event should fire when these tiles were loaded,

best regards,
Klaus

3

Monday, May 14th 2012, 4:05pm

Greate Thanks Klaus!

Now everything works as I want.

But I have another question. I set lockmultireslevel,0 in event "onxmlcomplete", but at first time loaded one tile of second level. When i change scene by hotspot or plugin(map's spot) everything is ok, bat if use url (swfaddress) loaded two tiles of second level. And if i use second level loaded two tiles of first level.

o and it depends on the width and height of window. if window less then resolution of first level everything works perfectly.

no, its true for first problem, when uses second level two tiles of first still loaded.

This post has been edited 2 times, last edit by "igosli" (May 14th 2012, 4:53pm)