Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loaded variable is ignored :(

Status
Not open for further replies.

Bimmel

Programmer
Feb 15, 2002
19
DE
I loaded a variabel from a URL with HTTP.
It can be displayed in a dynamic text field,
but when I execute this script nothings happens.

loadVariablesNum ("tos_scores.php?method=output", 0);
// 'row_punkte3' = var correctly loaded , above a value of 0
WORSTSCORE = Number(row_punkte3);
if ( WORSTSCORE > 0 ) {
stop();
}

But it still plays...

 
Could be because your logic:

WORSTSCORE = Number(row_punkte3);
if ( WORSTSCORE > 0 ) {
stop();
}

runs through immediately after the loadVariables, and there isn't any time to set the value to anything. Try moving your above code to a movieclip(data) event.

Kevin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top