A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: html tags in xml problem in flash

  1. #1
    Junior Member
    Join Date
    Oct 2004
    Posts
    2

    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!

  2. #2
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    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

  3. #3
    Junior Member
    Join Date
    Oct 2004
    Posts
    2

    wow

    Quote Originally Posted by Chris_Seahorn
    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

    so what am i doing wrong ???

  4. #4
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center