ActionScript 3.0 Ball Bounce Motion Ease Tween Video Tutorial

Fri, Oct 30, 2009

ActionScript

This movie requires Flash Player 9

It was very exciting to do this tutorial, I had plenty of ideas racing my mind.

Sounds. For the sound effects I recommend http://www.freesound.org/ there you will find a large library of sound effects all free of charge. They do request to disclose that you are using their resources on your project though.

Bounce Eases. See the type of bounce eases at the Adobe Help.

DOWNLOAD THE SOURCE FILE
BounceEease

CLICK HERE FOR A COMPLETE ACTIONSCRIPT 3.0 CARTOON SMART TUTORIAL

HERE IS THE SOURCE CODE!

//The ActionScript 3.0 Ball Bounce Motion Tween Ease
// solutions at say-web dot com
// FREE to USE, COPY and DISTRIBUTE

// Let’s import libraries for tweening
import fl.transitions.Tween;
import fl.transitions.easing.*
// the asterisc will import all ease capabilities

// Sound Variables
var req:URLRequest = new URLRequest (‘Bounce.mp3′);
// the url request is the path of our sound file
// the sound HAS to be on the same folder as the SWF file
// I tried with a WAV file and did not work
var sound:Sound = new Sound;
// Sound with Capital S is a reserved word, the class name

//Tween Variables
var bounceTween :Tween;
///////////////////////////////////////////////////////////////////////////

drop_btn.addEventListener(MouseEvent.CLICK, bounceFunction);
sound.load(req);
// this will load the sound but will not play.
// the file is small so there is no risk the user will
// stay waiting to load, otherwise, use a pre loader

function bounceFunction (event:MouseEvent):void{

sound.play();
bounceTween= new Tween (ball_mc,’y',Bounce.easeOut,8,250,2,true);
// the first field is the name of the movie clip that will move
// the ‘y’ is the type of movie tween
// bounce is the ease we will apply for all types, press the dot after bounce and
// press F1 for the Adobe referrence

}

Related Articles:

, , , , , , , , , , , , , , , , , , , , , , , ,

2 Responses to “ActionScript 3.0 Ball Bounce Motion Ease Tween Video Tutorial”

  1. Tutorials Says:

    I found your site on a tutorial directory. We recently launched tutorialgrad.com. It’s similar to those other tutorial sites only easier for you. All you have to do is submit your RSS Feed once, we do the rest. We will check your feed for tutorials and post them daily, all with direct links to your site (we don’t frame your content). If you are interested please check it out and let us know what you think.

  2. allegra Says:

    Good.
    ———————————————————
    Signature:buy levitra professional online mom


Leave a Reply

Security Code:

AVA Trading Forex
WIX create a FREE website.
Try ACT! 2010 Today
Accept Credit Cards
UseNeXT Fast Downloads
For Free Stuff Click Here

Get Paid for Filling Surveys


Go Daddy $7.49.com sale 125x125 Huddle Collaboration
oDesk Certified Action Script Programmer oDesk Certified Adobe Flash CS3 Designer oDesk Certified Adobe Photoshop 6.0 Designer

Compare Web Hosting Services and Prices

web hosting - Web Hosting guide to popular hosts.

Twitter Followers