Hello,
I'm getting an error that I can't fix when extending bead Jewel Disabled:

interface method addEventListener in interface IEventDispatcher is implemented 
with an incompatible signature in class DisabledToolTip
interface method removeEventListener in interface IEventDispatcher is 
implemented with an incompatible signature in class DisabledToolTip
interface method dispatchEvent in interface IEventDispatcher is implemented 
with an incompatible signature in class DisabledToolTip

It is not the first time I have encountered this error and it has only been 
fixed when I create a copy of the main class and extend it.

package com.xxx.xxx.jewel.beads.controls
{

    import org.apache.royale.core.IToolTipBead;
    import org.apache.royale.jewel.beads.controls.Disabled;

    COMPILE::JS
    public class DisabledToolTip extends Disabled
    {

        public function DisabledToolTip()
        {
            super();
        }

        private var _beadToolTip:IToolTipBead;
        public function set beadToolTip(value:IToolTipBead):void
        {
            _beadToolTip = value;
        }

        override protected function updateHost():void
        {
            super.updateHost();

            if(disabled) {
                if(_beadToolTip) {
                    _beadToolTip.removeTip();
                }
            }
        }
    }

    COMPILE::SWF
    public class DisabledToolTip extends Disabled
    {
    public function DisabledToolTip()
    {
        super();
    }
    }
}

Any ideas?
Thx.
Hiedra.

Reply via email to