RELEASE: Mohoptimize
Moderators: Víctor Paredes, Belgarath, slowtiger
- spasmodic_cheese
- Posts: 330
- Joined: Wed Aug 04, 2004 2:02 am
RELEASE: Mohoptimize
Mohoptimize alpha.
http://www.peoplewhoeat.com/moh5/Mohoptimize.mxp
(Right-click> Save target as)
This script can halve the filesize of your exported moho swf's
This only works with Flash MX 04. It is a JSFL command that will go thru every frame and optimize exported moho frames. It will leave any symbols that are already optimized by moho. It will only optimize animations that are frame by frame.
I will be building upon this and improving it when I can.
Installation:
Save Target to your Commands Folder
i.e.
C:\Documents and Settings\<yourusername>\Local Settings\Application Data\Macromedia\Flash MX 2004\en\Configuration\Commands
Usage:
Export SWF from Moho
Import into Flash to Stage,
Run Mohotopmize. ( Commands > Mohoptimize )
Known Bugs:
- Flash MX04 will ask you every 15 frames or so that the script is still running, and whether you want to stop it or not. Unfortunatly there is no fix for this, so I'll have to find a workaround.
- Some pieces of your animation will get fncked up, and you will have to go thru and fix certain frames by hand. This is caused by the differences between flash player and the flash authoring tool. The flash authoring tool will only fnck up shapes that were glitchy anyway.
Its nothing special yet, but its functional. So I thought I'd share it with everyone.
http://www.peoplewhoeat.com/moh5/Mohoptimize.mxp
(Right-click> Save target as)
This script can halve the filesize of your exported moho swf's
This only works with Flash MX 04. It is a JSFL command that will go thru every frame and optimize exported moho frames. It will leave any symbols that are already optimized by moho. It will only optimize animations that are frame by frame.
I will be building upon this and improving it when I can.
Installation:
Save Target to your Commands Folder
i.e.
C:\Documents and Settings\<yourusername>\Local Settings\Application Data\Macromedia\Flash MX 2004\en\Configuration\Commands
Usage:
Export SWF from Moho
Import into Flash to Stage,
Run Mohotopmize. ( Commands > Mohoptimize )
Known Bugs:
- Flash MX04 will ask you every 15 frames or so that the script is still running, and whether you want to stop it or not. Unfortunatly there is no fix for this, so I'll have to find a workaround.
- Some pieces of your animation will get fncked up, and you will have to go thru and fix certain frames by hand. This is caused by the differences between flash player and the flash authoring tool. The flash authoring tool will only fnck up shapes that were glitchy anyway.
Its nothing special yet, but its functional. So I thought I'd share it with everyone.
Last edited by spasmodic_cheese on Tue Oct 26, 2004 10:40 am, edited 1 time in total.
Works a treat, I love you.... so much... so, so... much.
But seriously, great script.
But seriously, great script.
--Scott
cribble.net
cribble.net
- spasmodic_cheese
- Posts: 330
- Joined: Wed Aug 04, 2004 2:02 am
thanks cribble! at least someone likes it...
0.2 is released now, update!
This version runs twice as fast(TWICE AS DEADLY!), does batches of 20+ frames instead of 10 before asking to proceed. (actually it did the before/after example below, 72 frames, without asking at all)
Also now it keeps alot better quality, from your original moho file.
Unfortunatly there is still some glitches in output... but they are definatly minimized more now.
same link. same installation.
http://www.peoplewhoeat.com/moh5/Mohoptimize.mxp
Before:
http://www.peoplewhoeat.com/moh5/hefa.swf 281KB
After:
http://www.peoplewhoeat.com/moh5/hefaOpt.swf 48KB

0.2 is released now, update!
This version runs twice as fast(TWICE AS DEADLY!), does batches of 20+ frames instead of 10 before asking to proceed. (actually it did the before/after example below, 72 frames, without asking at all)
Also now it keeps alot better quality, from your original moho file.
Unfortunatly there is still some glitches in output... but they are definatly minimized more now.
same link. same installation.
http://www.peoplewhoeat.com/moh5/Mohoptimize.mxp
Before:
http://www.peoplewhoeat.com/moh5/hefa.swf 281KB
After:
http://www.peoplewhoeat.com/moh5/hefaOpt.swf 48KB
Last edited by spasmodic_cheese on Tue Oct 26, 2004 10:40 am, edited 2 times in total.
Cool tool!
Just out of curiosity, what are those two sperms doing to that flying ice cube?
________
Vapir oxygen
Just out of curiosity, what are those two sperms doing to that flying ice cube?
________
Vapir oxygen
Last edited by kdiddy13 on Mon Mar 07, 2011 4:53 am, edited 1 time in total.
- spasmodic_cheese
- Posts: 330
- Joined: Wed Aug 04, 2004 2:02 am
- Lost Marble
- Site Admin
- Posts: 2354
- Joined: Tue Aug 03, 2004 6:02 pm
- Location: Scotts Valley, California, USA
- Contact:
Hey spas - I like it too. In fact, it's going to give me the kick in the butt to get a new page up on the website where we can make other people's scripts and other tools available for download.
I'll let you know when the page is ready, and you can tell me if you want your tool available on it or not.
I'll let you know when the page is ready, and you can tell me if you want your tool available on it or not.
- spasmodic_cheese
- Posts: 330
- Joined: Wed Aug 04, 2004 2:02 am
-
- Posts: 45
- Joined: Sun Aug 08, 2004 10:58 am
- Location: Los Angeles
- spasmodic_cheese
- Posts: 330
- Joined: Wed Aug 04, 2004 2:02 am
New Version!
http://www.peoplewhoeat.com/moh5/Mohoptimize.mxp 7.5KB
Is Accessible Via Windows > Other Panels > Mohoptimize
Installation:
Just double click, and let macromedias extension manager do the rest.
if you dont have that you can grab it here.
You should alraedy have it if you have flash.
http://www.macromedia.com/exchange/em_download/

