PDA

View Full Version : stop panorama rotation outside application


zenofonte
03-22-2009, 11:16 AM
Hi to everybody...

I use a panorama inside a .swf application. This application is loaded into an html page using swfobject.

The applications dimensions (width and heigth) are less than the html page dimesions, and it's centered appropriately.

Well.
Left clicking the mouse buttons I start to navigate into the panorama. :cool:
BUT:
If I move the mouse outside the .swf application mantaining the mouse button pressed then, when I relase the button, the panorama continues to navigate itself.
It seems a crazy auto-rotating panoramas. :???:

any ideas to stop it?

thanks to all.
zeno

HansNyberg
03-22-2009, 12:38 PM
Are you on a Mac laptop?

This is something I noticed for many years also with Quicktime VR movies.
It actually makes the most fantastic way of navigating a QTVR you can ever do. Smooth like with some hardware optimized supercomputer even if you are on an old Powerbook with a 32mb videocard.

I seen it also with flash panoramas and I am not sure it is just FPP.

Hans

zenofonte
03-23-2009, 06:41 PM
no. pc latpot a brand new one...

the auto-crazy-rotating remains...:confused:

zenofonte
03-24-2009, 07:06 AM
yeahh...

I solve it.

there're two kind of stuff.

1 - stage Mouse_leave is no trigger if the mouse button is pressed. so on the click button I start an enter-frame event that checks the mouseX and mouseY. if they're out of stage a "stopDrag" new method is called.
2 - .... the stopDrag method is panorama.pano.doRelease.... I've found it almost randomly.

In past month, in fact i stored the describeType trace of the panorama object I've detect: a sort of essential Indexes of the FPP api.

the "stop of the panorama drag" (when the mouse UP is triggered) is relative to the pano, no other plugins are interested...

so... panorama.pano is a cubePanorama object. in the relative xml file I red about a
<method name="doRelease" declaredBy="CubePanorama" ... />

I tried.... and so on... It works..
:cool::cool: