royale-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com.INVALID>
Subject Re: internal types in subclasses
Date Mon, 18 Dec 2017 18:19:52 GMT
Not sure.  Is this sort of thing legal in pure AS3?

-Alex

On 12/18/17, 7:55 AM, "Harbs" <harbs.lists@gmail.com> wrote:

>I have a class which has an internal class for an Object definition:
>
>class DrawRecord{
>	public var rect:Rectangle;
>	public var color:uint;
>	public var alpha:Number;
>	public var columnRect:Rectangle;
>}
>
>This class has a subclass which sets one of the properties in this value
>object (i.e. columnRect). Internal classes are only available in the same
>file. Is there any trick to make the class definition available to the
>subclass without making the type definition a full blown public class in
>its own file?
>
>Thanks,
>Harbs

Mime
View raw message