[flexcoders] How do I add an swf/image in meta data in my setter

2008-06-26 Thread djhatrick
I was trying to follow the logic in the mx:Button class on how to add an icon to a simple UIComponent i created with a setter that looks like this: view:SimpleFunComponent id=toolButton icon=@Embed(source='/assets/tool_icon.swf')/ I don't really understand how to cast my classname (as i was

RE: [flexcoders] How do I add an swf/image in meta data in my setter

2008-06-26 Thread Alex Harui
Public function set icon(iconClass:Class):void @Embed returns a class. If you want to handle external content as well, look at SWFLoader.source From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of djhatrick Sent: Wednesday, June 25,