PDA

View Full Version : public class X extends Y implements IZ


Flexer
12-05-2006, 12:30 AM
Hi I would like to know if the following is possible in AS3.0

X.as
====

package com.project
{
public class X extends Y implements IZ
{

}
}


Also if IZ.as can contain mutiple interfaces i.e in one as file? like this:

IZ.as
====

package com.project
{
public interface IZ { }

public interface ID {}
}


Thank you in advance.

senocular
12-05-2006, 02:02 AM
1) yes
2) I think this only works when compiling with Flash 9

Flexer
12-05-2006, 02:42 AM
thank you senocular, hmm that's a bit annoying about "2", oh well life goes on.

senocular
12-05-2006, 12:47 PM
thank you senocular, hmm that's a bit annoying about "2", oh well life goes on.

I agree. I'm not sure why that's the case and I'm not sure if that will continue to be the case when the final product is released. Though it has its advantages, I'd prefer the consistency