Nov
25
2009
7

Simple Animation in Flash

I  read a question on a Flash forum recently asking for help in animating a logo of a person riding a bike. They uploaded the drawing they wanted and since I’m that kind of guy who tries to help I answered him…

Here’s what I wrote in case any of you want to learn this yourself!

Here's an image of the logo... ALL RIGHTS RESERVED

Here's an image of the logo... ALL RIGHTS RESERVED

Here is what you should do:
Open your image in something like Photoshop and lasso the first wheel and hit CTRL-X to cut it from the image. The wheel will disappear. Then go to File> New and create a new file. Hit CTRL-V to paste the wheel into the new file you just created. Save it as “wheel 1″
do the same for the second wheel and save it as “wheel 2″
save the rest of your image as “bike”.

Open Flash
Hit F8 and a dialog box will come up. Call it “Bike animation”.
Now Hit F11 and your Library will come up. Double click the Bike Animation clip and it will open in the timeline. Nothing will be there yet though.
Now go to File> Import> Import Image
Navigate to the freshly created files on your computer and click OK
You images will appear on the timeline.
Click and drag to select them all or hold down Shift and click each one. then right click on the art on the stage and select “Distribute to layers” the files will now all be on their own layer.
Manipulate the two wheels to where you want them on the stage. If they are beneath the bike then reorder the layers how you want them to bem by dragging them above or below the others. Right Click on each wheel and select Transform. The blue box around your wheel should change to black and have little handles at each corner. There will also be a little white dot roughtly in the center of the image. This is your pivot point. If it is not already, move it to the center of your wheel. Do the same for the 2nd wheel.
Now go to the 8th frame on the timeline.
Hit F6 on your keyboard.
This will make the total length of the scene 8 frames long. You should have two dots one on the first frame one on the last frame. Do the same for each layer so they are all the same amount of frames.
Now select the two wheels and right click on the selected area and select “Motion Tween”.
Now your two wheel layers will be blue with an arror going form the first frame to the last frame.

Go to frame 4 on the first wheel and right click and select create keyframe from the pulldown menu that comes up. When you do you will see a new black dot.

Rotate the wheel by right clicking the wheel and selecting transform. When you move the mouse to one of the corners the mouse will change to a rotate icon. Rotate the wheel sideways.

Do the same for your other wheel.
Under the timeline to the left under the layers area you should see “Scene 1>Bike Animation” Click Scene 1 and the bike will disappear.
Now hit F11 again and the Library will come up again. Drag the bike animation clip from the Library onto the Stage.
Place it where you want it. You can also resize it.

Now hit Ctrl Enter and your little film should play. Tweak until it looks good to you.

If you want the bike to move up and down as it animates, then go to frame 8 on the main stage and hit F5 . This will give you a frame range of 8 frames again like we did earlier BUT it will not put a keyfraem at the end of the sequence. We’ll do that in a second.

Go to frame 8 and right click on it and select Create Motion Tween. Again your frames will change to blue etc.

NOTE: When a Tween is invoked in Flash, you can ONLY select a keyframe and not any fraem. it HAS to have a black dot on it for you to be able to select it.

Right click on the bike on frame 1 and select Transform and move the pivit point (white circle) to the bottom of the black box.   Now go to frame 4 and right click and select create keyframe. Now select the top middle controller on the transform box and squish your drawing slightly to make it seem like it’s lowering a bit. Only the top will squish and the bottom of the drawing will stay as is because of the pivot point’s position.

Hit CTRL enter and your little bike guy should animate and slightly go up and down as well!

Here’s what it essentially will look like.

The drawing itself is not the best to animate with mostly because of the odd shaped wheels  but you can clearly get the idea. He should also be able to animate his legs up and down but that’s a lesson for another time.

Original FLA file can be downloaded here.

You’re an animatin’ fool!

That’s about it.
I hope this helps

UPDATE: Flash is weird sometimes and tweening images especially a circle can be troublesome because if it rotates around too far between two keyframes Flash takes the shorter way and rotates the opposite direction so in order to get the wheels to turn correctly you have to do it in small increments by rotating a bit on the 2nd frame, then going to the 4th frame and rotating a little more and so on. Also when animating a wheel it’s hard to see the rotation correctly because it all pretty much looks the same so a trick you can do is to double click inside the wheel clip, place a small square at the top of the wheel and then go back tot he stage and animate the wheeel. this way you can see how far it turns each keyframe! When you’re done simply remove the square and you’re good to go!

Written by Mike Milo in: Animation,Flash,Flash Cartoons,Teaching,Tutorials |
Nov
04
2007
2

Yet another Logo

I know, it’s not really a logo per se but that’s what the client is calling it so that’s what I’m calling it. Anyway, if you want to see it bigger, click the picture below. Next I will be doing an animated banner for these guys with the dogs running through the screen and the man cleaning up after them.

I’m pretty pleased with the dog running so far which you can see below. It was entirely hand drawn animated in flash. Kinda cool no?

