This is my problem.
I've got to duplicate movieclips dynamically. This happens with the following code:
This should duplicate the movieclip mc_dummy, but it doesn't. _root.database.aantal is a variable that i load from a PHP file thru
When I replace _root.database.aantal for a number (ie 3) in the while statement it does work. I tried converting _root.database.aantal to a number (Number(_root.database.aantal)) but that didn't work either...
Can anyone help me?
---------------
Visit Stray Cats Fan!! Go Cat!! Go!!
I've got to duplicate movieclips dynamically. This happens with the following code:
Code:
count = 0
while(count < _root.database.aantal) {
_root.mc_dummy.duplicateMovieClip("boxx"+count, count);
_root["boxx"+count]._x = _root.mc_dummy._x + (20 * count);
_root["boxx"+count]._y = _root.mc_dummy._y + (20 * count);
count += 1;
}
This should duplicate the movieclip mc_dummy, but it doesn't. _root.database.aantal is a variable that i load from a PHP file thru
Code:
loadVariables("database.php", "_root.database");
When I replace _root.database.aantal for a number (ie 3) in the while statement it does work. I tried converting _root.database.aantal to a number (Number(_root.database.aantal)) but that didn't work either...
Can anyone help me?
---------------
Visit Stray Cats Fan!! Go Cat!! Go!!