This content has been marked as final. Show 4 replies
You don't want to pass it as a string but rather as a movieclip tickBox(myName:MovieClip)
and then call it by saying tickBox(this._name);
i think following code will help you... you do it with one line code rather than wrting so much... ie...
movieClip._visible = !movieClip._visible // This is toggle
please see the below code... it should work... but i dont know why are you using string?
Thanks for the help cinemaguy and Marghoob Sulemaan!
Marghoob i am using a string as i have 2 reports each with several tick boxes. 1 of these reports is being linked from the library into a scroll pane component and the other is to display the users ticks and no ticks for display only.
I am using strings so that i can simpy reference the 2nd report's boxes by using the same function as i am for the 1st report just by adding '_1' onto the end of the instance name.
Marghoob Sulemaan thank you so much for this, i have never used eval before and im not 100% what it is, but i have printed off the help and so i will study!!
thanks again, Seasons Greetings!!