Excluding Classes from being Compiled into SWF
Did you know that you can exclude ActionScript classes from being compiled into the final SWF? You may want to do this to decrease file size, but still have the classes avaliable for type checking.
You can find out how to exclude classes from being compiled here.






Mike,
Is this part of mx or mx2004?
Pat
Patrick Whittingham
25 May 04 at 8:25 am
This is part of MX 2004
Daniel Dura
25 May 04 at 12:01 pm
That livedocs link doesn’t seem to work.
Vera
25 May 04 at 4:39 pm
The link does seem to work actually, but very slowly (sat on the Flash logo for about a minute).
Gary Burgess
26 May 04 at 7:12 am
Thanks to Mike for pointing out this convenient way excluding classes.
I had to use intrinsic keyword before.
btw,Is there a method to exclude whole package,(mx.core or mx.controls …)
icee
26 May 04 at 8:28 am
good point icee, i wish the next version had an option to exclude class/methods/properties within itself, so i didn’t have to change a xml file. This would provide ‘thin’ components and speed the delivery time. Do you hear me Mike…:)
Pat
Patrick Whittingham
26 May 04 at 11:29 am
“Page Does Not Exist”
edi
12 Nov 04 at 3:30 pm
Hello!
The link to the LiveDocs still didn’t work. But i find that post of Martijn de Visser:
http://www.martijndevisser.com/archives/000034.php
HTH!
Zarate
11 Jan 05 at 5:47 am
http://livedocs.macromedia.com/flash/mx2004/main_7_2/00001081.html
;)
raul
.
Raul Arantes
28 Jan 05 at 10:46 am