The following example shows how you can determine the current security sandbox type for a Flex application by checking the static, read-only Security.sandboxType property. You can also check for specific sandbox types by comparing the sandboxType property to the static constants in the Security class (LOCAL_TRUSTED, LOCAL_WITH_FILE, LOCAL_WITH_NETWORK, and REMOTE).
Full code after the jump.
Continue reading ‘Determining a Flex application’s current security sandbox type’
The following example shows how you can change the alignment of text within a ComboBox control.
Full code after the jump.
Continue reading ‘Changing the text alignment in a Flex ComboBox control’
The following example shows how you can limit the amount of text a user can enter into a TextArea control by using the maxChars property.
Full code after the jump.
Continue reading ‘Limiting the amount of text you can enter into a Flex TextArea control’
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’