Flash Question...
- Started
- Last post
- 11 Responses
- smith_barry
Greetings one and all... I've got a little Flash query for you all to ponder over this lunchtime...
I need to shrink a Flash web banner from 58kb to about 30kb according to the host's guidelines... would anyone know how to do this without compromising the quality of the video at all?
Ta.
- ********0
that's a very small file to have any video in at all....
are you allowed to load the video from another domain?
- Mick0
Generate a size report (publish settings) and see where you big bytes live.
Otherwise, if u have video, you're going to have to re-encode it at a lower bit rate to make the video smaller and quality will have to suffer.
- UndoUndo0
http://www.sorenson.com their squeeze product for flash is excellent. version 4.2 has the new flash video codec VP6_on or something
- smith_barry0
It doesn't even contain any video - just vector graphics, it's a dead simple animated web banner of about 230 frames at 18 fps which ends up at 56kb but the host tells me their server can only accept 38kb...
They suck.
- ********0
more script less tween.
- davi-t0
A few things you can do:
- Check how many fonts you are using. Fonts add a bit of K. A 'Flash' bolded font will add some K. If you need to bold the text, dupe the normal text and slide it over a bit to crteate a 'faux' bold. If you can get away with just using one font, then do it.- DO NOT use transparent PNG's, instead use a JPG, that you optimize in another optimizing program ala Fireworks and mask out the parts that you need transparent. I know a lot of peeps hate Fireworks but it does a hell of a job at optimizing images.
- If you have things that appear static for a certain period of time in your timeline, delete the frames where nothing is changing (ie. no new KF's), and use an interval to add the time on, that will save you a few bytes.
- If you can get away with using Flash version 6, use the 'optimize' option in your publish settings. You'll save a ton of K with that.
- If you have an animation WITHIN a movieclip, and you ARE NOT re-using that movieclip anywhere else within the banner, switch that MC to a graphic that 'plays once'. You save some significant bytes.
- If you have a very detailed illustration, try ungrouping all of the vector objects, and flattening all of the vector parts so it becomes one object.
- Take out unnecessary keyframes. Optimize your code, if any.
- If you have SIMPLE sliding animations, use Actionscript instead of tweening.
- Lower your framerate. I know this will make the banner look like shite, but it does lower K. This would be the last thing you should do.
- If you are using pixel fonts, use a PNG instead of using the actual font. A two-color PNG is A LOT smaller than actually using a font.
That's all I can think of at the moment. If you wanna post the SWF of the banner I can check it out and see what else you can do.
Hope that helps.
- UndoUndo0
ditch any shape tweens. it will bring the file down. failling that you will need to optimise any jpegs further
- Clear0
+1 davi-t, completely agree with him. Think he covered all the bases.
- ********0
+1 davi-t, completely agree with him. Think he covered all the bases.
Clear
(Sep 29 05, 06:39)x2
especially for a first post!
- fake_it_up0
animated tweens and code tweens take up the same aount of K can you do a second load? load half the banner then as the 1st half is playing load the 2nd in the backlground
- unfittoprint0
as driven motion will also make your file smaller.
10 lines of code are better than 100+
also
if you're using small pixel fonts, only uppercase+numbers filtering will reduce the overall size.