Copy link to clipboard
Copied
hallo!
so, i have this code
public class TextboxXML extends Sprite
{
[...]
//XML
private var xml_eintraege:XML;
private var xml_ausgabe:URLLoader;
public function TextboxXML(formate:Array, format_wert:int, x_wert:int, y_wert:int, weit_wert:int, hoch_wert:int)
{
ding = [x_wert, y_wert, weit_wert, hoch_wert];
//XML LADEN
var urlRequest:URLRequest=new URLRequest("http://[...]/neu_gipfelstuermer_daten_002.xml.php");
xml_ausgabe=new URLLoader;
xml_ausgabe.addEventListener(Event.COMPLETE,Laden_ende);
xml_ausgabe.load(urlRequest);
}
private function Laden_ende(e:Event)
{
xml_eintraege=new XML(xml_ausgabe.data);
[...]
for testing, i've an absolute url.
well, i want to get the xml-data. the xml will be generatet out of a php-function.
testing it out of flash by "testing the movie" (apple+return), the php will be parsed and it works. when i test it on my lokal server, the same smf i mean, nothing happens. so, does anybody know why it is so and can help me fix this problem?
Copy link to clipboard
Copied
If the php file exists on a different server than the one you're testing the swf from, you need a crossdomain policy file on the server that's hosting the php file.
http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html
Copy link to clipboard
Copied
yep, that was my thinking, too. but there was no error-massage in the browser and so i wonder why - hm, later i found out that the php-xml i've become had some incorrect lines confusing my swf.
but thanks!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now