<mx:Tree id = " myTree dataProvider = "myDataProvider" cornerRadius = "7"/>
If to set radius of a framework of component Tree - that instead of
roundings off of a framework you will see absent corners
All the matter is that the object myTree["border_mc"] lays at the very
bottom and elements of a tree block it{him}

To solve a problem standard opportunities flex it is impossible - or you
will not have an illumination nodes a tree, or there will be no rounding off
of a component
It is possible to draw again a mask of a component myTree["mask_mc"], but
you will achieve a rounding off from all corners, except for top left - the
problem in control point at a mask (top left corner) - well and to load
application program redraw mask too not especially would be desirable
The output{exit} is simple - to move border on the uppermost layer, to make
backgroundAlpha = "0" what there was no overlapping{blocking} a component by
color of a background, and to make more thickly border borderThickness = "2"
that edges{territories} of elements of a tree would not be visible.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"; initialize="
initApp()" frameRate="21">
<mx:Script>
<![CDATA[
public function initApp()
{
myTree["border_mc"].swapDepths(myTree.getNextHighestDepth());
} 
]]>
</mx:Script>
<mx:Tree id="myTree" 
dataProvider="{myDataProvider}" 
cornerRadius="7" 
backgroundAlpha="100" 
borderStyle="solid" 
borderThickness="2"/>
</mx:Application>

Basically it is possible to finish program corners of a component, without
change of the component, but whether the constant portrayal loading loading
CPU is necessary to your application? Likely if only for the sake of a
background of a component.
Success!

[forgive for my bad english]





Reply via email to