Hi,
At me too ;), it's indeed flash 7 compiler bug it seems, it compiles fine in
flash 8.
Time for me to switch ;).

Greetz
Hans

 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas
Sent: Wednesday, February 01, 2006 1:22 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] interfaces and objects

But it should. :-)

Like I said, my quick test of
var myPart:SomeInterface=new SomeConcreteImplementingSomeInterface();
trace(myPart instanceof Object);

Traces 'true'. Which is what I'd expect.

I really don't understand why you're getting an error with myCollection.

I know you've solved your immediate problem - but this is niggling at me
now... ;-)

Ian

On 2/1/06, j.c.wichman <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
> I know u can't instantiate an interface, which wasn't what I was 
> trying to do ;), I was declaring a variable to be of type 
> SomeInterface (instantiating it with SomeConcreteClass), which 
> apparently is not regarded by flash then of being of type Object as 
> well.
> Got it figured out now ;)
>
> Thanks
> H
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to