PDA

View Full Version : Javascript for interaction between DOM and pano


Tudor
12-04-2007, 10:35 PM
Hi there,

I am new to this list and just started to use Flash Panorama player so please excuse me if this question is stupid....

How can I communicate between my dynamic webpage and the panorama. I would like to be able to use javascript to pass information such as the pan angle and tilt angle back from the flash player. With Quicktime there is movie.getPanAngle() -> what is the equivalent?

Also like to know what is equivalent to movie.setPanAngle(float)

Thanks and hello again

Tudor

zleifr
12-05-2007, 03:58 AM
ExternalInterface. Check the examples, there is one that does just that.

Tudor
12-05-2007, 03:21 PM
ExternalInterface. Check the examples, there is one that does just that.

Just searched through forums and found out why this example doesn't work (ie firefox locally ) - Loaded it onto a remote server and it worked a treat -THANKS
___________________
Problem is that this example is the only one that doesn't work!
I get a javascript error:
window.document.pano.myidPanoExecute is not a function
Could anyone suggest how to fix this example
____________________



Thanks
Tudor

edfink
03-15-2008, 09:36 PM
>myidPanoExecute is not a function

I'm trying to do something like that too, and I've been getting the same error all day. Did you ever find a fix for this?

Ed
http://BigEyeInTheSky.com

GregorH
03-16-2008, 01:42 PM
Same here!

The example that comes with FPP (external Test) does not work for me. Not on IE7 nore FF :(

I just need to put some links in my HTML page that changes the pan/tilt/zoom of the pano to show the visitors some interesting spots, just like denis did on his "Add some Life..." blog page. How does this work??

Thanks,
Gregor