Hello
Please help me any one.
i am trying to send variable from scroll pane in Flash 8 to PHP
But i am not getting the value "undefined" :
the code as follows:
// create an xml object to hold the gigs
var shows_xml:XML = new XML();
// ignore whitespaces involved with the xml file
shows_xml.ignor eWhite = true;
// event handler for the XML object this function gets called
// when the xml object either gets the xml or fails
shows_xml.onLoa d = function(succes s) {
// if the file loades successfully
if (success) {
// call the parse function
// this is not necessary I just do it for clarity... makes it all easier to read
parseShows(show s_xml);
}
};
// load the shows.xml file
shows_xml.load( "shows.xml" );
// parse the shows_xml
function parseShows(_xml :XML):Void {
// hold an array of all the gigs.. this is an array of xml nodes..
var gigs:Array = _xml.firstChild .childNodes;
var big:Array = new Array();
// if there is actually data in the array continue
if (gigs.length>0) {
// for every gig do the following
for (var i = 0; i<gigs.length; i++) {
//this.row.t1.one .text+=gigs[i].attributes.pri ce;
//this.row.t1.one .text+="\n"+gig s[i].attributes.loc ation;
//this.row.t1.one .text+="\n"+gig s[i].attributes.dat e;
//this.row.t1.one .text+="\n"+gig s[i].attributes.tim e;
//this.row.t1.one .text+="\n"+gig s[i].attributes.ima ge+"\n";
//_root.row.pic.l oadMovie(gigs[i].attributes.ima ge);
this.t1.one.col or=black;
this.t1.duplica teMovieClip("t1 "+i, i);
this["t1"+i]._y = i*100;
//_root["t1"+i]._x=i*200;
this["t1"+i].one.text += "\n"+gigs[i].attributes.id;
this["t1"+i].one1.text += "\n"+gigs[i].attributes.pri ce;
this["t1"+i].one2.text += "\n"+gigs[i].attributes.loc ation;
this["t1"+i].one3.text += "\n"+gigs[i].attributes.dat e;
this["t1"+i].one4.text += "\n"+gigs[i].attributes.tim e;
this["t1"+i].onRelease = function() {
_root.ttlscn2.b ar2.homeb2.hoo. buy_con.gotoAnd Stop(20);
var xx2 = this.one.text;
var x1 =xx2;
_root.ttlscn2.b ar2.homeb2.hoo. buy_con.ww = xx2;
loadVariablesNu m("big.php?dd=" + x1 + "&var2=" + x1, "2", "POST");
trace(xx2);
};
this.t1.row.pic .duplicateMovie Clip("pic"+i, i);
this.t1.row["pic"+i]._y = i*100;
this.t1.row["pic"+i].loadMovie(gigs[i].attributes.ima ge);
this.t1.row["pic"+i].width = 75;
this.t1.row["pic"+i].height = 75;
}
}
}
here:
this["t1"+i].onRelease = function() {
_root.ttlscn2.b ar2.homeb2.hoo. buy_con.gotoAnd Stop(20);
var xx2 = this.one.text;
var x1 =xx2;
_root.ttlscn2.b ar2.homeb2.hoo. buy_con.ww = xx2;
loadVariablesNu m("big.php?dd=" + x1 + "&var2=" + x1, "2", "POST");
trace(xx2);
};
when i am going to send the variable "dd" to big.php
but in the big.php shows the value "undefined"
so please help me
thank you
sekhar
Please help me any one.
i am trying to send variable from scroll pane in Flash 8 to PHP
But i am not getting the value "undefined" :
the code as follows:
// create an xml object to hold the gigs
var shows_xml:XML = new XML();
// ignore whitespaces involved with the xml file
shows_xml.ignor eWhite = true;
// event handler for the XML object this function gets called
// when the xml object either gets the xml or fails
shows_xml.onLoa d = function(succes s) {
// if the file loades successfully
if (success) {
// call the parse function
// this is not necessary I just do it for clarity... makes it all easier to read
parseShows(show s_xml);
}
};
// load the shows.xml file
shows_xml.load( "shows.xml" );
// parse the shows_xml
function parseShows(_xml :XML):Void {
// hold an array of all the gigs.. this is an array of xml nodes..
var gigs:Array = _xml.firstChild .childNodes;
var big:Array = new Array();
// if there is actually data in the array continue
if (gigs.length>0) {
// for every gig do the following
for (var i = 0; i<gigs.length; i++) {
//this.row.t1.one .text+=gigs[i].attributes.pri ce;
//this.row.t1.one .text+="\n"+gig s[i].attributes.loc ation;
//this.row.t1.one .text+="\n"+gig s[i].attributes.dat e;
//this.row.t1.one .text+="\n"+gig s[i].attributes.tim e;
//this.row.t1.one .text+="\n"+gig s[i].attributes.ima ge+"\n";
//_root.row.pic.l oadMovie(gigs[i].attributes.ima ge);
this.t1.one.col or=black;
this.t1.duplica teMovieClip("t1 "+i, i);
this["t1"+i]._y = i*100;
//_root["t1"+i]._x=i*200;
this["t1"+i].one.text += "\n"+gigs[i].attributes.id;
this["t1"+i].one1.text += "\n"+gigs[i].attributes.pri ce;
this["t1"+i].one2.text += "\n"+gigs[i].attributes.loc ation;
this["t1"+i].one3.text += "\n"+gigs[i].attributes.dat e;
this["t1"+i].one4.text += "\n"+gigs[i].attributes.tim e;
this["t1"+i].onRelease = function() {
_root.ttlscn2.b ar2.homeb2.hoo. buy_con.gotoAnd Stop(20);
var xx2 = this.one.text;
var x1 =xx2;
_root.ttlscn2.b ar2.homeb2.hoo. buy_con.ww = xx2;
loadVariablesNu m("big.php?dd=" + x1 + "&var2=" + x1, "2", "POST");
trace(xx2);
};
this.t1.row.pic .duplicateMovie Clip("pic"+i, i);
this.t1.row["pic"+i]._y = i*100;
this.t1.row["pic"+i].loadMovie(gigs[i].attributes.ima ge);
this.t1.row["pic"+i].width = 75;
this.t1.row["pic"+i].height = 75;
}
}
}
here:
this["t1"+i].onRelease = function() {
_root.ttlscn2.b ar2.homeb2.hoo. buy_con.gotoAnd Stop(20);
var xx2 = this.one.text;
var x1 =xx2;
_root.ttlscn2.b ar2.homeb2.hoo. buy_con.ww = xx2;
loadVariablesNu m("big.php?dd=" + x1 + "&var2=" + x1, "2", "POST");
trace(xx2);
};
when i am going to send the variable "dd" to big.php
but in the big.php shows the value "undefined"
so please help me
thank you
sekhar
Comment