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.

Tourvista

Intermediate

  • "Tourvista" started this thread

Posts: 257

Location: Leicester UK

  • Send private message

1

Friday, November 21st 2008, 2:43pm

AF Components Scrolling panel doesn't work inside Krpano

Hello Mr K!

I have purchased a flash component to use inside krpano but unfortunately it doesn't work.

I have just posted them telling about this problem, but I thought that you might know why it doesn't work.

This is the example

And this is the flash file (works itself)

It is very extrange because if I insert Umap (other of their components) inside that example, Umap works perfectly .Any idea?

Thank you very much!

2

Friday, November 21st 2008, 5:01pm

Hi,

this seems to be a "path"-problem - the flash component search for the "vtlist.xml" file in the root path,
when it is started standalone the root path is the path of the "summersundae.swf" file
and it works, but on when it is started from krpano the root path is the path of the html file
and it doesn't find the "vtlist.xml",
the solution is the copy the file to the path of the html file or change the path in your plugin,
a other solution would be to pass the path to the xml from krpano,

e.g. - xml - add a user defined sub node - "vtlist"

Source code

1
2
3
<plugin name="summersundae" url="../flash/summersundae.swf">
  <vtlist url="../flash/vtlist.xml" />
</plugin>


to access this variable from the plugin/actionscript:

Source code

1
var xmlurl:String = krpano.get("plugin[summersundae].vtlist.url");


(note - "url" attributes are automatically converted to full paths)

best regards,
Klaus

Tourvista

Intermediate

  • "Tourvista" started this thread

Posts: 257

Location: Leicester UK

  • Send private message

3

Friday, November 21st 2008, 5:16pm

Thanks Mr. K,

I was going to write post saying that I solved the problem (by a chance) when I noticed you already replied me.
It's not the first time a path problem give me a head ache. Once I spent hours wondering what was wrong until I found into the documentation that the relative path is traced from the first xml file loaded. ?(

Can I ask how did you know the component was looking for the xml file in the wrong place? Do you use a magic debug application or something?

Thanks

4

Saturday, November 22nd 2008, 12:11pm

Hi,

:D
I just used the Live HTTP Header Firefox Add On to trace the HTTP requests and compared the examples,

best regards,
Klaus

5

Monday, December 1st 2008, 11:33am


to access this variable from the plugin/actionscript:

Source code

1
var xmlurl:String = krpano.get("plugin[summersundae].vtlist.url");


(note - "url" attributes are automatically converted to full paths)

best regards,
Klaus


hi Klaus i try to use AF Components Scrolling panel, where i have to do this ?

This post has been edited 1 times, last edit by "Job.1" (Dec 1st 2008, 3:11pm)


6

Monday, December 1st 2008, 9:56pm

Hi,

you can use this code anywhere in your plugin, it just reads a value from the loaded xml,
have a look in the plugin sources for more krpano as3 interface examples,

but I can't help with question about the AF Components Scrolling panel itself,
I haven't used it yet.

best regards,
Klaus

Similar threads