FlapFlap:

Did you ever get an answer to this?  I'm experiencing the same problem.

Thanks!


On 5/19/06, Flapflap < [EMAIL PROTECTED]> wrote:
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



------------------------ Yahoo! Groups Sponsor --------------------~-->
Get to your groups with one click. Know instantly when new email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~->

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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/




__._,_.___

--
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