Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

Tourvista

Fortgeschrittener

  • »Tourvista« ist der Autor dieses Themas

Beiträge: 249

Wohnort: Leicester UK

  • Nachricht senden

1

Freitag, 21. November 2008, 14:43

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

Freitag, 21. November 2008, 17:01

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"

Quellcode

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


to access this variable from the plugin/actionscript:

Quellcode

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


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

best regards,
Klaus

Tourvista

Fortgeschrittener

  • »Tourvista« ist der Autor dieses Themas

Beiträge: 249

Wohnort: Leicester UK

  • Nachricht senden

3

Freitag, 21. November 2008, 17:16

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

Samstag, 22. November 2008, 12:11

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

Montag, 1. Dezember 2008, 11:33


to access this variable from the plugin/actionscript:

Quellcode

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 ?

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Job.1« (1. Dezember 2008, 15:11)


6

Montag, 1. Dezember 2008, 21:56

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

Ähnliche Themen