For sure, this will come in later versions of the Builder. Hmmmm.... maybe not ‘for sure’,  but I truly hope so!

 


From: [email protected] [mailto:[email protected]] On Behalf Of Robert Stuttaford
Sent: Thursday, September 07, 2006 11:11 PM
To: [email protected]
Subject: RE: [flexcoders] Why is import mandatory?

 

I think they've gotten stricter on package usage now. Only places I see it now are in the package and import statements. After converting 50 odd classes this week, I must admit it's cleaned the code up a bit.

 

What I don't get is why we have to manually type import statements at all. It would be nice if Flex Builder (or the compiler itself) could pre-process the source and insert the appropriate imports for you, as well as when using Source > Organize Imports, and just prompt you for any clashing classes. That'd be kinda neat. That way the imports are always complete and always nicely formatted, and lots of silly compiler errors are avoided.

 

Robert

 


From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tracy Spratt
Sent: 07 September 2006 10:42 PM
To: [EMAIL PROTECTED]ups.com
Subject: RE: [flexcoders] Why is import mandatory?

I can’t say “why”, but import IS mandatory, per the docs (migration pdf?), and the fully qualified path should only be used for “disambiguation”.

 

Tracy

 


From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Franck de Bruijn
Sent: Thursday, September 07, 2006 3:27 PM
To: [EMAIL PROTECTED]ups.com
Subject: [flexcoders] Why is import mandatory?

 

Hi,

 

Just a small actionscript question.

 

I have the following interface definition:

 

package a.b.c

{

    public interface SecurityWebservice

    {

         function findUser(userId:String):d.e.f.UserDto;

    }

}

 

It does not compile (1046: Type was not found), which I find strange since I specify the fully qualified name of the type.

 

When I include the statement ‘import d.e.f.UserDto;’ it compiles. Can someone explain why this is?

 

Thanks,

Franck

 

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.1/440 - Release Date: 2006/09/06

 

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.1/440 - Release Date: 2006/09/06

__._,_.___

--
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
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to