Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-28-2011, 04:26 PM   #1
mth_satan
Registered User
 
Join Date: Jun 2011
Posts: 7
Unhappy [AS2] high score help

this is a high scroe code that get result from mysql by a php file (get_score2.php) and view the result in dynamic text boxes n0,n2,...,n5 for player name and s0,s1,s2,...,s5 for scores :

ActionScript Code:
var lowHighScore = 0; myData = new LoadVars(); myData.load("get_score2.php"); myData.onLoad = function(success) {     if(success) {         for(var i=0; i<this['count']; i++) {             _root["n"+i].text = this['player']+i;             _root["s"+i].text = this['winpot']+i;                         if(i==6) {                 lowHighScore = s6.text;             }                          }     }     else     {         trace("ERROR Loading");     }     }

i have renamed the php file and i still get the same result in the dynamic text boxes _level0.n0 _level0.s0 _level0.n1 _level0.s1 ......

the problem is in action script can u help me please
mth_satan is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:42 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.