All pastes #481200 Raw Edit

Unnamed

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

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

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