Tom is correct. The compiler starts out from the root class (i.e.
typically your subclass of mx.core.Application) and resolves types as
needed. Types can be found in source path(s) or library path(s). This is
why mxmlc enforces the "one public definition per file" rule and also
establishes the convention of "a sub-package is a sub-directory" as it
makes type resolution from sources predictable. Both of these
conventions are Flex specific and not inherent to the ActionScript 3.0
language.

If it were the other way around then I guess you would have to create a
project that explicitly added each source to the configuration (if we
were to scan all sources then ActionScript include fragments would be
invalid definitions etc...). That would seem more of an effort to me...

If the tool were changed to scan all types, including non-referenced
types, for [RemoteClass] metadata then your SWF would be unnecessarily
large because you would start embedded classes that you never intended
to use.



-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Wednesday, December 19, 2007 5:49 AM
To: [email protected]
Subject: Re: [flexcoders] Re: Debugging RemoteClass serialization
[SOLVED]

> The compiler, right now, already has to scan *all the other* classes 
> to verify that a particular one is not used, in order to choose to 
> remove it from the SWF if it isn't needed.

Uhh, I'd be surprised if it worked that way, I would expect it to only
include classes that are referenced or imported from code.

--
Tom Chiverton
Helping to enthusiastically transform eligible bandwidth
on: http://thefalken.livejournal.com

****************************************************
Halliwells wishes all of its clients and suppliers the Very Best for
Christmas & the New Year
****************************************************

This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office
address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB.  A list of members is available for inspection at
the registered office. Any reference to a partner in relation to
Halliwells LLP means a member of Halliwells LLP.  Regulated by The
Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and
may be confidential or legally privileged.  If you are not the addressee
you must not read it and must not use any information contained in nor
copy it nor inform any person other than Halliwells LLP or the addressee
of its existence or contents.  If you have received this email in error
please delete it and notify Halliwells LLP IT Department on 0870 365
2500.

For more information about Halliwells LLP visit www.halliwells.com.


--
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



Reply via email to