문제

I have this field of rectangles:

image

Any ideas how can draw it using available components like label or maybe rectangle?

I planned to use BorderContainer and to add labels with colored border but I am not sure if it is the best solution.

도움이 되었습니까?

해결책

It is definitely one of the cheapest ones. Under label you only have TextBase, but unless you're really pointing out for max performance, start with your original idea: Label with spark BorderContainer.

If you want to go a step further you would be using flash and draw the movie clip yourself. But at that point if you ask me, you're loosing the benefit of using Flex in the first place.

Hope this helps, go with your idea.

Cheers.

다른 팁

It depends on the number of items that will be shown on the screen.

I'd choose a custom UI component which can draw a square path for your and print TextField.

If the future of the application requires you to skin the buttons, then this is not the way you should be proceeding. Use labels if it needs heavy skinning, so you can take advantage of skin classes.

more on path and TextField

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top