Jump to content

Efeito Neve Action Script 3.0

mateus dias

Recommended Posts

mateus dias


Estou procurando código As 3.0 que faça o efeito neve caindo, eu só encontro no As 2.0?

Será que existe esse código as 3 para o efeito que desejo ?

Segue o código que tenho do As 2.0

this.createEmptyMovieClip("canvas_mc", 10);
var i = 0;
myInterval = setInterval(addFlake, 500);
function addFlake() {
if(1<20) {
	 var t:MovieClip = canvas_mc.attachMovie("snowflake","flake"+i,canvas_mc.getNextHighestDepth());
	 t._xscale = t._yscale = Mach.random() *80+20;
	 t._x = Math.random()*Stage.width;
	 t._y = -50;
	 t._alpha = Math.random()*40+50;
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.