Hi there,

I got a object source that I use with a repeater
In this repeater I have a Image so source is binding to
rep.currentItem.icon
The icon is a string representive the object embedding the image.
But the image dosen't load.
Same technique for a icon fiel of a list works well.

Example :

<mx:Repeater id="rep" dataProvider="{myData}">
      <mx:Image id="iconImg" source="{rep.currentItem.icon}"/>
</mx:Repeater>
<mx:Script>
      <![CDATA[
            // Embed icons.
            [Bindable]
              [Embed(source="dpl/img/group.png")]
              public var poste1:Class;
              [Bindable]
              [Embed(source="dpl/img/calendar.png")]
              public var poste2:Class;
      ]]!>
</mx:Script>

myData =
<poste>
<icon>poste1</icon>
</poste>
<poste>
<icon>poste2</icon>
</poste>

Hopes its clear...

--
Flapflap[at]sans-facon.net --
DevBlog : http://www.kilooctet.net



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to