Flash Templates

Flash Templates Today
Web Sites
Free Shape
Photoshop Tutorials
Flash Tutorials

Free Website Templates
View All Templates!
Preview & Download
Preview & Download
Recommended Hosting:
Host Unlimited Domains on 1 Account
1500GB storage and 15000GB bandwidth for $6.95/mo!
Recommended Hosting:
Host Unlimited Domains on 1 Account
1500GB storage and 15000GB bandwidth for $6.95/mo!
Free Website Templates: 123456789101112131415
Preview & Download Preview & Download Preview & Download

Welcome To MyFreeWebTemplates.info Flash Tutorials Area - Create 3D motion

Program 3D movement with ActionScript

NOTE: Minimum Flash Designer version 5.0.17 (verify revision number under "Help" > "About...", download update if required)

  1. Launch Flash Designer and choose "blank document"
  2. Set frame size to 300 x 300
  3. Set frame delay to 0.05 sec
  4. Choose "Ellipse" tool and draw the ball, hold CTRL to draw a circle
  5. Choose "Item" > "Line and Fill" > "Gradient Fill"
  6. Click "Center Color" and change it to your favourite color (this is the light color)
  7. Click "Outer Color" and change it to a color darker than center color (this is the shadow color)
  8. Change "Delta X" and "Delta Y" to -50 (this will move the center of the gradient)
  9. Click OK to fill the ball with the gradient

  10. Choose "Edit" > "Convert to Sprite", the ball will appear as "Sprite2"
  11. Choose "Item" > "Placement Properties", check "ActionScript Target" and change "Item Name" to "theBall", click OK

  12. Choose "Frame" > "ActionScript" and enter the following code:
    Angle++; // increase angle by 1 degree at each frame
    
    rad = Angle / 20;  // divide angle by speed  
    
    // calculate x and y offset of the ball
    // sin and cos are between -1 and 1
    
    X = Math.sin(rad) * 100; // X: -100 to +100 pixels horizontally
    Y = Math.cos(rad) * 30;  // Y: -30 to +30 pixels vertically
    
    // place the ball at x and y
    // (120,120) is the center
    theBall._x = 120 + X;
    theBall._y = 120 + Y;
    
    // scale the ball based on y coordinate (vertical axis)
    // negative y will increase the scale
    // 100 is the normal size
    theBall._xscale = 100 + Y;
    theBall._yscale = 100 + Y;
    
    // fade the ball based on y too
    theBall._alpha = 75 + Y / 2;
    
    
Press F9 to preview the animation


Illustrator Tutorials
HTML Tutorials
Flash Templates
Free Web Templates
Free Website Templates
Free Flash Templates
Web Templates Forum
Welcome to MyFreeWebTemplates.info we have a collection of Free Templates available for download created by designers from around the globe. Our collection is growing daily so be sure to check back often for more Free Templates. If you can't find a Free Template that suits your needs, we may offer you many professional web templates and flash web templates.

Website templates are pre-made website designs that you can customize and personalize to suit your company's image.You can save time and money by using website templates for your design project.
All Rights Reserved 2007-2008 by MyFreeWebTemplates.info