You are not logged in.

1

Monday, November 17th 2008, 1:40pm

get attribute of data node

Hi can i put mine attributes of a data node an recive it by get ?
thankns.

2

Tuesday, November 18th 2008, 7:58am

Hi,

the "data" and "action" node are special nodes,
they are used to store data that will not be parsed,
access the content of this nodes with "data[name].content" or "action[name].content"

e.g.

xml:

Source code

1
2
3
4
5
<data name="myhtmldata">
<html>
<p>hello data</p>
</html>
</data>


as3:

Source code

1
var myhtmldata:string = krpano.get("data[myhtmldata].content");


best regards,
Klaus

Similar threads