Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 29-09-2005, 08:40   #1 (permalink)
ethno-x-club.com
 
Registriert seit: Nov 2002
Beiträge: 72
Exclamation XML läd nicht bei Aufruf des swf aus anderer Anwendung

Hallo,

ein merkwürdiges Phänomen.
Ich lade eine XML datei ganz normal in ein swf.

textXML_Obj = new XML();
textXML_Obj.ignoreWhite = true;
textXML_Obj.onLoad = textParser;
textXML_Obj.load("Text.xml");
function textParser(loaded) {
if (loaded) {
....
....
}
}

funktioniert auch alles in der Entwicklungsumgebung, im Standalone Player, im Browser.
AAAAber es funktioniert nicht, wenn ich das swf von einem C++ Programm aufrufe, alles lokal - kein Web. "loaded" bleibt immer false.
Die Dateien liegen alle nebeneinander im Verzeichnis.

Hat jemand eine Idee - ich habe keine mehr.


Grüße

Geändert von chillout (29-09-2005 um 08:41 Uhr)
chillout ist offline   Mit Zitat antworten
Alt 29-09-2005, 10:04   #2 (permalink)
ethno-x-club.com
 
Registriert seit: Nov 2002
Beiträge: 72
Ist ein Pfadproblem.
Wenn ich die Datei über c++ und über das swf im Browser anzeigen will, kommt :
Während des Versuches, den URL NONE://127.0.0.1:8888http://text.xml/ zu laden

obwohl es auf C: liegt.
Wenn ich es hardcodiere
textXML_Obj.load("c:/Text.xml"); funzt es.
Ich hole mir den Pfad über this._url (danke an sonar für den Tipp), baue ihn um und peng ... ich hoffe es geht.
Dann mal ran.

Grüße

Geändert von chillout (29-09-2005 um 10:11 Uhr)
chillout ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind an
Pingbacks sind an
Refbacks sind an



Alle Zeitangaben in WEZ +1. Es ist jetzt 13:57 Uhr.

Domains, Webhosting & Vserver von Host Europe
Unterstützt das Flashforum!
Adobe User Group


Copyright ©1999 – 2012 Marc Thiele