Imports are required no matter what, fully qualifying the class doesn’t necessarily get it linked in.

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Scott Langeberg
Sent: Friday, April 07, 2006 5:53 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] {flexcoders} Beta 2: Absolute class reference

 

Any ideas why this doesn't work, without the imports? (I get a class definition not found error).
I should be able to reference classes this way, without the imports!

NOTE: This code is being executed in an MXML app.

            import com.cpds.nested.*;
            import com.cpds.nested.commands.*;
           
            function init() {
                var t1: com.cpds.nested.Test = new com.cpds.nested.Test();
                var t2: com.cpds.nested.commands.Test = new com.cpds.nested.commands.Test()
            }

: : ) Scott



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




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to