hdr-bubble01 hdr-bubble02 hdr-bubble03 hdr-bubble04

Downloads & LinksThe Goodies

Watch on YouTube

InformationCategory & Tags

Enjoy this tutorial?Help us Promote it!

Share this on del.icio.us Digg this! Share this on Facebook Share this on Reddit Share it on StumbleUpon Tweet This!

Tutorial LevelTools and Skill Needed

  • Difficulty: Hard/Professional
  • Tools:
    • Adobe Flash CS4

Create 3D Objects in Flash CS4

January 8, 2009

Coming up on today’s epsiode:

How to create a 3D Box and animate it using the new 3D Tools and Features in Flash CS4.

Step 1: Create a square shape

Start by drawing out simple square. Hold down the shift key to constrain the proportions. Now lets change the solid fill to a gradient by going the color palette, and lets change the type to a Linear gradient. Next lets remove the stroke, just goto the stroke color picker and choose the None option.

Now lets make sure our square is in the center of the stage, we can do that by going to the align panel and click on the horizontal and vertical align buttons.

Step 2: Position & Convert into a Movie Clip

Okay next lets convert this shape into a movie clip, just right click and select Convert to Symbol… alright now lets nest this symbol inside another movie clip, and lets name this one 3D Box. So inside the 3D box movie clip is where we’ll be setting up the 3D layers.

Step 3: Duplicate Layers for Each Box Side

Alright so now we can just copy and paste a few of these squares on some new layers. And lets name each copy after a side of the 3D Box such as top, bottom, left and right.

Step 4: Rotate Each Side 90º & Position in Place

Now lets convert all the frames into motion tweens by selecting them, right clicking and Create Motion Tween. Now lets start with the top layer and rotate the X axis 90 degrees. You can hold down the shift key to constrained your rotation. Next we can go inside the motion editor to ensure our rotation was a either a positive value, or a negative one. Just to make sure everything is set the name.

Now we’ll want to move this top layer up about half of the way. So just calculate half the height of the square and move it up so it sets on top. I like to use the 3D Position and View Panel to do this because you can easily change the values there.

Now lets repeat this process for the bottom layer. But this time we’ll want move the half way down, so again just change the value in the 3D Position and View Panel. Alright so next lets start on the left and right squares. Starting with left, lets rotate the Y axis 90 degrees and shift it over to the left about half of the width of the square. Again we can go inside the motion edition to check our values. Alright now we can repeat the same process for the right square, but don’t forget to move it to the right side instead of the left!

Step 5: Test 3D Box Rotation

So once we finish all rotating and positioning, we should be left with a picture frame looking set of rectangles. So lets jump out of the movie clip and goto scene 1. Now lets select our 3D rotation tool and watch as I rotate the box on its Y axis. Pretty sweet huh?

Step 6: Add Drop Shadow

Lets select our bottom layer, and lets goto the filters section in the properties panel and licks pick drop shadow. Lets change the blur X and Y values to something big like 100 pixels, change the quality to high, and distance to 0.

Step 7: Animate 3D Box Rotating

So now lets jump out to our main timeline and lets add a few move frames. Now Ill be using the motion editor to animate the 3D Box and have spin on it Y axis. So lets convert it the frames into a motion tween by right clicking on the frame bar and selecting convert to motion tween. Now we can scrub over to the last frame and then goto the motion editor. So if we want to just rotate the box spinning from left to right, we can simply change the Rotation Y value to 360 degrees.

Test out the animation by pressing cmd+renturn (cntrl+return on PC).

Noe Ruiz
  • Noe Ruiz

  • Noe Ruiz is a Mexican American Web Developer and UI Designer. He recently worked on iPhone Games, Electronic Health Records UI, and various websites for As Seen on TV Products. From design to development, Noé has worked for various companies in industries such as Direct Response, Real Estate, Medical, and Entertainment.
  • Website: http://noeruiz.com

8 Responses to “Create 3D Objects in Flash CS4”

Add Comment

  1. didinko says:

    Very good tutorial! However there is a small bug

  2. didinko says:

    The guy from adobe should sort out the problem with the z – axis and the timeline layers

  3. romeo gal says:

    Nice tutorial .
    there is one problem,
    try to use a duplicate movieclip for one of the sides, and cut out a circle in middle of face or write something on it.
    You will see that if is a top layer will always show the cicle in front, even it the face is resized, and it should be back behind the other face.

    I hope you undertand what i mean. This is a fix for this bug?

    Cheers

  4. PixilStaff says:

    Romeo Gal, thanks for the feedback!

    I found an interesting tutorial on the same subject. Seems to have the same problem with layer stacking while rotating objects in 3D. I made the 3D Box in the exact same way. Just have to keep that in mind when animating. A quick fix for my 3D Box rotating would be to just change the rotation to 180 instead of 360 degrees. Remember you can download the file to check it out!

    Link to other article. http://www.layersmagazine.com/flash-cs4-folded-book.html

  5. romeo gal says:

    Hi

    I found out 2 way to trick this bug:

    1.create 2 box movieclips, and in second inverse the layers order, back in main timeline rotate first box 180 then insert the second box and rotate the rest 180, you will get a nice complete 360

    2. this simple and better, in the box movieclip at the half of timeline enter a new keyframe swictch the order of faces, and you have smooth rotation without nasty overlapping – here I used all faces on same layer

    To bad Adobe did not fixed something like this, and designers have to invent triks to achive simple effects.

    Thansk again for tutorial

    Cheers

  6. Meh says:

    Could you get the the flash file workin again? As I would like to look at it, as it seems like I’m doing something really wrong…
    When I’ve created all sides, go out and renter the symbol again…all the sides are just placed crazy and not a box anymore

Leave a Reply

  1. avatar arrow

    Your Name
    February 16th

Back To Top
Keep'n It Locked, Pixil.info
We publish fresh new content regularly!
  • Contents and resources released under Creative Commons License.
  • Copyright © 2010 Pixil.info | Pixil 2010 Theme - All Rights Reserved.

Powered by WordPress, hosted by NullGrip. Icons by KomodoMedia. Design & Code by Noe Ruiz.