You are not logged in.

1

Friday, October 12th 2012, 1:53pm

New plugin template

I have some difficulties with the new plugintemplate .fla

Anyone can help me ?

Posts: 1,082

Location: Russia, Kaliningrad

  • Send private message

2

Friday, October 12th 2012, 4:33pm

Hi!
what is the problem?

Andrey
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

3

Friday, October 12th 2012, 5:53pm

Thank's Andrey

I don't know what I have todo with this plugintemplate
my plugin don't work with variable or get(something) on kr
if I can have a little example ...

Posts: 1,082

Location: Russia, Kaliningrad

  • Send private message

4

Friday, October 12th 2012, 6:59pm

Hi!
get some value:
for example get X from plugin

var x : int = krpano.get("plugin[myplugin].x");

call some action
krpano.call("trace(call from plugin)");


Andrey *thumbup*
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

5

Saturday, October 13th 2012, 4:38pm

Yes Andrey but when I put
tx.tx.text = krpano.get("hotspot[get(name)].text)"); it return me "-1" and not the text

Posts: 1,082

Location: Russia, Kaliningrad

  • Send private message

6

Saturday, October 13th 2012, 10:15pm

Hi!
May try this
text = krpano.get("hotspot[" + hsname + "].text)");

where hsname is internal plugin variable


ANdrey
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

7

Monday, October 15th 2012, 1:05am

this one give me all time the text of the first line of hotspot for each hotspot *blink*

Posts: 1,082

Location: Russia, Kaliningrad

  • Send private message

8

Monday, October 15th 2012, 4:02pm

Hi!
What did you want to achieve?
You want xml text of hotspot?
Or you want to know attributes values?
Andrey
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

9

Monday, October 15th 2012, 5:43pm

I just want xml text of hotspot *cry*

on a vr I can get the text of each hotspot with showlog and get(hotspot[get(name].text) but with the swf hotspot no

Posts: 1,082

Location: Russia, Kaliningrad

  • Send private message

10

Monday, October 15th 2012, 7:28pm

Hi!
I don't know the way to get xml text of an krpano array item.
But I know how to get all attributes value. *thumbup*
there is getattributes() method - return attributes name array.
So you can loop it and get value of each
and build xml string

obj = krpano.hotspot.getItem(bla);
attr = obj.getattribites();
var xmlst = "<hotspot ";
for(i=0; i<attr.length; i++) {
xmlst += attr + "=\"" + krpano.get("hotspot[" + obj.name + "]." + attr[i]) + "\" ";
}
xmlst += " />";

something like this ;-)

Regards
Andrey *thumbup*
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

11

Monday, October 15th 2012, 8:23pm

Thank's for your reply
I'll try with getattibuttes method

Similar threads