I know how to read what the instance name of an object is and I need to be able to set the instance name of an object with actionscript. Here’s why:
I’m creating a scrolling list of buttons that stack on top of eachother. The number of buttons changes. One day there could be 50, another 30, etc… The buttons are created at run time using actionscript and I need to be able to set the button instance name at that time. I’ll be doing this in a loop so the button names will be 1,2,3,4, etc… Not that it matters, but the reason these are done sequentially is because the instance name is used as an integer value to be passed to a function that uses the pointer to locate correlating information in an array.
The number of buttons will be variable and will change from day to day so this is why I need to assign instance names on the fly.
In summary: How do you set an instance name of an object (button, movie clip) with actionscript.
Thanks,
Joshua