PDA

View Full Version : Accessing panoramas functions inside an internal swf


Цzgьr ALTAY
05-03-2008, 03:10 PM
Hi,
i am trying to accessing the loadPano() function inside a SWF that i loaded to panormas from XML before.

But i can not compile the SWF (actually a button), Because it outputs this error message: "1061: Call to a possibly undefined method loadPano through a reference with static type flash.display:Stage."

here is the function:
btn.addEventListener(MouseEvent.CLICK, imagePressed);
function imagePressed(e:MouseEvent):void{
stage.loadPano(360/1)
}

Is there a possible way to use loadPano() function inside an another SWF that we loaded to panoramas?

cheathamlane
05-03-2008, 05:19 PM
Is there a possible way to use loadPano() function inside an another SWF that we loaded to panoramas?

If you are loading your SWF as a hotspot (<spot> or <box>), then you can use jaaaab's method. Here's an example which will show you the basic idea. What will interest you is "hotspots.execute", I believe.

http://flashpanos.com/content/rotating-nadir-image-bottom-cap

Cheers,

Цzgьr ALTAY
05-04-2008, 01:50 PM
@cheathamlane,

hotspots.execute is the right thing that i've looking for. Thank you so much :D

BTW, your plug-ins rock!

cheathamlane
05-04-2008, 04:13 PM
Thanks Цzgьr!, and glad I could help... :)