-
html tags in xml problem in flash
hi,
i've been asking around already now for 2 days, but still can't find my answer.. i have a problem loading some simple xml into flash.. in the xml is some html tags... the strainge thing is that my textfield in flash is not doing anything with the html and is just displaying the html tags...
this is the xml file:
http://www.asa-bg.com/newdesign/xml/en_services_xml.php
(check source of this file, you see everything is correct)
and here is the swf:
http://www.asa-bg.com/newdesign/xmltest.html
the as code in the swf:
Code:
this.createTextField("my_txt", 1, 100, 100, 300, 100);
my_txt.multiline = true;
my_txt.wordWrap = true;
my_txt.html = true;
my_txt.htmlText = "<u>xml</u> is loading... ";
var services:XML = new XML();
services.ignoreWhite = true;
services.onLoad = function(success)
{
var tot_services = services.firstChild.childNodes;
var service_t = tot_services[0];
my_txt.htmlText = service_t.firstChild.nextSibling.childNodes;
}
services.load("http://www.asa-bg.com/newdesign/xml/en_services_xml.php");
in the code you see : <u>xml</u> is loading... ... and this is working correct in the swf, but when it loads the html text from the xml file it's not...
plz hope someone knows what is wrong here!
-
up to my .as in code
I saw your post in another thread and threw together a test using your posted backsides and AS that seemed to work fine for me.
http://sandbox.blogdns.com/examples/447.html
-
wow
Originally Posted by Chris_Seahorn
so what am i doing wrong ???
-
up to my .as in code
Do me a favor. Zip up the actual files you are using with the FLA and attach so we can see if it's something there.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|