Calling variables using dataProvider values

Hi,

I have a few embedded swfs in my AS code. In my xml file, each record has an icon attribute which is the name of one of the embedded swfs (the var name). I’m using the xml as the dataProvider in a Repeater but I can’t get it to call the swf. Basically I have a heap of these:

[Embed(source=“TO900_R_ALT.swf”)]
[Bindable]
public var TO900_R_ALT:Class;

In my XML file, each item node has an icon attribute, so icon=“TO900_R_ALT”. What I want to do is have this:

<mx:Image source="{repeater.currentItem.icon}"/>

which actually sets the source to the embedded swf, but I can’t get it to work.

Any help is appreciated.

Thanks,
Brendan.

The value is showing without me using the @.

I’ve tried to second one and it’s giving me an error saying the variable is not defined.