I am trying to get an input text field to change a variable I have set up and then make a bunch of the movie clips I have set up for the variable.
here is the code I want to change
var blue:MovieClip = new Blue ;
I need to have Blue change to what is in the input field if that’s possible
As far as I know, you can’t create a new class name based on a string (i.e. the value of a text field).
You’d have to create your classes initially:
Then use a switch to say:
The biggest issue here is that a text input can take any value. You might be better off using a series of radio buttons that have predefined values. Then you those with your switch.