Bonjour,
Je suis en train de modifier un script flash pour le rendre dynamique.
Je récupère une variable php indiquant le nom d'un fichier xml.
Puis j'aimerai loader ce fichier xml en utilisant la fonction loadExternalXml.
Cette fonction marche pas de problème.
Par contre quand je l'appelle depuis le onload elle repond pas....
Quelqu'un pourrait il m'aider.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 function FFlippingBookClass() { ... this._cache = new FFlippingBookCache(this._broker, this.usePreloader, this.cachePages, this.loadOnDemand, this.pageBack); if (this.extXML != "") { //trace(this.extXML); this._cache.loadExternalXML(this.extXML); } else { my_lv = new LoadVars(); my_lv.onLoad = function(success) { if(success){ trace("livret.php loaded"); trace(my_lv.titreVar); this._cache.loadExternalXML(my_lv.titreVar); } else{ trace("livret.php loading problem"); } } my_lv.load("http://localhost/labels/livret.php"); } }
Merci.
Gyom
Partager