I have some difficulties with the new plugintemplate .fla
Anyone can help me ?
I have some difficulties with the new plugintemplate .fla
Anyone can help me ?
Hi!
what is the problem?
Andrey
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 ...
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
Yes Andrey but when I put
tx.tx.text = krpano.get("hotspot[get(name)].text)"); it return me "-1" and not the text
Hi!
May try this
text = krpano.get("hotspot[" + hsname + "].text)");
where hsname is internal plugin variable
ANdrey
this one give me all time the text of the first line of hotspot for each hotspot
Hi!
What did you want to achieve?
You want xml text of hotspot?
Or you want to know attributes values?
Andrey
I just want xml text of hotspot
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
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.
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[i] + "=\"" + krpano.get("hotspot[" + obj.name + "]." + attr[i]) + "\" ";
}
xmlst += " />";
something like this
Regards
Andrey
Thank's for your reply
I'll try with getattibuttes method
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!