Loadvars Undefined?


i’m having few problems actionscript. when test swf file without being embedded in html file (just testing in flash itself) formats number perfectly. when place file in html page returns ‘undefined’ response variable getting remote server.

the actionscript placed in first frame of movie. , follows:

function writepledges() {
txtpledges.text=container.totalpledges;
}
function writepledgesxx(){
var ipledges=parseint(container.totalpledges);
if (ipledges==null || isnan(ipledges)) {
txtpledges.text="0";
}
else {
txtpledges.text=ipledges;
if (ipledges>=2000 && ipledges<3000) {
gotoandplay("num2000");
}
if (ipledges>=3000 && ipledges<4000) {
gotoandplay("num3000");
}
if (ipledges>=4000 && ipledges<5000) {
gotoandplay("num4000");
}
if (ipledges>=5000 && ipledges<6000) {
gotoandplay("num5000");
}
if (ipledges>=6000 && ipledges<7000) {
gotoandplay("num6000");
}
if (ipledges>=7000 && ipledges<8000) {
gotoandplay("num7000");
}
if (ipledges>=8000 && ipledges<9000) {
gotoandplay("num8000");
}
if (ipledges>=9000 && ipledges<10000) {
gotoandplay("num9000");
}
if (ipledges>=10000) {
gotoandplay("num10000");
}
}
}
var container:loadvars = new loadvars();
container.load(" http://arieluk.ariel.info:3037/cgibin/nautilus/nautiluspledge.pl?gettotal=true");
container.onload = writepledges;


the swf hosted @ different place getting variable.

any great. thanks.

marco
text



More discussions in ActionScript 1 and 2


adobe

Comments

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support