A special thanks to my brother Andy who set my blog up now so it can do Flash right in the posts! He’s cool huh?

Aug
02
2006
1

Adult Swim

So I am on my last few days of Flavio at Nickelodeon. After I am done it will be sent overseas to Wang Films in Taiwan and animated. then it will be sent back to us here and we will add music and sfx. It should take about three months before I see the final film come back to me.In the meantime I am off to my next gig a few short films for Adult Swim Online. My company Milowerx will be animating 12 minutes of film on two separate projects, one called Fun with Dick and James and the other called Small Mediums Large. Wish me luck!

Written by Mike Milo in: Contract Work,Flash Cartoons,Flavio |
May
13
2006
5

The Louie Logo Saga

For the past 5 months I have been working on a short film for the PHMA on a film called Louie Logo in “Helmet Safety” about the benefits of using a helmet when you skate, ride a bike, horse, play soccer or use a scooter.

It’s been an awesome experience and I am very proud of the way it came out. My contact at PHMA; Dean Fisher has been the best client I have ever worked with and after this has taken 6 months to do, we have gotten to know each other a bit as well which is nice.

But it has also been an arduous process and I have learned a lot by doing it, mostly by doing things the wrong way 12 times and banging my head against the wall repeatedly (which by the way is a bad thing).

I am in the final stages of putting the film on DVD and let me tell you doing that very thing has not been a picnic.

Entirely animated in Flash, Louie Logo is the first project of this magnitude I have taken on. I have seen many other shows on TV work with Flash and I figured I could do the same.

Most of the shows that are done in Flash are exported to a Quicktime movie or a series of stills and then brought into an Avid system or Final Cut Pro for mixing and editing.

I’m not quite sure exactly how they do it because I have had nothing but trouble trying to accomplish it. I did succeed at the end but you’ll have to read the whole story to see how I did it. ;-)
I tried so many different ways I am literally spewing over with file versions and codecs and exports and details.

I have finally realized after all this that Flash sucks for this and yet it is a vaible tool for production.

The basic process is to export a swf from Flash in a v5 Flash Player format and then import that into After Effects. Then export that file out to a Quicktime or an AVI.

All this works without a flaw. It looks beautiful. Crystal clear and smooth motions.

That’s where the honeymoon ends.

After Effects does not export sound as far as I can tell (if it does, I have yet to find out how), so after exporting the video out of AE, I bring the file into Premiere and add sound efx and the sound track by exporting the dialog I animated to out of Flash and importing that back into Premiere.
Still with me? ;-)

So once I import the sound into Premiere it seems fine at first until I want to edit some of the video footage. In my film there is a small clip of live action video which will not export from Flash because Flash Player 5′s format does not support video so the vid drops out on export and I am left witha big white space in the film.

No problem right? Just splice the video footage in and we should be set.

But no!

The minute that I use the splice tool to cut a point to edit, the 2nd half of the film suddenly changes. Yes, changes. The image switches to the beginning of the film! Amazing! Sometimes (as I have done this more than once) it just goes black instead of swtiching to the beginning of the film. Amazing!

So I can not edit the film in Premiere and Vegas won’t even see the file at all!

So I go back to Flash and try to make it work there by exporting the sound which has 12 layers now in Premier and importing that into Flash. Trouble is slowly over time it drifts out of sync and by the end of the 7 minutes it is like a full second off!

Tough stuff.

I would pull my hair out at this point but I don’t have much so I can’t!

Next I decide I will export a still frame sequence from Flash, import it into Premiere and I should be good to go.

Nope. Don’t work. Every time I try that Premiere will only let me import 100 frames at a time and I have over 11,000!

Nevertheless I try importing it bit by bit but after a while Premiere craps out on me and quits!

At this point I scream.

It has been very difficult to get everything working.

I did figure it out though.

I imported the Quicktime file into Premiere, added another layer on top of that for the live action footage without splicing it into the same layer and that seems to work so I solved the edit problem. That still leaves the sync problem.

Digital video is 30 fps (frames per second) but it renders at 29.97. Don’t ask me why.
Well when that happesn the sound that the file pulls from is still at 30 fps and it slowy rifts off over time.

The solution?

Compress the sound with something like Soug Frge to 99.99 and suddenly it syncs up! Imagine that!

Can you say NIGHTMARE!?!?

So now we’ve got the file in Premiere, with sound that syncs and it looks good.

Yay!

But wait! We’re not done!

The biggest problem is that when I render the file out compressed, it is pixelated and looks essentially like crap. When I export it out uncompressed it balloons up to around 8 gigabytes!

Shoot me now.

The client had asked me to deliver the film on CD so he can dupe it and give it to his partners whcih I can totally dig but the file at 8 gb is not going onto a 650 mb disk. I can;t burn it to DVD because he can’t duplicate that. Besides 8 gb won’t fit on a DVD either.
Sigh…

