Hello friends, I have a problem when export to swf. I have an animation that have 2.5 MB when I export. I want that animation have 300 KB. How I can to do to solve this. Thanks....
Yamir
Export to SWF too big
Moderators: Víctor Paredes, Belgarath, slowtiger
Seeing that i've had to work around this file size issue many a time i've served up some methods for you to try.
Lower frame rate...
...personally i animate at 20 fps for smoothness, but if you feel you're going to make something fat, animate at 30fps but export at "half frame-rate."
You're probably thinking..."eh, why 30fps and exporting like that? i might aswell animate at 15fps" but there's a backup plan involved in this. You can now make two versions of your animation. A Nice smooth 30fps film/dvd edition and a web 15fps version.
Don't animate points, animate the layer instead.
This way you'll still have an optimized layer at the end of it. Meaning a smaller file size. Boners. Although this can be restricting, its the only way of cracking down that file size.
Seperate non-animate parts into a new layer.
I've sometimes made a whole character in one layer and animate the arm up and down and leave it like that... what did i get? a huge file size, as the layer is no longer optimized. So select all non-animated shapes and move them into a new layer. If all goes well I'll have a layer with my body in it and another layer with my moving arm in it... bonza.
If you can, don't animate it.
I find putting in realistic, stupid, unnessercary movements isn't a good idea. I mean, does that guy really need to flop his arms around? Does he need to twitch? Does he need to jump and move every limb? Does he really need to scratch his head? NO (unless its scripted like "ohh my head is itchy" then you can happily scratch away)! So cut back on animating if possible, hopefully your art work, backgrounds, characters and plot will distract them from the lack of animating.
Does it need to be smoother than Stevie Wonder?
I've noticed some great animations out there (Adam Phillips, David Firth) they don't make everything to be smooth and slick. And that turn sequence with a million frames just to rub it in (opps!). So key frame stuff. If there's a turn sequence, find 3-5 frames that'll do that and try and make it look sweet. The other side of animating is about tricking the viewers eyes, so try and trick it. adding lines to represent the previous positions go down well. aswell as blurrings (which won't get exported into flash.. but you can always add it in Flash
.
Find the smallest Image size possible to use
If you're using images, don't go a huge picture like 2048x1024. Go for something which is just abit bigger than the projects resolution. There are loads of programs out there that'll compress images nicely and even flash can do it upon importing the swf file.
Although there is the case where the Image is your Background. There's loads of work-arounds here (some i haven't discovered). If you aren't using any zooms, resize the image so it's a tad bigger than the project. Its best to use the original image size, so it doesn't look crap and pixellated upon zooming.
Also, did it occur to you that this might be a "How do I..." not a "feature request" unless you're requesting a better swf compressor (which i'm all for).
Err... thats all i can think of. Should be enough to keep you going for a while... Please add/correct me.. i love it really.
Lower frame rate...
...personally i animate at 20 fps for smoothness, but if you feel you're going to make something fat, animate at 30fps but export at "half frame-rate."
You're probably thinking..."eh, why 30fps and exporting like that? i might aswell animate at 15fps" but there's a backup plan involved in this. You can now make two versions of your animation. A Nice smooth 30fps film/dvd edition and a web 15fps version.
Don't animate points, animate the layer instead.
This way you'll still have an optimized layer at the end of it. Meaning a smaller file size. Boners. Although this can be restricting, its the only way of cracking down that file size.
Seperate non-animate parts into a new layer.
I've sometimes made a whole character in one layer and animate the arm up and down and leave it like that... what did i get? a huge file size, as the layer is no longer optimized. So select all non-animated shapes and move them into a new layer. If all goes well I'll have a layer with my body in it and another layer with my moving arm in it... bonza.
If you can, don't animate it.
I find putting in realistic, stupid, unnessercary movements isn't a good idea. I mean, does that guy really need to flop his arms around? Does he need to twitch? Does he need to jump and move every limb? Does he really need to scratch his head? NO (unless its scripted like "ohh my head is itchy" then you can happily scratch away)! So cut back on animating if possible, hopefully your art work, backgrounds, characters and plot will distract them from the lack of animating.
Does it need to be smoother than Stevie Wonder?
I've noticed some great animations out there (Adam Phillips, David Firth) they don't make everything to be smooth and slick. And that turn sequence with a million frames just to rub it in (opps!). So key frame stuff. If there's a turn sequence, find 3-5 frames that'll do that and try and make it look sweet. The other side of animating is about tricking the viewers eyes, so try and trick it. adding lines to represent the previous positions go down well. aswell as blurrings (which won't get exported into flash.. but you can always add it in Flash

Find the smallest Image size possible to use
If you're using images, don't go a huge picture like 2048x1024. Go for something which is just abit bigger than the projects resolution. There are loads of programs out there that'll compress images nicely and even flash can do it upon importing the swf file.
Although there is the case where the Image is your Background. There's loads of work-arounds here (some i haven't discovered). If you aren't using any zooms, resize the image so it's a tad bigger than the project. Its best to use the original image size, so it doesn't look crap and pixellated upon zooming.
Also, did it occur to you that this might be a "How do I..." not a "feature request" unless you're requesting a better swf compressor (which i'm all for).
Err... thats all i can think of. Should be enough to keep you going for a while... Please add/correct me.. i love it really.
--Scott
cribble.net
cribble.net