How can I make the value of an element in XML show in my dynamic textbox?


i followed forum instructions here. when tested file/document, outcome didn't happen 100% accurate.

 

here xml code , flash code:

 

xml

<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<userbase>

<projinfo>test line 1</projinfo>

</userbase>

flash

var my_xml:xml = new xml();

var myurl:urlrequest = new urlrequest("userbase.xml");

var loader_url:urlloader = new urlloader(myurl);

loader_url.addeventlistener("complete", fileloaded);

 

function fileloaded(e:event):void

{

                my_xml = xml(loader_url.data);

               

                mynamehosp.text = my_xml.projinfo;

}

 

when previewed file dynamic textbox showed "test line ". if made <projinfo> element read this:

<projinfo>test line 1 more text here</projinfo>

the dynamic texbox showed "test line  more text here". completly ignoring number "1". how fix this? when our company uses this, possible have (a) number(s) in ou values.

 

any ideas?

the code fine. didn't embed font, , if did don't have numerals embedded.



More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support