hai friends.
iam getting mysql values from database using getcardimages.php
and iam getting the values. but problem is how to store them in flash inorder to send them back to php?
i wrote the below code.
iam storing the mysql “cardID” column values in “containerThree._name” and iam able to send it back to updatecards.php problem is iam storing the mysql “cardsetID” column values in “_global.cardsetid” here iam unable to send this value back to updatecards.php.
what is the solution can any one please explain…
Quote:
var lvSend = new LoadVars();
var lvReceive2 = new LoadVars();
var lvReceive = new LoadVars();
lvSend.sendAndLoad(“http://192.168.1.9:81/projects/khelorummy/user/getcardimages.php",lvReceive,"post”);
lvReceive.root = this;
var mcLoaderThree:MovieClipLoader = new MovieClipLoader();
mcLoaderThree.addListener(this);
_global.cardsetid;
lvReceive.onLoad = function(bSuccess) {
for (var i = 1; i<=this.n; i++) {
var containerThree:MovieClip = createEmptyMovieClip(“containerThree”+i, i);
containerThree._name = this[“cardID”+i];
_global.cardsetid = this[“cardsetID”+i];
mcLoaderThree.loadClip(“http://192.168.1.9:81/projects/khelorummy/cards/"+this[“label”+i]+".gif”, containerThree);
containerThree._x = 20*i;
containerThree._y = 10;
}
}
function onLoadInit(mc:MovieClip) {
mc.onPress = function() {
this.startDrag();
this.swapDepths(_root.getNextHighestDepth()+1);
xstart = this._x;
ystart = this._y;
}
mc.onRelease = function() {
this.stopDrag();
var imgname = this._name;
var cards = _global.cardsetid;
xstart = this._x;
ystart = this._y;
lvReceive2.imgname = imgname;
lvReceice2.cards = cards;
trace(lvReceive2.cards);
lvReceive2.sendAndLoad(“http://192.168.1.9:81/projects/khelorummy/user/updatecards.php”, lvReceive2,“post”);
}
}
lvReceive2.onLoad = function() {
trace(“after:”+this.inssuccess);
}