flash script emergency
flash script emergency
Out of context: Reply #3
- Started
- Last post
- 5 Responses
- jkosoy0
you may want to give the movie clips a naming convention as well, if you haven't already.
var i;
var number_of_clips = 3;for(i=1;i<=number_of_clips;i++)
{
clipToDup.duplicateMovieClip("ne... + i, i);
}then when you do the trace above, some simple string parsing will allow you to get a number (1,2 or 3 in this case) thats much easier to work with in AS.
_global.current_mc = 0;
on(release)
{
var this_mc_num;this_mc_num = this._name.split("_");
this_mc_num = Number(this_mc_num[this_mc_num.l...
trace(this_mc_num);
}