Mailing List
Home
Forum Home
Flash Pro
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
squeezing every last K out

squeezing every last K out

2004-03-11       - By Matthew Horn

 Back
Reply:     1     2     3     4     5  

I want to optimize a SWF as much as possible. I've done a pretty good job so
far, of re-rendering images, cleaning up the library (oddly, removing some
things that I KNOW weren't being used shrunk the file size), and whatnot.

I got it down from 250k to ~143K.

What I wanna do is make deeper cuts still. The lion's share of my SWF size
is taken up by a background image (it's about half the file size), so I
would like to focus on that possibly.

Some basic assumptions I am making:
- CONVERTING images to graphic symbols... Leaving the background image as
an imported graphic or converting it to a symbol makes no size difference
that I can tell.

- IMPORTING graphics.... importing a graphic to the library and then using
it or importing it directly to the stage makes no diff if I only use the
graphic once.

Also:
- TRACE statements...... Trace statements are not written into the final
SWF (when debug is off, anyway), so removing them won't make a difference


Any advice or a good site I can look at that might spell out some ideas?
Thanks!

Here's the size report if that helps.

matrix.swf Movie Report
-- ---- ---- ---- ------
Frame #    Frame Bytes    Total Bytes    Scene
-- ----    -- ---- ---    -- ---- ---    -- ---- ---- ---
     1         139793         139793    Scene 1 (AS 2.0 Classes Export
Frame)
     2            784         140577    
     3            280         140857    
     4            280         141137    
     5            280         141417    
     6            280         141697    
     7            280         141977    
     8            280         142257    
     9            280         142537    
    10            280         142817    
    11            280         143097    
    12            280         143377    
    13            280         143657    
    14            280         143937    
    15            280         144217    
    16            280         144497    
    17            280         144777    
    18            280         145057    
    19            280         145337    
    20            338         145675    

Scene                        Shape Bytes    Text Bytes    ActionScript Bytes
-- ---- ---- ---- ---- --    -- ---- ---    -- ---- --    -- ---- ---- -----
Scene 1                              331            23                   997

Symbol                       Shape Bytes    Text Bytes    ActionScript Bytes
-- ---- ---- ---- ---- --    -- ---- ---    -- ---- --    -- ---- ---- -----
shitter                               30             0                     0
blackbox                              21             0                     0
effectSymbol                           0             0                     0
Transform 1                            0             0                     0
box                                   24             0                  1065

Font Name                 Bytes        Characters    
-- ---- ---- ---- ----    -- ------    -- ---- ------
Courier New                      17    

ActionScript Bytes    Location
-- ---- ---- -----    -- -----
                1    Scene 1:Transform 1:1
              943    Scene 1:code:1
             1065    box:Layer 1:1
              120    
               53    Scene 1:Transform 1:20
            60102    ActionScript 2.0 Classes

Bitmap                     Compressed    Compression
-- ---- ---- ---- -----    -- ---- --  -- -----  -- ---- ---
017_17.jpg                     74131     1477360   Imported JPEG=102




matrix.swf Movie Report
-- ---- ---- ---- ------
Frame #    Frame Bytes    Total Bytes    Scene
-- ----    -- ---- ---    -- ---- ---    -- ---- ---- ---
     1         139793         139793    Scene 1 (AS 2.0 Classes Export
Frame)
     2            784         140577    
     3            280         140857    
     4            280         141137    
     5            280         141417    
     6            280         141697    
     7            280         141977    
     8            280         142257    
     9            280         142537    
    10            280         142817    
    11            280         143097    
    12            280         143377    
    13            280         143657    
    14            280         143937    
    15            280         144217    
    16            280         144497    
    17            280         144777    
    18            280         145057    
    19            280         145337    
    20            338         145675    

Scene                        Shape Bytes    Text Bytes    ActionScript Bytes
-- ---- ---- ---- ---- --    -- ---- ---    -- ---- --    -- ---- ---- -----
Scene 1                              331            23                   997

Symbol                       Shape Bytes    Text Bytes    ActionScript Bytes
-- ---- ---- ---- ---- --    -- ---- ---    -- ---- --    -- ---- ---- -----
shitter                               30             0                     0
blackbox                              21             0                     0
effectSymbol                           0             0                     0
Transform 1                            0             0                     0
box                                   24             0                  1065

Font Name                 Bytes        Characters    
-- ---- ---- ---- ----    -- ------    -- ---- ------
Courier New                      17    

ActionScript Bytes    Location
-- ---- ---- -----    -- -----
                1    Scene 1:Transform 1:1
              943    Scene 1:code:1
             1065    box:Layer 1:1
              120    
               53    Scene 1:Transform 1:20
            60102    ActionScript 2.0 Classes

Bitmap                     Compressed    Compression
-- ---- ---- ---- -----    -- ---- --  -- -----  -- ---- ---
017_17.jpg                     74131     1477360   Imported JPEG=102


-- -----

Matthew J. Horn

=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:106619
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)




Earn $52 per hosting referral at Lunarpages.