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

Wednesday, August 11th 2010, 10:00pm

[Solved] Is it possible to use a xml file with as3 interface?

Hi all,

I created a panorama using an xml file, and I have to create an interface to add a new functionnality.

When I load my panorama with the new swf file I created (the interface), it does not work.

So my question is, is it possible to use an advanced xml file such as the one I attached when using an interface? Or is it normal that it doesn't work?

Thanks a lot for your answer!
donnie has attached the following file:
  • krpano.xml (3.9 kB - 18 times downloaded - latest: Apr 24th 2014, 3:44pm)

This post has been edited 1 times, last edit by "donnie" (Aug 12th 2010, 12:03pm)


mds

Intermediate

Posts: 152

Location: Athens, GA

Occupation: Designer

  • Send private message

2

Wednesday, August 11th 2010, 10:47pm

assuming your as3 interface is loading krpano you can just use the following code to load your xml:

krpano.call("loadpano(krpano.xml,null,KEEPBASE|KEEPPLUGINS);");

just make sure it's in the same directory
Say "Hi!" on twitter

3

Thursday, August 12th 2010, 11:04am

Thanks for your help, but while it helped me load the images of the panorama, my radar doesnt work.


1) Before your help, I was using this to call the xml file in my interface:

Source code

1
krpano.call("loadpano(krpano.xml,null,MERGE,BLEND(1));");


Result: the radar worked fine, but I couldn't see the panorama.
krpano console panel shows:


Quoted

WARNING: ExternalInterface NOT available
WARNING: loadpano() - busy
ERROR: mask "mapmask" not found!


2) If I use your code to call the xml:

Source code

1
krpano.call("loadpano(krpano.xml,null,KEEPBASE|KEEPPLUGINS);");


Resut: I now see the panorama, but not the radar anymore.
krpano console panel shows:

Quoted

WARNING: ExternalInterface NOT available
ERROR: no parent "map" found


Is it possible to have both, or do I have to remove some things from the xml, and code them in my interface?

4

Thursday, August 12th 2010, 12:03pm

Ok I managed to keep my panorama working with the interface, by using this to call the panorama:

Source code

1
krpano.call("loadpano(krpano.xml,'keep=true',null);");



Thanks for your help mds, you showed me the way!

Now let's start customizing this wonderful app!

mds

Intermediate

Posts: 152

Location: Athens, GA

Occupation: Designer

  • Send private message

5

Thursday, August 12th 2010, 6:02pm

glad i could help ;-)
Say "Hi!" on twitter

Similar threads