A Flash Developer Resource Site

Results 1 to 11 of 11

Thread: XML.onLoad(success) doesn't work like it used to?

Threaded View

  1. #1
    ·»¤«· >flashl!ght<'s Avatar
    Join Date
    Jun 2003
    Posts
    746

    XML.onLoad(success) doesn't work like it used to?

    taken from a Flash MX project, works in SA player 6, MX IDE, IE player 7, but not in a browser with player 8:
    code:

    //SITE DATA LOAD
    _global.siteXML = new XML();
    XML.prototype.ignoreWhite = true;
    siteXML.load("site.xml");
    siteXML.onLoad = function(success){
    if(success){
    //snipped
    }else{ //if XML failed to load, show a error message textfield
    _root.createTextField("txt",1,0,0,100,20);
    txt.text = "XML load failed.";
    }
    }



    The textfield never shows up in F8...

    What's going on? It's just a simple onLoad(success) method...

    I'm on a Pentium III / XP, tried Mozilla, and IE doesn't have F8 installed(and it works on IE, player 7)
    Last edited by >flashl!ght<; 09-06-2005 at 11:32 AM.
    >flashl!ght<
    All the normal names were taken.
    Ron Paul was right.

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