You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Thursday, September 8th 2011, 1:53pm

.swf hotspot that get properties "itself"

Hi Guys

I red hundreds of 3d, but I still haven't found the way that I'm looking for.

I have hotspots made by the same .swf file.
Every hotspot has the relative <hotspot> node in the xml file that creates the panorama.
I would like to know if there's a way, and how, the hotspot swf file can get property of "his" relative <hotspot> node in the xml file. Such to develop an "intelligent" hotspot that made something on his own, getting information by itself in the "parent" app.

Any ideas?

thanks in advance.
zeno

Posts: 1,850

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

2

Thursday, September 8th 2011, 4:36pm

what is a relative <hotspot> node?
Do you have any examples of what are you trying to describe?
It is not clear.
Using the krpano api and math, it's possible to do just about anything once you read the documentation.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

3

Thursday, September 8th 2011, 5:49pm

thanks for the answer.

I'm going to try to explain better.

First off all: I render a panorama into a .swf file, usign krpano API and xml external file.

In the xml file there're

Source code

1
2
3
4
5
6
7
<hotspot
...
 url="pathToSwf/hotspot.swf"
...
...
foo="bar"
/> 


nodes for each hotspot I need to load.

The hotspot file is a .swf file, the same for all of them.
I would like that the hotspot.swf file can get some property defined in the

Source code

1
2
3
4
5
6
7
<hotspot>
...
  url="pathToSwf/hotspot.swf"
 ...
 ...
foo="bar"
/> 

node (such as custom ones, like foo).
This means that I need to access to the "parent" app that render the panorama that load the .swf hotspot.
No need to use math stuff.

thanks.
zeno

Posts: 1,850

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

4

Thursday, September 8th 2011, 6:33pm

the hotspot swf is just an animation? then there's no problem. just look to the documentation for actions.

< hotspot onloaded"trace(foo);trace(view.fov);trace(yaddayada); set(yadda yadda, get(foo));action1(args)"
foo="bar"
>
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

5

Friday, September 9th 2011, 10:57am

Hi sachagriffin

thank for the answer.
I was already able to interact with the hostpost.swf file from the "root" app, such get and set properties or using method of the hotspot file.

I'm trying to do the opposite: the hotspot file interact on his own with the "root" .swf app, (ie: getting information about itself from the xml definition of the panorama).

I've tried in various ways. So, now, I'm thinkng: it could be possible?

regards
zeno.

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

6

Friday, September 9th 2011, 11:27am

Hi zeno,

As I have no knowledge about AS3, I can not really help... But I remember a post from Zephyr *thumbup* that gave an example code of an plugin that retrieves parameters value from itself: here the post

Hope it helps...

SAlut.

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

7

Friday, September 9th 2011, 12:03pm

Hi zeno,
Also, take a look to the AS examples that comes inside Krpano downloaded package:
krpano-1.0.8.14-2011-09-01\examples\as3-interface\plugin-sources\radar\radar.as
The radar.as seems to be a good exemple for what you are looking for...

SAlut.

8

Friday, September 9th 2011, 5:05pm

Merci beaucoup Michel...

great.
you've done...

I red about plugin, I didn't try because I though that in this case I use hotspots... but It should be enough try *g*

I met zephyr browsing the forum of flash panorama player [the old pano player ;-) ] and many times he gave me the right hint...
Like now...

and thanks to you to route me to that zephyr post...
regards
zeno