tilelist

Flex: Why are TileList images disappearing on drag?

南楼画角 提交于 2019-12-25 01:44:52
问题 I'm developing a Flex Air (desktop) application that loads images from the local filesystem into a TileList. The user will then be able to drag (copy) these images out of the list onto another control. I've finally got the images showing up correctly (and not disappearing after scrolling the TileList) but they seem to disappear from the TileList at the start of a drag operation. I come from a .NET background and am just learning AS3/Flex, so if you see me using any anti-patterns here, feel

how do I make a TileGroup layout that has the jaggy edge on top?

半腔热情 提交于 2019-12-20 06:41:43
问题 I have spark.components.TileGroup that contains buttons. I would like the buttons to appear like tabs on top of the ViewStack they serve At the moment, if I have 6 items in the TileList it lays it out as 2 rows with 4 items in the top tow and 2 in the bottom, so the jaggy edge is at the bottom [ITEM 1][ITEM 2][ITEM 3][ITEM 4] [ITEM 5][ITEM 6] I would like it to look like this, with the jaggy edge on top [ITEM 5][ITEM 6] [ITEM 1][ITEM 2][ITEM 3][ITEM 4] The order of the items is not important

Flex tilelist itemrender instance not match the dataprovider length

不羁的心 提交于 2019-12-13 19:40:18
问题 I use the custom itemrenderer for my Tilelist control. When I run my application. I found that the customitemrenderer's instance count was not equal to the dataprovider listItem count. There are only one item in the dataprovider list, but got 2 customitemrenderer instances. I count'd not find the reason. Can anybody help me. Many thanks! 回答1: For list based components, flex does this for efficiency. Imagine a dataprovider with 1000 rows, but the tile list only displays 9 at a time (3X3).

Load images to a TileList from Mysql using PHP and XML on Flash CS5

佐手、 提交于 2019-12-12 18:22:17
问题 I have a mysql database with a table containing PATH's to images. I want to load al the images to a TileList. Now i have this in PHP: <?PHP mysql_connect("localhost", "root", "root"); mysql_select_db("prototipo"); $result = mysql_query("select entretenimiento_id, e_nombre, e_imagen from entretenimiento"); echo "<?xml version=\"1.0\" ?><entretenimiento>"; while($row = mysql_fetch_assoc($result)) { echo "<e_nombre>" . $row["e_nombre"] . "</e_nombre>"; echo "<e_imagen>" . $row["e_imagen"] . "</e

How to handle Unhandled #2044 errors from Flash tilelist when changing dataprovider?

孤街浪徒 提交于 2019-12-08 12:45:33
问题 I have a tilelist component using a custom ImageCell based item renderer. I know that at times some of the images it is trying to retrieve will not be found and I am able to handle this via an IEOrror listener on the custom ImageCell loader. However, if I set the data provider, then it is changed before all images have completed their loading or error process, the flash debug player throws up an unhandled #2044 error in firefox stating that an image could not be found. In opera with the debug

how do I make a TileGroup layout that has the jaggy edge on top?

穿精又带淫゛_ 提交于 2019-12-02 09:20:35
I have spark.components.TileGroup that contains buttons. I would like the buttons to appear like tabs on top of the ViewStack they serve At the moment, if I have 6 items in the TileList it lays it out as 2 rows with 4 items in the top tow and 2 in the bottom, so the jaggy edge is at the bottom [ITEM 1][ITEM 2][ITEM 3][ITEM 4] [ITEM 5][ITEM 6] I would like it to look like this, with the jaggy edge on top [ITEM 5][ITEM 6] [ITEM 1][ITEM 2][ITEM 3][ITEM 4] The order of the items is not important How would I do this? Define a new layout that lays the tiles out the way you want. some links to get