Make the interface public.
package org.jivesoftware.xiff.data {
public interface IExtension
{
function getNS():String;
function getElementName():String;
}
}
--- In [email protected], João Fernandes <[EMAIL PROTECTED]>
wrote:
>
> Indeed it worked but I'm having a weird behavior with interfaces.
>
> FB Alpha 1 says :
> "A file found in an actionscript-classpath must have an externally
visible definition. If a definition in the file is meant to be
externally visible, please put the definition in a package. IExtension.as"
>
> This file is an interface
> interface org.jivesoftware.xiff.data.IExtension
> {
> function getNS():String;
> function getElementName():String;
> }
> And I have some classes implementing them, but when I try to put the
interface definition inside a package to correct the error that FB
throws, classes seem not be able to find them.
>
> Error:
> Interface IExtension not found
>
> Package trying to import the interface
> <!--------------------------------------->
> package org.jivesoftware.xiff.data.auth{
> import org.jivesoftware.xiff.data.IExtension;
> import org.jivesoftware.xiff.data.ISerializable;
>
> import org.jivesoftware.xiff.data.Extension;
> import org.jivesoftware.xiff.data.ExtensionClassRegistry;
> import org.jivesoftware.xiff.data.auth.SHA1;
>
> /**
> * Implements <a
href="http://www.jabber.org/jeps/jep-0078.html">JEP-0078<a> for non
SASL authentication.
> *
> * @author Sean Treadway
> * @since 2.0.0
> * @param parent The extension's parent node
> * @availability Flash Player 7
> * @toc-path Extensions/Authentication
> * @toc-sort 1/2
> */
> public class AuthExtension extends Extension implements IExtension,
ISerializable
> {
> }
> }
> <!--------------------------------------->
>
>
> João Fernandes
> Secção de Desenvolvimento
> Departamento de Informática
>
>
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED]
On Behalf Of Jeff Tapper
> Sent: terça-feira, 13 de Dezembro de 2005 19:01
> To: [email protected]
> Subject: Re: [flexcoders] Packages must not be nested
>
> chances are you have something like this:
>
> package myPackage{
> class myPackage.myClass{
> }
>
> }
>
> you no longer declare the package name as part of the class,
instead, try this:
>
> package myPackage{
> class myClass{
> }
>
> }
> At 01:12 PM 12/13/2005, you wrote:
> >Hi there,
> >
> >does anyone know what does this mean? I'm trying to convert XIFF AS2
> >classes into AS3 and I had to set those inside packages but Flex
> >Builder is throwing me this error.
> >
> >Thanks,
> >
> >João Fernandes
> >
> >
> >
> >
> >
> >--
> >Flexcoders Mailing List
> >FAQ:
> ><http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt>http:
> >//groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> >Search Archives:
> ><http://www.mail-archive.com/flexcoders%40yahoogroups.com>http://www.ma
> >il-archive.com/flexcoders%40yahoogroups.com
> >
> >
> >
> >
> >----------
> >YAHOO! GROUPS LINKS
> >
> > * Visit your group
> > "<http://groups.yahoo.com/group/flexcoders>flexcoders" on the web.
> > *
> > * To unsubscribe from this group, send an email to:
> > *
> > <mailto:[EMAIL PROTECTED]>fle
> > [EMAIL PROTECTED]
> >
> > *
> > * Your use of Yahoo! Groups is subject to the
> > <http://docs.yahoo.com/info/terms/>Yahoo! Terms of Service.
> >
> >
> >----------
>
>
>
>
> ------------------------ Yahoo! Groups Sponsor
--------------------~--> Most low income homes are not online. Make a
difference this holiday season!
> http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/nhFolB/TM
> --------------------------------------------------------------------~->
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
AIDS in India: A "lurking bomb." Click and help stop AIDS now.
http://us.click.yahoo.com/9QUssC/lzNLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~->
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/