Well I can burn it to a dual layer DVD but they aren’t as easy to mass duplicate and I don’t have one anyway…

What do I do?

The Windows version of Flash will export a Quicktime but it’s not “really” a Quicktime file, but actually just a swf that can play in Quicktime’s Player.

That means no editing program will see the file.

Well I found out that apparently the Mac although as far as I am concerned is a bit like a Fisher-Price toy seems to have one great thing going for it. Quicktime with the Mac version of Flash can actually export a beautiful Quicktime movie with soud right out of Flash. And it’s hugely compressed too! Imagine that?!?!?!

So although I figured out a way to get the file out of Flash and make it onto a DVD which the client is kind enough to accept, but it was a very frustrating process.

So I bought a Mac.
I need to author a DVD now to make it mass produceable.
The solution?

Final Cut Pro and iDVD.

But I have to break down and actually buy a Mac to use those programs. Bought one last night in fact.
I have not had a Mac for about 8 years now and here I am slinking back in again.

Will the madness never end!?!?

Well anyway, if you’re actually still reading this to the end, thank you.

You are braver than I…

Oh and stay away from Flash! It is evil to it’s core!

;-)

Oct
19
2005
2

Joe Dugan webpage

I am please to say that I finally got my act together and made a Joe Dugan web page. You can access it from here.
I am really enjoying this series and I hope you are too.
Here is a little bit more about Joe:

Joe Dugan-Mailman is a new series I’ve been developing for a showcase at Zaptoons.com.

It’s a show about a guy, aptly named Joe, who is a bit off. In every crowd there’s one cynical guy who always has an oddball comment, one who’s always a bit too abrupt with his thoughts or seems to say the wrong thing at exactly the right time. He’s the guy you read about in the papers that has the entire collection of Star Wars toys all in the original blister packs. He’s the guy that can quote from every Tom Cruise movie ever made… even in Chinese! He’s that guy at the buffet table that is not afraid to fill his pockets with shrimp for a late-night snack… tomorrow!

Yes, Joe is an quirky lil’ guy, and yet there’s something warm to him as well. Sure he may lick the packages before he delivers them to you, but he’s not afraid to tell that guy that he can’t shi[p a dead horse. He’s not afraid top bring up the subject of how stupid it is to sell Horiscope stamps because of the one for Cancer. After all who wants the disease stamp coming to their mailbox? Not Joe that’s for sure!

Written by Mike Milo in: Flash,Flash Cartoons |
Oct
17
2005
0

Joe Dugan Episode three!


Well I’m apparently very inspired by this newest series we’re doing called Joe Dugan- Mailman.
This is the third installment of the cartoon and I’ve got at least 6 more written and planned!
Tons-o-fun!
Check out the third episode NOW!

Written by Mike Milo in: Flash,Flash Cartoons |
Oct
16
2005
0

Joe Dugan- ONLINE!

As I mentioned in my previous post; I have been inspired of late. I seeem to get great ideas when I go on a trip and this past one to nashville was no exception. While I was there I came up with an idea called Joe Dugan- Mailman. just a simple idea about a slightly “off” guy. An average Joe.
Well I seem to be pretty psyched about this one because I’ve animated two episodes of it already!
Check it out!

Episode ONE

Episode TWO

I hope you like them, because I’ve got a ton of new ideas for him.

Written by Mike Milo in: Flash,Flash Cartoons |
Oct
14
2005
0

Joe Dugan- Mailman


Well, not to lose faith after my horrible computer crash, I rise from the ashes with yet another idea.
this time it’s in the form of Joe Dugan- Mailman.
An idea I came up with on my trip to Nashville, Joe Dugan is everyman. the average guy… or “average Joe” as it were. He talks plainly about life and always how it relates to his job. For instance here’s a quote from an upcoming short I am currently producing:

“Once I picked up a package and this guy had wrapped up this dead horse to ship. I told him he couldn’t ship a dead horse. He told me it wasn’t one and that it was a set of lamps. It was kinda obvious that it was a dead horse. C’mon fella, I can see the hooves! I didn’t just fall off the sorting card ya know. It ain’t easy to fool ol’ Joe Dugan!”

That’s good ol’ Joe for ya. Always thinkin’!

Anyway, I see these shorts as a series of commentary about life, love and mailing a good letter. I have 6 scripts written to date and am finalizing my first one as we speak. Hopefully it’ll be done in a day or so, god willing… Well, that and if my laptop doesn’t suddenly share the same fate as my desktop! But then I guess it’s all a gamble isn’t it? Will someone ever watch what I spend my time working diligently on night after night? Maybe… but if you don’t I will probably make it anyway!
I leave you with a color screencap of the first of the series Joe Dugan- Mailman!

Written by Mike Milo in: Flash,Flash Cartoons |
Sep
09
2005
0

9-9-05 Doodle of the Day!

Just a doodle… for the Doodle of the Day…

Written by Mike Milo in: Doodle of the Day,Flash Cartoons |
Site Meter