- Desde
- 7 Jun 2008
- Mensajes
- 40
Por favor, ten en cuenta 📝 que si deseas hacer un trato 🤝 con este usuario, está baneado 🔒.
Hola a todos, me gustaria poner este efecto de nieve al logo del foro, pero no se si se tiene que poner directamente en la plantilla o bien se tiene que crear un bBcode, podrian ayudarme?
Un saludo.
Insertar CODE, HTML o PHP:
[LEFT][COLOR=#000000][FONT=Courier New][B]Actionscript:[/B][/FONT][/COLOR][COLOR=#666666][FONT=Courier New][/FONT][/COLOR][COLOR=#666666][FONT=Courier New]
[LIST=1]
[*]maxenganxats = [COLOR=#800000]100[/COLOR];
[*]p=[COLOR=#800000]0[/COLOR];
[*]ample = [COLOR=#0066CC]Stage[/COLOR].[COLOR=#0066CC]width[/COLOR];
[*]enganxats = [COLOR=#000000][B]new[/B][/COLOR] [COLOR=#0066CC]Array[/COLOR][COLOR=#66CC66]([/COLOR][COLOR=#66CC66])[/COLOR];
[*]creaFloc = [COLOR=#000000][B]function[/B][/COLOR][COLOR=#66CC66]([/COLOR][COLOR=#66CC66])[/COLOR][COLOR=#66CC66]{[/COLOR]
[*] p++;
[*] floket = [COLOR=#FF0000]"snow"[/COLOR] + [COLOR=#66CC66]([/COLOR][COLOR=#0066CC]Math[/COLOR].[COLOR=#0066CC]round[/COLOR][COLOR=#66CC66]([/COLOR][COLOR=#0066CC]Math[/COLOR].[COLOR=#0066CC]random[/COLOR][COLOR=#66CC66]([/COLOR][COLOR=#66CC66])[/COLOR]*[COLOR=#800000]3[/COLOR][COLOR=#66CC66])[/COLOR]+[COLOR=#800000]1[/COLOR][COLOR=#66CC66])[/COLOR];
[*] [COLOR=#000000][B]var[/B][/COLOR] ix = [COLOR=#0066CC]Math[/COLOR].[COLOR=#0066CC]random[/COLOR][COLOR=#66CC66]([/COLOR][COLOR=#66CC66])[/COLOR]*ample;
[*] [COLOR=#000000][B]var[/B][/COLOR] iy = -[COLOR=#800000]15[/COLOR];
[*]
[*] [COLOR=#0066CC]_root[/COLOR].[COLOR=#0066CC]createEmptyMovieClip[/COLOR][COLOR=#66CC66]([/COLOR][COLOR=#FF0000]"floc"[/COLOR]+p,p[COLOR=#66CC66])[/COLOR];
[*] [COLOR=#000000][B]var[/B][/COLOR] clip = [COLOR=#0066CC]_root[/COLOR][COLOR=#66CC66][[/COLOR][COLOR=#FF0000]"floc"[/COLOR]+p[COLOR=#66CC66]][/COLOR];
[*] clip.[COLOR=#0066CC]attachMovie[/COLOR][COLOR=#66CC66]([/COLOR]floket,[COLOR=#FF0000]"floc"[/COLOR],[COLOR=#800000]1[/COLOR][COLOR=#66CC66])[/COLOR];
[*]
[*] clip.$x = ix;
[*] clip.[COLOR=#0066CC]_y[/COLOR] = iy;
[*] clip.[COLOR=#006600]v[/COLOR] = [COLOR=#800000]0[/COLOR].[COLOR=#800000]5[/COLOR]+[COLOR=#0066CC]Math[/COLOR].[COLOR=#0066CC]random[/COLOR][COLOR=#66CC66]([/COLOR][COLOR=#66CC66])[/COLOR];
[*] clip.[COLOR=#006600]r[/COLOR] = [COLOR=#0066CC]Math[/COLOR].[COLOR=#0066CC]random[/COLOR][COLOR=#66CC66]([/COLOR][COLOR=#66CC66])[/COLOR]*[COLOR=#800000]10[/COLOR];
[*] clip.[COLOR=#006600]angle[/COLOR] = [COLOR=#66CC66]([/COLOR][COLOR=#0066CC]Math[/COLOR].[COLOR=#0066CC]random[/COLOR][COLOR=#66CC66]([/COLOR][COLOR=#66CC66])[/COLOR]*[COLOR=#800000]360[/COLOR][COLOR=#66CC66])[/COLOR]*[COLOR=#0066CC]Math[/COLOR].[COLOR=#0066CC]PI[/COLOR]/[COLOR=#800000]180[/COLOR];
[*]
[*] clip.[COLOR=#0066CC]onEnterFrame[/COLOR]=[COLOR=#000000][B]function[/B][/COLOR][COLOR=#66CC66]([/COLOR][COLOR=#66CC66])[/COLOR][COLOR=#66CC66]{[/COLOR]
[*] [COLOR=#0066CC]this[/COLOR].[COLOR=#0066CC]_y[/COLOR] += [COLOR=#0066CC]this[/COLOR].[COLOR=#006600]v[/COLOR];
[*] [COLOR=#0066CC]this[/COLOR].[COLOR=#0066CC]_x[/COLOR] = [COLOR=#0066CC]this[/COLOR].$x + [COLOR=#66CC66]([/COLOR][COLOR=#0066CC]Math[/COLOR].[COLOR=#0066CC]sin[/COLOR][COLOR=#66CC66]([/COLOR][COLOR=#0066CC]this[/COLOR].[COLOR=#006600]angle[/COLOR]+=[COLOR=#66CC66]([/COLOR][COLOR=#0066CC]this[/COLOR].[COLOR=#006600]v[/COLOR]/[COLOR=#800000]5[/COLOR][COLOR=#66CC66])[/COLOR][COLOR=#66CC66])[/COLOR] * [COLOR=#66CC66]([/COLOR][COLOR=#0066CC]this[/COLOR].[COLOR=#006600]r[/COLOR][COLOR=#66CC66])[/COLOR][COLOR=#66CC66])[/COLOR];
[*] [COLOR=#0066CC]this[/COLOR].[COLOR=#0066CC]_yscale[/COLOR] = [COLOR=#800000]50[/COLOR]+[COLOR=#66CC66]([/COLOR][COLOR=#0066CC]Math[/COLOR].[COLOR=#0066CC]cos[/COLOR][COLOR=#66CC66]([/COLOR][COLOR=#0066CC]this[/COLOR].[COLOR=#006600]angle[/COLOR]/[COLOR=#800000]2[/COLOR][COLOR=#66CC66])[/COLOR]*[COLOR=#800000]50[/COLOR][COLOR=#66CC66])[/COLOR];
[*] [COLOR=#0066CC]this[/COLOR].[COLOR=#0066CC]_xscale[/COLOR] = [COLOR=#800000]50[/COLOR]+[COLOR=#66CC66]([/COLOR][COLOR=#0066CC]Math[/COLOR].[COLOR=#0066CC]cos[/COLOR][COLOR=#66CC66]([/COLOR][COLOR=#0066CC]this[/COLOR].[COLOR=#006600]angle[/COLOR]/[COLOR=#800000]2[/COLOR][COLOR=#66CC66])[/COLOR]*[COLOR=#800000]50[/COLOR][COLOR=#66CC66])[/COLOR];
[*] [COLOR=#0066CC]this[/COLOR].[COLOR=#0066CC]_rotation[/COLOR] += [COLOR=#0066CC]this[/COLOR].[COLOR=#006600]v[/COLOR];
[*] [COLOR=#B1B100]if[/COLOR][COLOR=#66CC66]([/COLOR][COLOR=#0066CC]_root[/COLOR].[COLOR=#006600]pegamento[/COLOR].[COLOR=#0066CC]hitTest[/COLOR][COLOR=#66CC66]([/COLOR][COLOR=#0066CC]this[/COLOR].[COLOR=#0066CC]_x[/COLOR],[COLOR=#0066CC]this[/COLOR].[COLOR=#0066CC]_y[/COLOR],[COLOR=#000000][B]true[/B][/COLOR][COLOR=#66CC66])[/COLOR][COLOR=#66CC66])[/COLOR][COLOR=#66CC66]{[/COLOR]
[*] enganxats[COLOR=#66CC66][[/COLOR]enganxats.[COLOR=#0066CC]length[/COLOR][COLOR=#66CC66]][/COLOR] = [COLOR=#0066CC]this[/COLOR];
[*] [COLOR=#0066CC]delete[/COLOR] [COLOR=#0066CC]this[/COLOR].[COLOR=#0066CC]onEnterFrame[/COLOR];
[*] [COLOR=#66CC66]}[/COLOR]
[*]
[*] [COLOR=#B1B100]if[/COLOR][COLOR=#66CC66]([/COLOR][COLOR=#0066CC]this[/COLOR]._y> [COLOR=#800000]60[/COLOR][COLOR=#66CC66])[/COLOR][COLOR=#66CC66]{[/COLOR]
[*] [COLOR=#0066CC]this[/COLOR]._alpha-=[COLOR=#800000]20[/COLOR];
[*] [COLOR=#B1B100]if[/COLOR][COLOR=#66CC66]([/COLOR][COLOR=#0066CC]this[/COLOR]._alpha<=[COLOR=#800000]0[/COLOR][COLOR=#66CC66])[/COLOR][COLOR=#66CC66]{[/COLOR]
[*] [COLOR=#0066CC]this[/COLOR].[COLOR=#0066CC]removeMovieClip[/COLOR][COLOR=#66CC66]([/COLOR][COLOR=#66CC66])[/COLOR];
[*] [COLOR=#0066CC]delete[/COLOR] [COLOR=#0066CC]this[/COLOR].[COLOR=#0066CC]onEnterFrame[/COLOR];
[*] [COLOR=#66CC66]}[/COLOR]
[*] [COLOR=#66CC66]}[/COLOR]
[*] [COLOR=#66CC66]}[/COLOR]
[*][COLOR=#66CC66]}[/COLOR]
[*]elimina=[COLOR=#000000][B]function[/B][/COLOR][COLOR=#66CC66]([/COLOR][COLOR=#0066CC]e[/COLOR][COLOR=#66CC66])[/COLOR][COLOR=#66CC66]{[/COLOR]
[*] [COLOR=#0066CC]e[/COLOR].[COLOR=#0066CC]onEnterFrame[/COLOR]=[COLOR=#000000][B]function[/B][/COLOR][COLOR=#66CC66]([/COLOR][COLOR=#66CC66])[/COLOR][COLOR=#66CC66]{[/COLOR]
[*] [COLOR=#0066CC]this[/COLOR]._alpha-=[COLOR=#800000]10[/COLOR];
[*] [COLOR=#B1B100]if[/COLOR][COLOR=#66CC66]([/COLOR][COLOR=#0066CC]this[/COLOR]._alpha<=[COLOR=#800000]0[/COLOR][COLOR=#66CC66])[/COLOR][COLOR=#66CC66]{[/COLOR]
[*] [COLOR=#0066CC]this[/COLOR].[COLOR=#0066CC]removeMovieClip[/COLOR][COLOR=#66CC66]([/COLOR][COLOR=#66CC66])[/COLOR];
[*] [COLOR=#0066CC]delete[/COLOR] [COLOR=#0066CC]this[/COLOR].[COLOR=#0066CC]onEnterFrame[/COLOR];
[*] [COLOR=#66CC66]}[/COLOR]
[*] [COLOR=#66CC66]}[/COLOR]
[*][COLOR=#66CC66]}[/COLOR]
[*][COLOR=#0066CC]onEnterFrame[/COLOR]=[COLOR=#000000][B]function[/B][/COLOR][COLOR=#66CC66]([/COLOR][COLOR=#66CC66])[/COLOR][COLOR=#66CC66]{[/COLOR]
[*] creaFloc[COLOR=#66CC66]([/COLOR][COLOR=#66CC66])[/COLOR];
[*] [COLOR=#B1B100]if[/COLOR][COLOR=#66CC66]([/COLOR]enganxats.[COLOR=#006600]length[/COLOR]>=maxenganxats[COLOR=#66CC66])[/COLOR][COLOR=#66CC66]{[/COLOR]
[*] [COLOR=#0066CC]e[/COLOR] = enganxats.[COLOR=#006600]shift[/COLOR][COLOR=#66CC66]([/COLOR][COLOR=#66CC66])[/COLOR];
[*] elimina[COLOR=#66CC66]([/COLOR][COLOR=#0066CC]e[/COLOR][COLOR=#66CC66])[/COLOR];
[*] [COLOR=#66CC66]}[/COLOR]
[*][COLOR=#66CC66]}[/COLOR]
[/LIST]
[/FONT][/COLOR][/LEFT]
Un saludo.