Can't figure this one out...
...this works
Code:on(release) { var TempMusicName1 = "slammal"; currentSong++; VarVar = "TempMusicName"; VarVar += currentSong.toString(); PlayVar = this[VarVar]; trace(PlayVar); //result slammal }
...this doesn't
PHP Code://PHP file "GetSongNames.php"
<?PHP echo 'Name0=slammal&Name1=whatever'; ?>My only idea is that it doesn't like the "." in "myVars.Name" ???Code:// actionscript 2 // frame action to load variables myVars = new LoadVars(); myVars.load("GetSongNames.php"); // button action on(release) { currentSong++; VarVar = "myVars.Name"; VarVar += currentSong.toString(); PlayVar = this[VarVar]; trace(PlayVar); //result undefined???? }
How can I get around this?


LinkBack URL
About LinkBacks
Reply With Quote

