Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

URLRequest and php-xml's

Explorer ,
Jul 30, 2009 Jul 30, 2009

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?

TOPICS
ActionScript
607
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 30, 2009 Jul 30, 2009

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 01, 2009 Aug 01, 2009
LATEST

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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines