It looks like there is a change between alpha1 and beta1 in menu icon
handling.
In alpha1, specifying an icon in the XML definition was done like this :
...
[Bindable]
[Embed(source="images/add.png")]
public var addIcon:Class;
...
<mx:XML id="myMenuData">
<menuitem label="MenuItem A" icon="{addIcon}" >
<menuitem label="SubMenuItem 1-A" eventName="copy" />
<menuitem label="SubMenuItem 2-A" eventName="paste"/>
</menuitem>
</mx:XML>
...
In beta1, it generates a compilation error :
"Access of undefined property 'rpc'"
So I've tried to remove the bindings symbol :
<menuitem label="MenuItem A" icon="addIcon" >
But it generates a runtime error :
"Variable addIcon is not defined"
Is it a known issue?
Benoit Hediard
--
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/