XML output in Flash

Out of context: Reply #9

  • Started
  • Last post
  • 12 Responses
  • robert0

    1. Create a dynamic text field multilined, selectable. Give it var = output

    2. insert code like this into 1st frame of movie.

    XML.ignoreWhite = true;
    recipeXML = new XML();
    recipeXML.onLoad = function (success) {
    if (success) {
    output += "-If Zero the XML is valid = "+this.status+"
    ";
    output += "-This is my XML document:
    ";
    output += "
    ";
    output += this.toString();
    } else {
    output += "YOUR code or LINK sucks";
    }
    }
    recipeXML.load ("YourName.xml");

    This will output all you XML, depending on your XML formatting you might see it as all one line or branches.

    Good Luck.

View thread