Any specific reason why we should not extend dictionary..?
I got it working by writing one getter method in the class which returned
dictionary...
just curious........

On Tue, May 13, 2008 at 11:11 PM, Alex Harui <[EMAIL PROTECTED]> wrote:

>    Don't extend dictionary, just return a Dictionary.
>
>
>  ------------------------------
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Mayur Bais
> *Sent:* Tuesday, May 13, 2008 2:11 AM
> *To:* [EMAIL PROTECTED]; flexcoders@yahoogroups.com
> *Subject:* [flexcoders] error while extending dictionary error ..
>
>
>
> Hi all,
> I have class extending a dictionary class:
>
> public class mydict extends Dictionary
>     {
>      public    static instance:mydict // done to maintain singleton class
>      function mydict (){
>           super();
>       }
>
>    public static funtion getInstance():mydict {
>      return instance;
>   }
>
>     function addTodict(id:int,val:String):void{
>         mydict [id] = val // its giving me error here...can not create
> proeprty 26..(if  id was 26..) on mydict
>    }
>   }
>
>
>
> Any work around??
>
> Regards
> Mayur
>
>  
>

Reply via email to