Ou et comment placer mon Hidden field
Salut,
J'ai créé une gallerie d'image, je voudrais pouvoir récupére l'ID de la gallery quand un utilisateur click dessus. En faite je ne sais pas ou je peux stocker l'ID de la gallerie. En HTML je l'aurai mise dans un champ INPUT HIDDEN mais comment faire en MXML.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
<mx:TileList id="tileList"
dataProvider="{xmlListColl}"
itemRenderer="CustomItemRendererx"
columnCount="4"
columnWidth="125"
rowCount="2"
rowHeight="100"
themeColor="haloSilver"
verticalScrollPolicy="off"
itemClick="tileList_openGallery(event);"
width="892"
height="610"
x="0"/> |
J'affiche l'image de ma gallerie, j'affiche le titre mais je ne vois pas ou et comment stocker l'ID de ma gallery ???
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2008/03/08/creating-a-simple-image-gallery-with-the-flex-tilelist-control/ -->
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"
horizontalAlign="center"
verticalAlign="middle" width="443" height="340">
<mx:Image source="{data.@thumbnailImage}" height="100%" width="100%" horizontalAlign="center" />
<mx:Label text="{data.@title}" />
</mx:VBox> |