The following example shows how you can get the number of lines in a Flex TextArea control by using the getTextField() method (in the mx_internal namespace) and the numLines property.
Full code after the jump.
Continue reading ‘Determining the number of lines in a TextArea control in Flex’
The following example shows how you can assign an HTML formatted string to a Panel container’s status text field using the getStatusTextField() method in the mx_internal namespace.
Full code after the jump.
Continue reading ‘Adding links to a Panel container’s status text in Flex’
The following example shows how you can access the close button in a Flex TitleWindow container by using the closeButton property in the mx_internal namespace.
Full code after the jump.
Continue reading ‘Accessing a TitleWindow container’s internal close button in Flex’
I posted this in response to a forum question the other day and thought I’d share the code here.
The following example shows you how you can clear a VideoDisplay control’s content using the videoPlayer property in the mx_internal namespace.
Full code after the jump.
Continue reading ‘Clearing the video on a Flex VideoDisplay control’
Ever wonder how you could create an Alert control but make the text be non-selectable (without subclassing the Alert control, that is)? Well, here’s how.
By using the hidden powers of the “mx_internal” namespace, you can access the Alert control’s internal alertForm property (an AlertForm object — for more information see the AlertForm.as class in the mx.controls.alertClasses package) and from there modify the internal textField property (a UITextField object), and set the selectable property to false.
Taa-daa! Non-selectable text.
Full code after the jump.
Continue reading ‘Creating an Alert control with non-selectable text’
Similar to the previous post where we covered a couple of techniques for embedding an icon into a Button control, this post explores embedding an icon into an Alert control. An icon in an Alert control appears to the left of the alert’s message text, but the second example will show how you can easily tweak the code to also add icons to the nested buttons controls within the alert dialog itself. See the full code after the jump.
Continue reading ‘Setting an icon in an Alert control’