Hi,
   In flex 1.5, referencing the object on the right side of the 
assignment causes its static initializers to be called.

 eg: 
     public class Test {
          var static temp com.test.A = com.test.A ; 
     }

    public class com.test.A {
         var static str : String = "test";
         var static Object clsregistry = Object.registerClass
("com.test.A".com.test.A);
    }

  In flex 2.o, referencing the object on the right side of the 
assignment causes "implicit coercion of type Class to undefined type 
com.test.A" error. 
   However the following change resolved the error. It would be great 
if someone can clarify that the following declaration does not 
instantiate the object and just invokes the static initializers. 
(Functionality similar to Flex1.5) 

       eg: public class Test {
          var static temp Class = com.test.A;
        } 
        
       package com.test {
           [RemoteClass(alias="com.test.A")]
           public class A {
             var static str :String = "test";
           }
       }

Thanks,
Karthi
       

       


 


  






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Protect your PC from spy ware with award winning anti spy technology. It's free.
http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to