PDA

View Full Version : Zoomer plugin bug


Aifos
12-27-2009, 12:48 AM
Hi Tommy!
i'm using your new zoomer plugin (http://wirestam.com/panos/Flash/plugins/zoomer.html) wich is really amazing!!
thank you so much for your great work!

i'm trying to setup the plugin.
I start all my tours with disableLoading=1
then I load the first pano like this: <global onStart="load_MyPano();" >

If i do this, zoomer plugin will work OK when I drag the handler button, but when I zoomin/out with scrollWheel it doesn't recognize the actual zoom position and the handler button doesn't move.
Also, when I click at the top and bottom of the zoom background, where I placed my + - it doesn't zoomin/out... i've seen your example (http://wirestam.com/panos/Flash/zoomer/zoomtest1.html) do these things.

When I remove disableLoading=1 and onStart="load_MyPano();"
and just use panoName= myPanoName
The plugin works perfect!!!
You can see my working test here (http://www.ciudadesferica.com/varios/zoomer)
and the xml here (http://www.ciudadesferica.com/varios/zoomer/pano.xml)

So I can imagine that it is some issue when the plugin gets the panoName in Parameters, then zoom value for that panoname... as it doesn't find any panoName in parameters, the error comes up. (just thinking)

It will be great if you can fix this, as many people use onStart="load_MyPano();" like me...
And I will be able to use your great plugin!!! =)

Thanks again for your amazing work!!! :)

allSaints
12-27-2009, 10:23 AM
Hi Aifos,

and thanks for debugging my plugin!

Normally, I also use disableLoading=1, but in this case I happened to copy an older file which didn't use it. When you disable the initial pano loading, the FPP pano variable that I use in the plugin points to some initial object when the plugin is initialized. And that object is later replaced with the "real" object when the pano is loaded. So, to be sure you have to set up a timer and complete your plugin initialization when everything else is ready.

Anyway, I have uploaded a new version (1.0.1) which should take care of things.

Have A Happy New Year,
Tommy

Aifos
12-28-2009, 02:42 AM
Hi Tommy!
great! thanks for taking care fo this! =)
but i think there's still some problems... sorry =(

when first pano loads the issue is solved... great! but now try loading a new pano calling a function like load_otherPano(); then in Global define the function.
the same problem comes up again! =(
see the sample test here (http://www.ciudadesferica.com/varios/zoomer)

the interface is in progress so it is a little messy.

thanks!!!

allSaints
12-28-2009, 11:34 AM
Aifos,

I'm sorry for the trouble. There is a new version (1.0.2), but now I won't say another word until I know it's working properly...

Tommy

Aifos
12-28-2009, 11:29 PM
Tommy! you are so great!! thank you so much for this plugin!!! i love it!!!
now it is working perfect!!
thanks again!!! and again! =)
have a great and happy new year!!!

Aifos
01-02-2010, 06:38 PM
hi Tommy!
it is not clear how dragCoords works... there's no documentation of it.
Would you explain us how it works?
i see 4 numbers: 11;174-11;24
Is 11 the margin for zoomout button?
174-11.. is it the coords for the drag button?
Is 24 the top margin for zoomin button?

thans man!! :D

allSaints
01-02-2010, 09:28 PM
Aifos,

I'm sorry for being unclear. I wish I had someone else who could write the documentation, because in your own head everything seems so crystal clear. Well, it should be when you have written the code...

Anyway, the zoomer consists of two images - the scale and the moving handle.

The scale has its registration point in the upper left corner, ie. coordinates 0;0. And the handle can be moved over the scale image between the two points given in the dragCoords attribute.

dragCoords="11;174-11;24"
means that the handle can move between a point at 11;174 (zoomed out) and a point at 11;24 (zoomed in). And as the points have the same x-coordinate, it of course means that this is a vertical scale.

The plugin also captures mouse-down events on the part of the scale image below and above the handle endpoints, which makes them function as zoom in/out buttons.

Tommy

Aifos
01-02-2010, 09:41 PM
thanks man!!! :D