No, I've just tried using my browser with the SWF embedded, and doesn't work either. It's not anything about the Flash environment then, because it happens in HTML as well.
Printable View
No, I've just tried using my browser with the SWF embedded, and doesn't work either. It's not anything about the Flash environment then, because it happens in HTML as well.
problem definitely solved! :) :) or so I believe.
The "mystery" was here:
In the last line, I was calling directly news.php without forcing it to be interpreted by PHP. By adding http://localhost/...mypath.../ to the path of function XML.load(), I get, AT LAST hehe, what I intended to do.PHP Code:news = new XML();
news.ignoreWhite = true;
news.onLoad = function(success) {
if (success) {
trace("NEWS: " + news);
myText.text = "NEWS: " + news.firstChild;
} else trace("Couldn't load XML data");
// Actions to place news...
};
// Although news.php is in the same folder as the flash movie, I have to call it using the http protocol so as to force news.php to be interpreted by PHP engine.
news.load("http://localhost/...mypath.../news.php");
well thatīs half of the solution,- of course one would need to fix that if itīs going to be uploaded- but thx for that info.
I guess I myself will further on write a method that switches from local to online with a prefix on all loaded php thingies.