Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


Share this Page URL
Help

Chapter 9: Controls > SWFLoader control - Pg. 266

274 CHAPTER 9 In this example, the data tip function prepends the data tip text with the String "Current value:". You can modify this example to insert a dollar sign ($) prefix on the data tip for a slider that controls the price of an item. Keyboard navigation The HSlider and VSlider controls have the following keyboard navigation features when the slider control has focus: Key Left Arrow Right Arrow Home End Up Arrow Down Arrow Page Down Page Up Description Decrement the value of an HSlider control by 1 snap interval or, if you do not specify a snap interval, by 1 pixel. Increment the value of a HSlider control by 1 snap interval or, if you do not specify a snap interval, by 1 pixel. Moves the thumb of an HSlider control to its minimum value. Moves the thumb of an HSlider control to its maximum value. Increment the value of an VSlider control by 1 snap interval or, if you do not specify a snap interval, by 1 pixel. Decrement the value of a VSlider control by 1 snap interval or, if you do not specify a snap interval, by 1 pixel. Moves the thumb of a VSlider control to its minimum value. Moves the thumb of a VSlider control to its maximum value. SWFLoader control The SWFLoader control lets you load one Flex application into another Flex application as a SWF file. It has properties that let you scale its contents. It can also resize itself to fit the size of its contents. By default, content is scaled to fit the size of the SWFLoader control. The SWFLoader control can also load content on demand programmatically, and monitor the progress of a load operation. The SWFLoader control also lets you load the contents of a GIF, JPEG, PNG, SVG, or SWF file into your appli- cation, where the SWF file does not contain a Flex application, or a ByteArray representing a SWF, GIF, JPEG, or PNG. Note: For more information on the Image control, see "Image control" on page 278. For more information on using the SWFLoader control to load a Flex application, see "Externalizing application classes" on page 277. Note: Flex also includes the Image control for loading GIF, JPEG, PNG, SVG, or SWF files. You typically use the Image control for loading static graphic files and SWF files, and use the SWFLoader control for loading Flex applications as SWF files. The Image control is also designed to be used in custom cell renderers and item editors.