[Sandy] [sandy commit] r809 - trunk/sandy/as2/branches/2.0.2/sandy/parser

Bruce Epstein bruce at zeusprod.com
Wed Oct 1 13:27:36 PDT 2008


Yeah, I think you need to set the accessor to "internal" instead of 
"private"

Mj Mendoza IV wrote:
> Hmm... Makes sense why I can't access the parent class's private function from a sub-class.
>
> --- On Thu, 10/2/08, petit at petitpub.com <petit at petitpub.com> wrote:
> From: petit at petitpub.com <petit at petitpub.com>
> Subject: Re: [Sandy] [sandy commit] r809 - trunk/sandy/as2/branches/2.0.2/sandy/parser
> To: sandy at osflash.org
> Date: Thursday, October 2, 2008, 2:43 AM
>
> Really transparent explanation :-)
> Sad to say I'm not in a position to update the API dox at this moment.
> Still off site
>
> Cheers guys - looks like a fine job of back porting :-)
> /P
>
> Floris _ <xdevltd at gmail.com>: says:
>
>   
>> Yes, unfortunately this is different in AS2...
>>
>> This is what I've learnt:
>>
>> protected: The protected attribute is a new attribute for ActionScript 3.0
>>
>> private: AS2 had the private attribute but it worked more like protected
>>     
> as
>   
>> subclasses had full access to private members. Now, with AS3, private is
>> completely private and is only accessible from within the class in which
>>     
> it
>   
>> is defined.
>> 2008/10/1 Makc <makc.the.great at gmail.com>
>>
>>     
>>> in as3, it needs to be protected as long as it is called in collada
>>> parser - it cant call private methods of super class (AParser). is it
>>> different in as2?
>>>
>>> On Wed, Oct 1, 2008 at 6:31 PM,  <codesite-noreply at google.com>
>>>       
> wrote:
>   
>>>>        /**
>>>> -        * @private Collada parser already loads textures on its
>>>>         
> own, so
>   
>>> it needs
>>>       
>>>> this protected
>>>> +        * @private Collada parser already loads textures on its
>>>>         
> own, so
>   
>>> it needs
>>>       
>>>> this private
>>>>         */
>>>> -       private /* porting :: It's correct to replace
>>>>         
> protected with
>   
>>> private? */
>>>       
>>>> function changeExt( s:String ) : String
>>>> +       private function changeExt( s:String ) : String
>>>>         
>>>  _______________________________________________
>>> Sandy mailing list
>>> Sandy at osflash.org
>>> http://osflash.org/mailman/listinfo/sandy_osflash.org
>>>
>>>       
>> _______________________________________________
>> Sandy mailing list
>> Sandy at osflash.org
>> http://osflash.org/mailman/listinfo/sandy_osflash.org
>>
>>     
>
>
>
> _______________________________________________
> Sandy mailing list
> Sandy at osflash.org
> http://osflash.org/mailman/listinfo/sandy_osflash.org
>
>
>
>       
> _______________________________________________
> Sandy mailing list
> Sandy at osflash.org
> http://osflash.org/mailman/listinfo/sandy_osflash.org
>   



More information about the Sandy mailing list