Access to SimpleButton Kids

I have a Flash.fla file with SimpleButton. This SimpleButton is basically a button form with an icon on it (say, “pause” sybol). I want to change the color of this icon programmatically, but I cannot access it from AS.

I selected the icon and did "convert to symbol" and gave it an instance name. This worked for most of the other things I wanted to get, but it fails for this purpose. I searched for it in the debugger, but I just can't access the object.

So how to do this?

+3
source share
2 answers

If you are looking for state of the button, you can find them here: SimpleButton.upState, SimpleButton.overState, SimpleButton.downState.

, coulorTransform transform. : http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/geom/ColorTransform.html

EDIT: , DisplayObject, , . , .

, , , .

+2

, SimpleButton , . , SimpleButton, . , , .

0

Source: https://habr.com/ru/post/1711984/


All Articles