Bonjour,
j'ai un tilelist que je charge avec un httprequest.
dans ce tilelist j'ai un itemrender.
voici le code de mon mxml cadreActuCode:
1
2
3
4
5
6
7
8
9
10
11
12
13 <mx:TileList visible="true" horizontalScrollPolicy="off" verticalScrollPolicy="off" dataProvider="{feedRequestActus.lastResult.rss.channel.item}" id="mytlActus" itemRenderer="cadreActu" width="850" height="18" borderColor="#FFFFFF" horizontalCenter="0.5" bottom="0"> </mx:TileList>
je cherche à mettre un color="{data.color}" pour récuperer mon champ color provenant de mes items dans mon XML : ça ne marche pas.Code:
1
2
3
4
5
6
7 <?xml version="1.0" encoding="utf-8"?> <mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" width="600" height="14" paddingLeft="45"> <mx:Label id="ActuRubrique" text="{data.rubrique}" color="#FF0000" fontSize="10" height="17" textAlign="left" fontWeight="bold"/> <mx:Label id="ActuTitre" text="{data.title}" color="#000000" fontSize="10" height="17" textAlign="left"/> </mx:HBox>
et je cherche à rajouter un
click="navigateToURL(new URLRequest({data.link}), '_self')" dans un label mais idem j'arrive à rien.
pourtant les text="{data.title}" et text="{data.rubrique}" sont ok.
merci de m'éclairer.