Flash Video Tutorial – 3D in Flash CS4

Author : Craig

Author's Website | Articles from

In this tutorial, you'll learn all about the new 3D features included with Flash CS4. The latest release of Flash supports the ability to rotate and move flat objects (movie clips) around in 3D space. In the tutorial, you'll also learn how to animate the 3D rotation of an object using ActionScript's new rotationX, rotationY, and rotationZ properties.

Here is the code for this tutorial:

addEventListener(Event.ENTER_FRAME, rotate3D);
 
function rotate3D(e:Event):void
{
   sof_mc.rotationX += 4;
   sof_mc.rotationY += 4;
}

Like this post? Share it!

  • Tweet
  • Facebook
  • Diggit
  • Delicious
  • Diggit
  • Diggit
  • Diggit
  • Diggit
  • Diggit

Related Posts


User Comments


  1. Stephane
    November 20, 2008

    Great tutorial but :
    3D Movie Clip on the stage is quite easy to understand, but have you tried to use a MovieClip ( named MC for example) with a 3d Movie Clip inside (named MC2). It’s hard to undestand because, if you move the MC on the stage, MC2 will change too !!. Actually, i don’t understand how to really control it. A tutorial ?
    PS: sorry for my bad english, i’m french !!

    Reply

  2. Ryan Henson Creighton
    November 27, 2008

    Characters are possible. They’re a lot of work, but they’re possible. A 3D model is just a series of flat planes like the one you’re playing with here.

    Reply

  3. ssj3mohan
    November 30, 2008

    Ty a lot for tutorial.I am so happy for your help.
    I am wacthing all your tutorials .Cya

    Reply

  4. Kurt
    November 30, 2008

    Great tutorial, but is there a way to change the X, Y or Z axis with actionscript?

    Reply

  5. Han
    December 3, 2008

    I can’t really saw the text of action script from this video. Do you mind to upload the text of action script on the page as well?
    anyway, thanks a lot for your chip, It is really helpful for me :)

    Reply

  6. Kurt
    December 4, 2008

    how do people watch this? the camera sucks so much! i can’t see what you are doing man with that sucky camera work.

    Reply

  7. Hello sir
    January 16, 2009

    I have one problem with this and that is when you rotate on the y scale ( trying to rotate a playing car on an angle like a diamond)after i go past a certain angel the animation messed up the card does not spin it flips everywhere. anyone wanna help me on that?

    Reply

  8. Riiich
    March 19, 2009

    Hey, just to say, great vid. keep it up. i was wondering, is there any way to make 3D models? or should i just use a program like swift 3D to make them? as im using 3D models in flash

    Reply

  9. Michaelc
    April 26, 2009

    Very interesting stuff, and not too bad even for newbies. I am interested in developing a flash game (running on osx) designed to be controlled with the wii balance board. Are there any good examples of someone doing that out there?

    Reply

  10. John
    April 29, 2009

    Very intersting lesson. I interest in this flash 3d side. Do anyone know any free learning site about image flipping and related stuff?
    Thanx for this tutorial.

    Reply

  11. adssf
    May 2, 2009

    kanker wat slecht

    Reply

  12. Phot
    July 27, 2009

    hello
    i did it but have error:
    1120: Access of undefined property sof_mc.
    help me :(

    Reply

  13. Sachin Ghare
    December 21, 2009

    I like the video. Cool. You can visit my blog i have also mentioned it using video file, ttp://www.sachinghare.com/blog

    THX.

    Reply

  14. 3d tutorials
    January 9, 2010

    It’s really cool video. And cool stuff. I get an idea for my new project from it. Thanks for sharing.

    Reply

  15. Brian
    February 17, 2010

    Thanks for taking the time to put this up and including the bit about action script at the end. I dusted off some of my books to dig deeper into what’s possible with flash as a result. Having a great time and see a lot of possibilities. Your tutorial inspired that. So thanks again for taking the time to put it together :-)

    Reply

  16. Web Design India
    June 25, 2011

    interesting tut i will try this

    Reply

Leave a Reply

 
  Twitter Followers

Stock Flash Files Web Development Tutorials

Stock Graphics Video Files


Your Ad Here