PDA

View Full Version : assign instance names dynamically ?


spoonyg
01-04-2002, 05:46 PM
Is it possible to assign an instance name to a movieclip
from a radio button inside a generator object?

I have a list that generates radio buttons with numbers:
Black Number Text with a invisible button:
1 //invisible button: on(release){
//_root.myVar = "{value}";
//}
2 // same as above.
3 // same as above.
4 // same as above.

I would like to click on a number and assign an instance
name to a mc that has the variable myVar.

The idea is that the user clicks on the black number 2 and
that black 2 (or a mc with myVar) becomes a red 2

any advice would be great.
thanks.

Jesse
01-05-2002, 10:28 AM
Erg. I know nothing about Geny but you can change the instance name of an MC simply by using:
this._name = "NewName";
Help any?