I do not know what SimpleScheduleEntry extends but it is most likely
that it does not extend UIComponent. The example says that 'implements
 IFocusManagerComponent' should be added to a UIComponent-derived
component to set focus. Otherwise, you will have to implement
drawFocus() and setFocus() yourself.

- venkat
http://www.venkatj.com

--- In [email protected], "Corey Smaller" <[EMAIL PROTECTED]>
wrote:
>
> i imported mx.managers.IFocusManagerComponent  and implemented it
> like so:
> 
> 
> public class ColoredScheduleEntry extends SimpleScheduleEntry
implements 
>          IFocusManagerComponent
> {
> 
>         public var backgroundColor : int = 0xcccccc;
>               
>               
>       override public function toString() : String
>       {
>               return "[object SimpleScheduleEntry id: " +id + "               
>       
>                 startDate:" +startDate + " endDate:" + endDate + "]";
>       }
>       
> }
> 
> 
> 
> Now, even though i implemented the component like the example tells
> you (and that should be it to make it focusable)
> I get 7 errors all related to the interface methods Getters and
> Setters in the IFocusManagerComponent (one example below)
> 
> 1044: Interface method drawFocus in namespace
> mx.managers:IFocusManagerComponent not implemented by class
> flexlib.scheduling.scheduleClasses:ColoredScheduleEntry.      
> 
> 
> anyone know why this is??
>


Reply via email to