Tag Archive for 'tilelist'

29
Mar

Dynamically loading XML files using the HTTPService tag

In previous examples, “Creating a simple image gallery with the Flex TileList control” and “Creating a simple image gallery with the Flex HorizontalList control”, we saw how you could create a simple image gallery using the TileList and HorizontalList controls.

The following example shows how you can load XML files using the HTTPService tag so that you can dynamically load different galleries.

Full code after the jump.

Continue reading ‘Dynamically loading XML files using the HTTPService tag’

23
Mar

Setting the layout direction of a TileList control in Flex

The following example shows how you can toggle the item layout direction of the Flex TileList control by setting the direction property to “horizontal” or “vertical”.

Full code after the jump.

Continue reading ‘Setting the layout direction of a TileList control in Flex’

16
Mar

Changing live dragging on a TileList control in Flex

The following example shows how you can enable or disable live dragging on a Flex TileList control by setting the liveDragging property.

Full code after the jump.

Continue reading ‘Changing live dragging on a TileList control in Flex’

08
Mar

Creating a simple image gallery with the Flex TileList control

Similar to a previous example, “Creating a simple image gallery with the Flex HorizontalList control”, the following example shows how you can create a simple photo gallery in Flex using the TileList control, Image control, and the PopUpManager class.

Full code after the jump.

Continue reading ‘Creating a simple image gallery with the Flex TileList control’

28
Sep

Using the Flex TileList class’s new dataChangeEffect style in Flex 3

The following example shows how you can add nice list effects when items are reordered in a TileList control.

For more information on the new List and Data effects, see “Flex 3:Feature Introductions: List and Data Effects”.

Full code after the jump.

Continue reading ‘Using the Flex TileList class’s new dataChangeEffect style in Flex 3′

03
Aug

Duplicating images using the Bitmap and BitmapData classes

In a previous post (Finding a pixel’s color value using the Bitmap classes and getPixel()) we looked at copying an image so we could build a simple color-picker like app. In this post, we explore duplicating a loaded image and copying it into a TileList control. Each time you press the “Copy image” button, a new instance of the source image is created and added to the TileList control’s data provider.

As an added bonus, we also create a custom item renderer consisting of an HBox container, Image control, and a Label control.

Full code after the jump.

Continue reading ‘Duplicating images using the Bitmap and BitmapData classes’