Of course, they are.
On 11/4/08 10:24 AM, "Ian Thomas" <[EMAIL PROTECTED]> wrote:
> You put them outside the package.
>
> Or rather, I do and it works. :-D
>
> So:
>
> package{
>
> public class A{
> private var b:B = new B();
> private var c:C = new C();
>
> public function A(){;}
> }
> }
>
> class B{
> public function B(){;}
> }
>
> class C{
> public function C(){;}
> }
>
> HTH,
> Ian
>
> On Tue, Nov 4, 2008 at 9:19 AM, Niels Wolf <[EMAIL PROTECTED]>
> wrote:
>> Hey.
>>
>> Short notion about AS3 hidden/private classes.. It seems you are not allowed
>> to have more than one!
>>
>> package{
>>
>> public class A{
>> private var b:B = new B();
>> private var c:C = new C();
>>
>> public function A(){;}
>> }
>>
>> class B{
>> public function B(){;}
>> }
>>
>> class C{
>> public function C(){;}
>> }
>> }
>>
>> -- TypeError: Error #1115: ::C is not a constructor.
>>
>> Change order of B with C so C gets defined first and you will get:
>> TypeError: Error #1115: ::B is not a constructor.
>>
>> Compiler does not complain at all and i dont know why on earth i am only
>> allowed to have one hidden class?
>>
>> Niels
>>
>>
>> _______________________________________________
>> osflash mailing list
>> [email protected]
>> http://osflash.org/mailman/listinfo/osflash_osflash.org
>>
>
> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org
Niels Wolf
--
Niels Wolf
Department of Interactive Media
MediaCatalyst
Keizersgracht 268-270
1016 EV Amsterdam
The Netherlands
t. +31 (0) 20 626 2976
f. +31 (0) 20 626 4026
m. +31 (0) 634 658 783
www.mediacatalyst.com
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org