PDA

View Full Version : Converting x and y to pan and tilt


mconn
03-02-2007, 09:08 PM
I want to be able to add hotspots at any location I choose. Here is what I want to do:

Click on a pano and inset the hotspot at the point. I have written the code to do this but I am having problems with the position..

My code returns x and y values from the click location on the screen - this is from windows.

It seems that I will need to convert this to pan and tilt. I can use static hopspots but this is really not what I want

Does this seem like the best approach? Have anyone converted from x,y to pan,tilt? Can the flash player return the location of the mouse in pan/tilt co-ords?

Thanks

Denis
03-02-2007, 11:13 PM
Good idea, thanks, I will make a solution after 2.0 release.

jlounds
10-21-2007, 09:04 PM
Has anyone figured out how to do this?

Using the editor plugin layer, when you switch a hotspot from static to non-static, it seems to do the conversion perfectly.

Denis
10-25-2007, 10:11 AM
So, the best way is to set static parameter to "1", read coordinates and to set static back to "0". :)