ScrollingLabel extends Label

I have always liked the way that the Apple iPod scrolls labels that are too long to be read. Flex components have tooltips which do this job admirably but in the interests of getting my head around extending Flex components I thought this an easy yet useful experiment.

View it here

Source here

Question: I want the "truncateToFit" boolean (inherited from mx.controls.Label) to false in my ScrollingLabel constructor because I never want to clip the text and add the dots to it. How do I set up my component do that and no longer show the "truncateToFit" in code hints in Flex Builder. It is irrelevant what the developer wants to set it to because I always set it to false.

It just occurs to me that this may be a sign that I am doing this all wrong.

Comments