×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    20

    Loading XML into Flash Lite

    Hello everybody,
    its me again - sorry to bother you.
    Still having problems with my code.

    this is my xml code (maybe its looks familiar )
    PHP Code:
    <?xml version="1.0" encoding="UTF-8"?>

    <bikes>
    <bike id="1", price "750"> Kona </bike>
    <bike id="2", price "900"> Voodoo </bike>
    <bike id="3", price "11100"> Roky </bike>
    </bikes>
    And now I am trying to load my XML into Flash lite.

    PHP Code:

    var headline_xml=new XML();
    headline_xml.ignoreWhite=true;
    text.wrap=true;
    headline_xml.onLoad = function(success) {
        if (
    successheadline_txt.text=this.firstChild.nodeName;
            else
            
    headline_txt.text="Error loading XML"
            
    }
    headline_xml.load("test.xml")



    var 
    text_xml=new XML();
    text_xml.ignoreWhite=true;
    wordWrapBoolean;

    text_xml.onLoad=function(success:Boolean):Void {
        if (
    successtext_txt.text=this.firstChild.childNodes[2].firstChild.nodeValue;
            else
            
    text_txt.text="Error loading XML"
    }

    texr_xml.load("test.xml")


    stop(); 
    It is not loading the text_xml. It cannot read "this.firstChild.childNodes[2].firstChild.nodeValue", it is saying: Undefined.

    What do I miss?

    And how is the word wrap working?

    Thanks a lot

    Noeff2002

  2. #2
    Registered User
    Join Date
    Oct 2009
    Posts
    20

    Re: Loading XML into Flash Lite

    word wrap:

    output_txt.wordWrap = true;

    found it

Similar Threads

  1. Loading external files in Web Runtime with Flash Lite
    By timbrooke@hotmail.com in forum [Archived] Flash Lite on Nokia Devices
    Replies: 19
    Last Post: 2010-09-18, 19:00
  2. Flash Lite and XML file
    By Noeff2002 in forum [Archived] Flash Lite on Nokia Devices
    Replies: 2
    Last Post: 2009-10-21, 09:39
  3. Flash CS3 + Flash Lite 1.x + dynamic text + embedded fonts = broken?
    By robchis in forum [Archived] Flash Lite on Nokia Devices
    Replies: 2
    Last Post: 2009-02-28, 13:04
  4. Flash Lite 3.0 Developer Edition doesn't support XML socket?
    By paipeng in forum [Archived] Flash Lite on Nokia Devices
    Replies: 5
    Last Post: 2008-01-03, 22:24

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×