http://www.peoplewhoeat.com/moh5/Mohoptimize.mxp 7.5KB
Is Accessible Via Windows > Other Panels > Mohoptimize
Installation:
Just double click, and let macromedias extension manager do the rest.
if you dont have that you can grab it here.
You should alraedy have it if you have flash.
http://www.macromedia.com/exchange/em_download/

- spasmodic_cheese
- Posts: 330
- Joined: Wed Aug 04, 2004 2:02 am
Yeh..unfortunatly thats abit of a sideffect.. you can minimize that with smoothing. the examples were done with smoothing 0.
Theres no way i can really fix that without research and development and start charging for it. =/
If you look at optimaze and Swift3d which cost money...they also produce erratic lines.
I understand this is no excuse.
Perhaps I can make an option todo every second or third frame so it doesnt look so bad.
So i guess all im really saying its a difficult task to work with individual frames and make them match up with the next one, especially within flash.
When importing into flash swf's are like a sequence of images right after each other. Each frame is a completely different image to the frame before and after it.. no frame has any relations, except exported optimized layers in moho.
I cant tell or detect if that this shape in this frame is that shape in the next frame. Not without some needlessly complicated HEAVY math.
Can you see why its nearly impossible to do?
if you got any ideas im more than happy to develop them.
I personally dont mind the sketchiness...gives it that handdrawn(badly?) and inked feel.
Theres no way i can really fix that without research and development and start charging for it. =/
If you look at optimaze and Swift3d which cost money...they also produce erratic lines.
I understand this is no excuse.
Perhaps I can make an option todo every second or third frame so it doesnt look so bad.
So i guess all im really saying its a difficult task to work with individual frames and make them match up with the next one, especially within flash.
When importing into flash swf's are like a sequence of images right after each other. Each frame is a completely different image to the frame before and after it.. no frame has any relations, except exported optimized layers in moho.
I cant tell or detect if that this shape in this frame is that shape in the next frame. Not without some needlessly complicated HEAVY math.
Can you see why its nearly impossible to do?
if you got any ideas im more than happy to develop them.
I personally dont mind the sketchiness...gives it that handdrawn(badly?) and inked feel.

- spasmodic_cheese
- Posts: 330
- Joined: Wed Aug 04, 2004 2:02 am
hrmm ... has anyone any other suggestions for mohoptimize...
ive been thinking of the follow additions:
Optimize Curves CheckBox;
This will make sure artwork is exactly how it intended, no changing of curves but will make each frame a shape(which will still tidy up the flash file considerably).
Create cut and paste all symbols (moho optimized layers)
onto a seperate a seperate layer;
so they are easier to cut and paste onto their own layers. Since in flash all symbols are displayed infront of shapes, so its easy to fix layer ordering.
Batch frame rendering;
Set a start and end frame to optimize instead of doing the whole file.
Anything else?
ive been thinking of the follow additions:
Optimize Curves CheckBox;
This will make sure artwork is exactly how it intended, no changing of curves but will make each frame a shape(which will still tidy up the flash file considerably).
Create cut and paste all symbols (moho optimized layers)
onto a seperate a seperate layer;
so they are easier to cut and paste onto their own layers. Since in flash all symbols are displayed infront of shapes, so its easy to fix layer ordering.
Batch frame rendering;
Set a start and end frame to optimize instead of doing the whole file.
Anything else?
A cool Mohoptimize feautre...
They ablity to have it select all frames, convert to fills and color the fills one color ( black, green, whatever...) would be cool.
You could animate a figure in Moho and create a shadow by using the same .swf file from moho. Doing this (craeting a shadow figure from a moho .swf file) in Flash by hand is a pain.
You could animate a figure in Moho and create a shadow by using the same .swf file from moho. Doing this (craeting a shadow figure from a moho .swf file) in Flash by hand is a pain.
and for Mac?
Hi!!
Since I can use this tool for MacOs X?
Thanks
NEXT
Since I can use this tool for MacOs X?
Thanks
NEXT

- spasmodic_cheese
- Posts: 330
- Joined: Wed Aug 04, 2004 2:02 am