Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

How to change default docking of whiteboard toolbox.

Avatar

Level 1

I want to change default docking of whiteboard toolbox right now it is vertical I want to make it horizontal. I am able to place it horizontally via rotation property of whiteboard but it is not giving expected result.

Looking for suggestions

Thanks,
dRItesh

1 Reply

Avatar

Employee

hi Ritesh,

When you rotated the toolbar, it rotated as a whole object. To achieve what you want , you might have to rotate all the children inside of toolbar too.

                    var toolbar:UIComponent = swb.shapesToolBar;
                    toolbar.rotationZ = -90;
                    for (var i:int=0; i < toolbar.numChildren; i++)
                    {
                                    //Do some rotation
                                }

Thanks

Arunc