ActionScript 2.0 :: Getting The Nodevalue In XML?
Apr 28, 2010
I have created an XML list that feeds a TreeView component, with AS2 I am able to get to this point:
This is my XML statement :
Code:
<menulist>
<node label="Products">
<node label="Tryout">
[Code]....
At this point I when I run the movie I get the index which is basically a number, but I want the label associated with that number.
In the XML file, there's an attribute called data, I want the segment2.swf to load when the user selects the option. I have a loader component also on stage, I just want the user selection to be as input to the content path of the loader.
View 4 Replies
Similar Posts:
Dec 3, 2009
I want to display my XML data in flash and I managed to display this:
Code:
<title>My Title</title>
with this:
[code].....
View 1 Replies
Jan 28, 2010
I have to access every node value of an XML file via some for loop.But it doesn't workEvrything is in the FLA and XMl file attached.
View 3 Replies
Mar 18, 2010
Does anyone know where I might be able to find a list of all HTML (and XHTML) tags that are supported with externally loaded CDATA text? I have a client who's running into rich text editor issues using a <strong> tag instead of, say, <b> tags, and I'd like to have a solid list of supported tags they can use.
View 0 Replies
Apr 12, 2004
Completely at a loss for words...it is there in the xml file. The XML throws no errors. And yet when I try to access the CDATA section it says that its null. What does that mean? Here is my test source, and the link to the location of the XML doc (its a hard coded link in the AS).
View 5 Replies
Jul 3, 2005
so i have ignoreWhite set to true and am trying to get textual data out of an xml node. my node looks like so:<description>this is a description</description>so i navigated to the node with the following variable:var descriptionNode:String = newsXML.firstChild.firstChild.childNodes[i].childNodes[2];and it gives me the output when i trace it with the node and the description in it. but i don't need the node, i need the text only, so i tried to add a nodeValue at the end of that and it output as null. why am i brainfarting right now and can't figure out how to output just the text and not the text AND the node?
View 3 Replies
May 6, 2005
I'm building a gallery under flash mx 2004. I use an xml file to store the description about each painting that has to be displayed with the picture related to it.
Here is my xml file :
Code:
<description>
<painting ref="01">
<title>Guernica</title>
[Code]....
I can get the node names but the node value is "null", and the nodeType of my node "<title>" returns "1"...
What's going wrong, it's supposed to be a text node...
How should I acess to the value of my "<title>","<date>", "<technique>", and "<size>" node values ?
View 2 Replies
Oct 4, 2010
Having to do some as2 with an ancient system, and am far from fresh on it. I've managed to bungle my way through most of it, but I've hit a strange logic problem.
Code:
trace(this.firstChild.firstChild.firstChild);
trace(this.firstChild.firstChild.firstChild.nodeName);
trace(this.firstChild.firstChild.firstChild.nodeValue);
produces:
[Code]...
View 3 Replies
Oct 15, 2003
When I try to get some text from a node into a textfield by using .nodeValue I get 'null'. When I use nodeType on that node the result is "1". I understand that a textnode should result in value "3". But how come this isn't the case here?
My xml looks like:
[code]...
View 6 Replies
Nov 5, 2009
Please, anyone can help me to parse this xml sample. I want get the nodevalue summary and description in tag OBJECT? I need actionscript code.
[Code]...
View 4 Replies
Oct 15, 2003
I read Senocular's tutorial on XML and found it really useful. But I still have a problem: When I try to get some text from a node into a textfield by using .nodeValue I get 'null'. When I use nodeType on that node the result is "1". I understand that a textnode should result in value "3". But how come this isn't the case here? My xml looks like:
[Code]....
View 6 Replies
Aug 4, 2004
i am having with xml being displayed in flash mx.the tutorial on this site works fine, but when i write my own xml file and modify the as, i encounter the problems. ideally, i wolud like to be able to load text files and urls of images to be loaded into flash, flash recognises the xml file fine and actually loads it, however, when i try to use the nodeValue action, i am always given the value "null." this is because flash thinks the node is an element rather than a text node (type 1 rather than 3, when you use nodeType.) i don't know why it does this when it is obviously a text node.
View 3 Replies
Dec 3, 2010
when I create an element with this method :
this["nodeValue"+i] = new TextField();
(surely in dynamic class )
then I want to change instance name of that element.when I trace this["nodeValue"+i].name.I got a different name for that element ! f ex : instance8 .how can I get "nodeValue"+i from my element and change that .is it read only ? I want to swap tow element's instance name !
for example :
this["nodeValue"+i] to this["nodeValue"+i+1]
View 4 Replies