Sep 16, 2005 #1 starblood Technical User Feb 28, 2001 63 GB If I have two lines of code: PickClip = Math.round(Math.random()*5) + 1; _root.countingvalue = /swing5:variable_counter; The second line works as it is but how do I change the syntax so that "5" in the path is replaced with the random number "PickClip"?
If I have two lines of code: PickClip = Math.round(Math.random()*5) + 1; _root.countingvalue = /swing5:variable_counter; The second line works as it is but how do I change the syntax so that "5" in the path is replaced with the random number "PickClip"?
Sep 16, 2005 Thread starter #2 starblood Technical User Feb 28, 2001 63 GB It's OK - I played around and got it to work: _root.countingvalue = _level0['swing'+ PickClip].variable_counter; Upvote 0 Downvote
It's OK - I played around and got it to work: _root.countingvalue = _level0['swing'+ PickClip].variable_counter;