The following example shows how you can modify the visibility and alpha of the white box in the lower-right corner of an MX Container in Flex when both the horizontal and vertical scroll bars are visible by using the rawChildren
property and getChildByName()
method.
Tag Archives: visible
Determining if the scroll bars are visible in a Spark Scroller container in Flex 4
The following example shows how you can determine if the vertical and/or horizontal scroll bars are visible on a Spark Scroller container in Flex 4 by checking the verticalScrollBar
or horizontalScrollBar
skin part’s Boolean visible
property.
Continue reading Determining if the scroll bars are visible in a Spark Scroller container in Flex 4
Hiding the text field on an MX DateField control in Flex 3
The following example shows how you can hide the text input field on the MX DateField control in Flex 3 by setting the Boolean visible
and includeInLayout
properties on the internal text field (using the getTextField()
method in the mx_internal
namespace).
Continue reading Hiding the text field on an MX DateField control in Flex 3
Pausing a video in the Spark VideoPlayer control when it is removed from the display list in Flex 4
The following example shows how you can pause a Spark VideoPlayer control when it is hidden or removed from the display list in Flex 4 by setting the Boolean pauseWhenHidden
property.
Full code after the jump.
Disabling dividers in an HDividedBox container in Flex
The following example shows how you can disable the dividers in a Flex HDividedBox container by using the numDividers
property, getDividerAt()
method, and setting the visible
property.
Full code after the jump.
Continue reading Disabling dividers in an HDividedBox container in Flex
Toggling form item visibility in a Form container in Flex
The following example shows how you can toggle FormItem containers in a Flex Form container by setting the includeInLayout
and visible
properties.
Full code after the jump.
Continue reading Toggling form item visibility in a Form container in Flex
Hiding nested controls in a Flex RichTextEditor control
The following example shows you how you can toggle the RichTextEditor control’s nested link text input by setting both the visible
and includeInLayout
properties of the control.
Full code after the jump.
Continue reading Hiding nested controls in a Flex RichTextEditor control
Triggering effects when a container’s visibility is changed
The following example shows you how you can trigger effects when the visible
property changes on a Flex container or control by using the hideEffect
and showEffect
effects.
Full code after the jump.
Continue reading Triggering effects when a container’s visibility is changed
Toggling a Flex container’s visibility
The following example shows a pretty crude method for toggling a container’s visibility and removing it from the Flex application layout. Mind you, this probably isn’t the preferred/recommended method of doing this (I imagine using states would be a lot nicer/cleaner) but hey, I’ll have to save that method up for another entry.
Full code after the jump.