Co-variant return types. http://www.quilix.com/node/17
Rick Winscot On 9/27/08 4:56 PM, "hspaaij" <[EMAIL PROTECTED]> wrote: > > > > Hi, > I've got a library which contains a custom component that gets its > context menu from one of its children. This works by overriding the > function "get contextMenu():ContextMenu" and return the context menu > of the child. > > This works great in Flex/Flash but in AIR a runtime error occurs as > the AIR contextMenu is of type NativeMenu. > > Seems to me that Flex compatibility between Flash and AIR breaks as > soon as you're trying to use context menu. > > Does anyone have a suggestion on how to make this work such that this > library can be used in both environments without recompiling? > > >
