This content has been marked as final. Show 4 replies
check the watch() function.
I'm pretty sure watch() can't be used for the built in Flash class's properties, e.g. _x, _visible, _alpha. At least I haven't found a way.
But you can make your own "getter/setters" using watch() that then control those properties. So make your own x, visible, or alpha property. Set those with your code and and have the watch function set the _x, _visible, and _alpha.
Hopefully this example will help. I'm using the alpha so that you can easily see what happens. Put two simple clips on the stage with instance names of clip1 and clip2.
you're correct rr. wb will need to use a custom property of a listener object to control the visibility of his/her button.
I have no idea where my code went! And I didn't save it. Sorry. If you need help post back.