1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
| import com.robertpenner.easing.*
import mx.transitions.Tween; // on importe la classe Tween
import mx.transitions.easing.*; // on importe les classe easing pour les effets visuels.
//décommenté pour aficher ce petit texte:
//com.text = "il devrai s'écrire un truc";
var lv:LoadVars = new LoadVars();
var photo;
//création de la fonction
lv.onLoad = function(success:Boolean) {
if (success == true) {
//recuperation de(s) variable(s) php.
trace("l'image : "+this.imageflash);
//pour voir si la variable est bien chargée.
photo = lv.imageflash;
trace("la variable : "+photo);
_root.loadMovie(this.imageflash, "newclip", "GET");
} else {
trace("Erreur de chargement");
}
};
lv.onData = function(src:String) {
if (src == undefined) {
lv.onLoad(false);
trace("ERREUR");
} else {
trace("src="+src);
lv.decode(src);
lv.loaded = true;
lv.onLoad(true);
}
newclip.swapDepths(2) ;
trace(_root.newclip.getDepth());
};
lv.load("http://localhost:8888/flashgalerie/spgm147modif/syst_transf.php", "GET");
interface.swapDepths(3) ;
trace(this.interface.getDepth()); |
Partager