Comunidad de diseño web y desarrollo en internet online

flash navideño

Citar            
MensajeEscrito el 07 Nov 2008 10:14 pm
Un cordial saludo a todos , soy no vato en falsh y necesito hacer un banner para un popup navideño la idea es que
al abrir la pagina en esrta aparezva un banner flotante con un efecto de nieve y unas palabras para desear feliz navidad
y prospero año , tonces me gustaria sabe como hacer el efecto de caida de nieve .

Si alguien pude colaborarme con esto se lo agradezco.

Por arbegax29

8 de clabLevel



 

firefox
Citar            
MensajeEscrito el 07 Nov 2008 11:23 pm
aca en clab hay un tutorial ^^

Por ironeric23

Claber

407 de clabLevel



Genero:Femenino  

mozilla
Citar            
MensajeEscrito el 07 Nov 2008 11:33 pm
me puedes dar el enlace del tutorial?

Por arbegax29

8 de clabLevel



 

firefox
Citar            
MensajeEscrito el 07 Nov 2008 11:44 pm
si te podria dar el enlace pero un minimo de esfuerzo
arriba en el buscador pones nieve
y ya aparecen dos resultados uno para as2 y otro para as3
pilas che :)
besos

Por ironeric23

Claber

407 de clabLevel



Genero:Femenino  

mozilla
Citar            
MensajeEscrito el 08 Nov 2008 01:53 pm
Gracias por tu ayuda men

Por arbegax29

8 de clabLevel



 

firefox
Citar            
MensajeEscrito el 08 Nov 2008 03:09 pm
Hola ya estuve mirando el tutorial :
http://www.cristalab.com/tutoriales/137/efecto-de-nieve-en-flash.html
pero como dije antes soy no vato y ha algunas cosas que me gustarian que fueran mas explicitas (pao a paso)

como esto:

1-Crear otro MovieClip cuyo nombre será Control, de igual forma que el anterior, y dejarlo en blanco. Arrastrarlo al escenario y ponerle por nombre de instancia control_mc . AQUI NO SE COMO LLEGAR HASTA L A PANTALLITA QUE MUESTRA LA FOTO

2-osteriormente, se procede a programar el evento onEnterFrame para que cada vez que entre se ejecute la función que crea los copos de nieve llamada, en este caso, createSnow . AQUI NO TENGO IDE DE COMO LLEGAR A ESA LINEA DE COMANDOS DE PROGRAMACION


3-Por último, randRange es una función auxiliar que devuelve un número aleatorio entre dos extremos, ambos inclusive.


bUENO ESPERO UN POCO DE AYUDA SI SE PUEDE Y DISCULPEN .

Por arbegax29

8 de clabLevel



 

firefox
Citar            
MensajeEscrito el 16 Dic 2011 11:55 pm
Hola te ayudaré, paso a paso y ojala te sirva. (Ojo esto es para CS5 y AS3)

1. Creas tu documento nuevo cualquier medida que desees.
2. En un layer creas un circulito blanco como de 12 x 12 px.
3. Ese circulito lo comviertes en MC (Movie Clip) con nombre "snow".
4. Te vas a Librerias y le das clic derecho al MC "snow" y entras a Propiedades.
5. Haces clic en la opción "Export for ActionScript" y debajo en la opción Class escribes "snow".
6. Luego creas un layer nuevo y en el primer Frame vacio escribes el siguiente código AS3.

// Tamaños pantalla
var width2 = stage.stageWidth;
var height2 = stage.stageHeight;
// Máximo tamaño copos y cantidad
var max_tamaño = 10;
var copos = 100;
function init () {
for (var i:Number=0; i<copos; i++) {

var t:snow=new snow();
addChild(t);
t.alpha = 0.2+Math.random()*0.6;
t.x = -(width2/2)+Math.random()*(1.5*width2);
t.y = -(height2/2)+Math.random()*(1.5*height2);
t.scaleX = t.scaleY=0.5+Math.random()*(max_tamaño*0.1);
t.k = 1+Math.random()*2;
t.viento = -1.5+Math.random()*(1.4*3);
t.addEventListener(Event.ENTER_FRAME, mover);
}
};
function mover(e:*){
e.target.y += e.target.k;
e.target.x += e.target.viento;
if (e.target.y>height2+10) {

e.target.y = -20;

}

if (e.target.x>width2+20) {

e.target.x = -(width2/2)+Math.random()*(1.5*width2);
e.target.y = -20;

}
else if (e.target.x<-20) {

e.target.x = -(width2/2)+Math.random()*(1.5*width2);
e.target.y = -20;
}
}
init();

7. Listo, más fácil no telo puedo hacer.

Por jvtalavera

7 de clabLevel



Genero:Masculino  

firefox

 

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