You are not logged in.

Dear visitor, welcome to 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.


Tuesday, July 1st 2014, 1:38pm

Json string from plugin to hotspot

Hi everybody.

Please help me to create a proper json string to send it with krpanointerface to other hotspot.

The problem is the following^
1. string is built in fla plugin var stringd:String="{"screen":{"flightindicator":"setnavmodeparams":"takeoff"}}}";
2. I call function of other hotspot

var hotspot:Object = krpano.get("hotspot[display1l]");

3. Nothing happens.

I have tested it when declared and called from krpano XML, that is ok.

May be qouts enetities converted in to real symbols before sending and thus cause an error.


Tuesday, July 1st 2014, 10:46pm

The get function only returns values, it does not execute actions.

You need to use the call function, see Try:

Source code

1"hotspot[display1l].sendjson(" + stringd + ")");
My Krpano plugins: Auto Thumbs - Tooltip - Abs