verklighet
10-25-2010, 10:00 AM
Hey guys!
Is there a way to fetch the instance name of a movieclip with actionscript, and then apply that name to get a specific movieclip, instead of writing the movieclips name?
For example, a line like this;
Object(this.parent).clip3_mc.filters = ;
Is there a way to fetch the instance name like this;
Object(this.parent).[B]clip+grabInstancename+_mc.filters = [blur];
(where the bold letters are replaced with the proper terms)
I hope the question isn't too confusing.
I have this movieclip that I'd like to use multiple times and instead of making separate movieclips with the same actionscript copied into them, I'd rather use the unique instance names that they have.
Trying to be more convenient and practical I guess.
Thanks in advance guys!
Is there a way to fetch the instance name of a movieclip with actionscript, and then apply that name to get a specific movieclip, instead of writing the movieclips name?
For example, a line like this;
Object(this.parent).clip3_mc.filters = ;
Is there a way to fetch the instance name like this;
Object(this.parent).[B]clip+grabInstancename+_mc.filters = [blur];
(where the bold letters are replaced with the proper terms)
I hope the question isn't too confusing.
I have this movieclip that I'd like to use multiple times and instead of making separate movieclips with the same actionscript copied into them, I'd rather use the unique instance names that they have.
Trying to be more convenient and practical I guess.
Thanks in advance guys!