[flexcoders] Abstract type and cannot be instantiated.

2008-06-23 Thread gnu wolf
Hi,

Is there a way around this? Is it true that AS 3 does *not* support abstract
classes (classes that cannot be instantiated, only extended)?

I'm getting this error from my flex application:

org.xml.sax.SAXException:
{urn:core_2008_1.platform.webservices.netsuite.com}Record
is an abstract type and cannot be instantiated

TIA.

Clem


Re: [flexcoders] Abstract type and cannot be instantiated.

2008-06-23 Thread Daniel Freiman
AS3 doesn't support abstract classes, but sometimes libaries will get around
this by creating a class that functions like an abstract class and have each
function throw a custom error unless the function is overridden.  So it
looks like something in the sax library is throwing that.

- Daniel Freiman

On Mon, Jun 23, 2008 at 2:47 PM, gnu wolf [EMAIL PROTECTED] wrote:

   Hi,

 Is there a way around this? Is it true that AS 3 does *not* support
 abstract classes (classes that cannot be instantiated, only extended)?

 I'm getting this error from my flex application:

 org.xml.sax.SAXException: {urn:
 core_2008_1.platform.webservices.netsuite.com}Record is an abstract type
 and cannot be instantiated

 TIA.

 Clem