  | |  | interface doesn 't match definition | interface doesn 't match definition 2004-03-10 - By HM Tobor
Back I don't know how else to import it. This is how I've done it.
import com.whatever.Space;
class ContentSpace extends mx.core.UIComponent implements Space { ... }
-HM
> -- --Original Message-- -- > From: Joe Mease [mailto:jmease@(protected)] > Sent: Wednesday, March 10, 2004 5:29 PM > To: flashcoders@(protected) > Subject: RE: [Flashcoders] interface doesn't match definition > > > Might it have to do with how you are importing the interface itself? > > > > -- --Original Message-- -- > > From: HM Tobor [mailto:robot@(protected)] > > Sent: Wednesday, March 10, 2004 3:10 PM > > To: Flashcoders > > Subject: [Flashcoders] interface doesn't match definition > > > > > > I'm trying to define an interface but I keep getting this > > error, which is very puzzling. I've an interface and a class > > which implements the interface. But Flash keeps complaining. > > But they obviously look identical. > > > > // interface snippet > > function setEditMode(Boolean):Void; > > > > // implementing class snippet > > function setEditMode(_b:Boolean) : Void { > > > > This is the error I get. > > > > **Error** C:\path-ommitted\portal\components\ContentSpace.as: > > Line 93: The implementation of the interface method doesn't > > match its definition. > > function setEditMode(_b:Boolean) : Void { > > > > But as far as I can see they're identical. > > > > The interface is, > > > > interface com.whatever.Space { > > > > function select(Void):Void; > > function deselect(Void):Void; > > function setXml(XMLNode):Void; > > function getXml(Void):XMLNode; > > function setEditMode(Boolean):Void; > > function getEditMode(Void):Boolean; > > > > } > > > > > > And the offending method in the class implementing the interface is, > > > > function setEditMode(_b:Boolean) : Void { > > if ( _b == editMode ) > > return; > > > > editMode = _b; > > invalidate(); > > } > > > > > > Anyone have an idea as to what's going on? > > > > -HM > > > > > > =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- > > -- ------ > > Supported by Fig Leaf Software > > =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- > > -- ------ > > Be sure to check the archives and the wiki: > > http://chattyfig.figleaf.com/ > > > > =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- > > -- ------ > > http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:106579 > > =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- > > -- ------ > > To unsubscribe send a blank e-mail to: > > Normal Mode: flashcoders-unsubscribe@(protected) > > Digest Mode: flashcoders-digest-unsubscrive@(protected) > > > > > =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- > Supported by Fig Leaf Software > =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- > Be sure to check the archives and the wiki: > http://chattyfig.figleaf.com/ > =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- > http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:106581 > =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- > To unsubscribe send a blank e-mail to: > Normal Mode: flashcoders-unsubscribe@(protected) > Digest Mode: flashcoders-digest-unsubscrive@(protected) > >
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Supported by Fig Leaf Software =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Be sure to check the archives and the wiki: http://chattyfig.figleaf.com/ =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:106582 =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe send a blank e-mail to: Normal Mode: flashcoders-unsubscribe@(protected) Digest Mode: flashcoders-digest-unsubscrive@(protected)
Earn $52 per hosting referral at Lunarpages.
|
|
 |