The overhead of classes and methods is currently higher than we like, and maybe future players (post FP10) will reduce that overhead. In general, I wouldn't let 80 bytes keep me from using good programming practices if the entire SWF is going to be 500K or more.
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of jimmy5804 Sent: Thursday, July 24, 2008 2:19 AM To: [email protected] Subject: [flexcoders] Framework RSL and subclassing I have a medium size project and am trying to reduce .swf size. There are several places in my project where I can either 1) put a bunch of code in a <mx:script> tag or included .as file or 2) subclass to make things look cleaner. In some quick tests, it looks like creating a new class adds ~80 bytes (plus or minus about 10) to the .swf compared to putting it in an mxml or <script> tag. 1) Does this observation seem about right as a general rule? 2) Are there any other considerations for subclassing vs. not subclassing that relate to .swf size? Thanks!

