Mailing List
Home
Forum Home
Flash Pro
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
interface doesn 't match definition

interface doesn 't match definition

2004-03-10       - By HM Tobor

 Back
Reply:     1     2     3     4  

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.