Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/06/2010, 22:15
Avatar de mortiprogramador
mortiprogramador
Colaborador
 
Fecha de Ingreso: septiembre-2009
Ubicación: mortuoria
Mensajes: 3.805
Antigüedad: 14 años, 8 meses
Puntos: 214
Respuesta: Efecto polvo de estrellas y Como subir un *.swf a la web gratis

Hola
Bueno, luego de varias pruebas, encontre una solución, no se si será la más sensata pero aqui va

pasos
0. en el fla stardustMenu.fla ir a la biblioteca, buscar menuClip y hacerle una copia (en mi caso la llame menuclip2 tanto a la copia como a su nombre de instancia)
y luego la agregue en el layer menu de Scene1

Seguidamente, me fui al interior de dicha copia, y en su layer as modifique el código para dejarlo de este modo

Código actionscript:
Ver original
  1. import caurina.transitions.*;
  2.  
  3.     var butn_one:genericMenuButton;
  4.  
  5.     butn_one = new genericMenuButton();
  6.     butn_one.name = "butn_one";
  7.     butn_one.num = 1;
  8.     butn_one.x = 0;
  9.     butn_one.y = -30;
  10.     butn_one.textclip.titler.text = "test";
  11.     butn_one.textclip.titler.width = butn_one.textclip.titler.textWidth + 5;
  12.     butn_one.bg.width = Math.round(butn_one.textclip.titler.textWidth) + 21;
  13.     butn_one.hit.width = Math.round(butn_one.textclip.titler.textWidth) + 21;
  14.     butn_one.shinearea.width = Math.round(butn_one.textclip.titler.textWidth) + 21;
  15.     butn_one.gloss.width = Math.round(butn_one.textclip.titler.textWidth) + 20;
  16.     butn_one.shiner.mouseEnabled = false;
  17.     butn_one.shiner.mouseChildren = false;
  18.     butn_one.hit.buttonMode = true;
  19.     butn_one.hit.addEventListener(Event.ENTER_FRAME, entraFrame);
  20.     addChild(butn_one);
  21.  
  22. function entraFrame(event:Event):void {
  23.     event.target.parent.starduster.gotoAndStop(2);
  24.     event.target.parent.shiner.x = -160;
  25.     event.target.parent.shiner.y = 58;
  26.     Tweener.addTween(event.target.parent.shiner, {x:-100 + event.target.width, y:68 + event.target.width, time:MovieClip(parent).shineEffectSpeed});
  27. }

Que hace esto? pues lo mismo que menuClip, con algunas diferencias.
Cuales? no usa el array de botones para el for y para el text del botón, sino que hago un solo botón y asigno el text y coordenadas directamente

y con esto ya queda infinito el efecto stardust
saludos
__________________
"Si consigues ser algo más que un hombre, si te entregas a un ideal, si nadie puede detenerte, te conviertes en algo muy diferente."
Visita piggypon.com