// Created by Andrew Odendaal
//
// :: DESCRIPTION ::
// Animate a ball moving to the top
// of the screen/stage and back again
//
// :: HOW TO USE ::
// create a circle shape, convert to a movieclip(mc) and
// place the registration point at the bottom center.
// give the circle mc an stage instance name of 'ball'.
var ball:MovieClip;
var initBallY:Number = _root.ball._y;
onEnterFrame = function() {
if (_root.ball._y < 2.31) {
_root.ball._y = initBallY;
} else {
_root.ball._y=_root.ball._y-10;
}
}
Animate with Actionscript [part1]
Top Related Articles
- How to load xml into flash using actionscript 2
- Uppercase text in Actionscript
- Actionscript 3 equivalent of PHP’s print_r
- Global variables and functions in Actionscript 2
- Actionscript conflicting class name
- To Install IIS 7.0 on Windows Vista – script
- Kill Adobe Updater
- Apache Cannot be Run. Another web server is using the web port or port is blocked by firewall.
- TypeError: node is null message=node is null
- Cant start your browser?