can't this be done with intrinsics?

Ray, an interface does not include variables, so this example looks more
like an Abstract class.

intrinsic class Circle {
var radius:Number;
function Circle(radius:Number);
function getArea():Number;
function getDiameter():Number;
function setRadius(param_radius:Number):Number;
}

According to those docs, it looks like it's intended to bring forward
type-checking from AS1 classes. However, does anyone know if an intrinsic
class could be used as an abstract class?


Scott



On 10/14/06, Ray Chuan <[EMAIL PROTECTED]> wrote:

Hi,
can't this be done with intrinsics?


http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001879.html

On 10/14/06, Ian Thomas <[EMAIL PROTECTED]> wrote:
> On 10/13/06, Jim Kremens <[EMAIL PROTECTED]> wrote:
> > "I understand what interfaces are, but I'm not entirely clear on when
> > they become advantageous to use.  Anyone care to shed some light?"
>
> Interfaces are also very handy when you want to put the actual
> implementation code for a class in one .swf, but still get all the
> type-checking when writing code in another .swf that'll use it. Both
> .swfs include the interface code, but only the implementing .swf needs
> to include  a concrete implementation of the class.
>
> Ian
> _______________________________________________
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>


--
Cheers,
Ray Chuan
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




--

: : ) Scott
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to