Hello i would like to do one-side border around to iteam.
I cant find out any property in flex/as reference how to apply stroke only to one side of element.
would be glad to hear any tip from you,
Thanks
jbeynar
Hi beynar,
You can use the borderSides property to specify the border sides...as shown below:
<mx:Canvas width="400" height="400" borderSides="[left,right,top,bottom]" />
<mx:Canvas width="400" height="400" borderSides="[left,right,top]" />
<mx:Canvas width="400" height="400" borderSides="[left,right]" />
<mx:Canvas width="400" height="400" borderSides="[left,right]" />
You can apply borders to any of the one side...
If this post answers your question or helps, please kindly mark it as such.
Thanks,
Bhasker Chari
Thanks for replay @BhaskerChari
Well I put this code in my mxml file and fb output this error:
The style 'borderSides' is only supported by type 'mx.containers.Canvas' with the theme(s) 'halo'.
I'm using Flex SDK 4
also code assist didn't propose suggest like 'borderSides'
looking forward to yours replay.
Looks like you are using Flex 4.
If it is the case, try the following:
.VBoxBorder {
borderSkin: ClassReference("mx.skins.halo.HaloBorder");
borderStyle: solid;
borderSides: "right bottom";
}
The trick is to set proper border skin, doc's are lying, halo skin is not the default skin, you have to set it explicitly.
And yes, flex doc's are extremely poorly written.
Hope this helps.
North America
Europe, Middle East and Africa
Asia Pacific
Copyright © 2012 Adobe Systems Incorporated. All rights reserved.
Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy (updated 07-14-2009).