Question

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.

Was it helpful?

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.

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top