All pastes #481178 Raw Edit

Someone

public text v1 · immutable
·published 2007-05-10 17:49 UTC
rendered paste body
onClipEvent(enterFrame) {
	i = i +1
	import mx.transitions.Tween;
	import mx.transitions.easing.*;
	
	_root.createEmptyMovieClip("new",1);
	attachMovie("drop", i, 1);
	var ref = x.attachMovie
	
	ref._x = Math.random()*Stage.width;
	ref._y = Stage.height - Stage.height;

	var i:Tween = new Tween(drop, "_y", Bounce.easeOut, 0, Stage.height, 5, true);

	i.onMotionFinished = function() {
		this.continueTo(Stage.height / 2, 3);
		};
}