Comunidad de diseño web y desarrollo en internet online

Alguien me puede explicar?

Citar            
MensajeEscrito el 02 Jun 2009 01:00 am
Hola quisiera si alguien puede explicarme este código linea por linea ya que no se nada de as, el tema es que este código esta dentro de un clipmovie vació y yo lo pongo dentro de otro para que se reproduzca ahí dentro y no se me reproduce en toda la pantalla. Desde ya muchas gracias.


attachMovie(random(6), "content", 1);
this._x = random(Stage.width)-(this._width/2);
this._y = random(Stage.height)-(this._height/2)-Stage.height-200;
//
this._xscale = random(190)+50;
this._yscale = this._xscale;
//
this.blendMode = "add";
this.blurX = 100;
this.blurY = 100;
//
ball_speed = random(7)+3;
//
onEnterFrame = function () {
this._y += ball_speed;
if (_y>Stage.height) {
this._y = random(Stage.height)-(this._height/2)-Stage.height-this._height;
}
};
// add some blur effects
var some_filters:Array = this.filters;
// blur x, y , quality
blur_power = random(10)+5;
var my_blur = new flash.filters.BlurFilter(20, 20, 1);
this.filters = [my_blur];
//
import flash.filters.GlowFilter;
var mc:MovieClip = createGlowFilterRectangle("GlowFilterBlurX");
mc.onRelease = function() {
var filter:GlowFilter = this.filters[0];
filter.blurX = 20;
this.filters = new Array(filter);
};

Por tolo

3 de clabLevel



 

chrome
Citar            
MensajeEscrito el 02 Jun 2009 08:35 am
Bueno para postear un código y que sea legible sitúalo entre tags de action script:

Código :

[as]
//---Tu código aquí
[/as]


Por lo pronto elimina el blendMode, puede que sea el que te está causando el problema:

Código ActionScript :

this.blendMode = "add";

Por elchininet

Claber

3921 de clabLevel

17 tutoriales

Genero:Masculino  

Front-end developer at Booking.com

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.