-
Ok, I've been experimenting with XML and Flash for about a week and found nothing but frustration. I can load variables from a local text file, but when I try to load an XML file it doesn't seem to be loading.
Here is a copy of the code, very simple:
// Frame 1
myDocument = new XML();
myDocument.load("race.xml");
for (i=0; i<100; i++); {
if (myDocument.loaded) {
var test = "Document Loaded";
i = 101;
} else {
var test = "Document has not loaded yet!";
}
}
// Frame 2
var test2 = "Document Did Not Load!";
stop();
Any jump out at anyone? The xml file is in the same folder as the flash movie. But doesn't seem to be working for me. It seems simple enough, but something isn't right.
Any help would be greatly appreciated.
-Joe
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
|