-
AS code taking up 40k of a 50k swf? Help!
I am making a banner ad for a site that has a size requirement of 40k. However, my file is around 50k, and I can't figure out why. I have exactly 4 images. And the and they total 4k when published. And it says my ActionScript is taking up 39K!!
What is going on, and what can I do to bring this file down by 10K. It is going to have to lose some Actionscript, but I have no idea why the ActionScript is so huge in comparison to everything else. Isn't code supposed to be lean?
Here is what my size report says:
Code:
Frame # Frame Bytes Total Bytes Scene
------- ----------- ----------- -----
1 46708 46708 Scene 1 (AS 3.0 Classes Export Frame)
2 1361 48069
3 8 48077
4 2369 50446
Scene Shape Bytes Text Bytes ActionScript Bytes
------- ----------- ---------- ------------------
Scene 1 0 0 39334
Symbol Shape Bytes Text Bytes ActionScript Bytes
------------------ ----------- ---------- ------------------
logo_lrg 0 0 0
logo_sml 0 0 0
break_through 0 0 0
break_through_mc 0 0 0
finger_int 0 0 0
finger_mc 0 0 0
green_light 0 0 0
hosted_ip 608 0 0
no_equip 0 0 0
no_equipment 0 0 0
no_equipment copy 0 53 0
overlay_btn 37 0 0
phone 0 0 0
phone_bg_bf 0 0 0
phone_int 0 0 0
pick_up_int 0 38 0
Pickup 41 0 0
PickUp_mc 0 0 0
red_light_mc 0 0 0
savings 0 57 0
savings_mc 0 0 0
svae 0 50 0
Tween 1 38 0 0
Tween 2 38 0 0
Tween 3 39 0 0
Tween 4 39 0 0
Font Name Bytes Characters
---------------------------- ---------- ----------
FuturaStd-BookOblique Italic 1214 >ADGINORSTVY*
FuturaStd-Book 2224 .CNPUacefghiklmnoprstuvw*
ActionScript Bytes Location
------------------ --------
39334 Scene 1:Frame 1
Bitmap Compressed Original Compression
--------------------- ---------- ---------- -----------
phone_still_level.jpg 1581 108768 JPEG Quality=50
Green_button.png 392 3072 JPEG Quality=40
BFT_logo_lrg.jpg 1221 30912 JPEG Quality=50
finger_sml.png 922 11136 JPEG Quality=50
Any info on why the ActionScript is taking up so much space would be much appreciated.
-
.
Hi,
You can try unchecking include XMP metadata in the Publish settings, perhaps if you are using a textfield component, then use a normal textfield instead!!
Perhaps try attaching the fla and lets see if we can help out
-
Actually, I think with some of your advise, I figured it out. I looked into the greensock library I was importing and noticed there was something called TweenLite. I added that to my code in place of TweenMax, and shazam! It shaved off nearly 15k. I think I have it figured out. Thanks so much for leading me in the right direction!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|