0 Replies Latest reply on Jun 28, 2007 3:23 AM by manumasterone

    glow filters and tween class does not work!!

    manumasterone
      hi!!!! this is my problem...

      I have inserted on stage through attachmovie a mc and copied 6 times through the cycle for. . now through the class filter I have assigned for everyone the effect always through the cilo for, but I do not succeed to assign transition that is to the effect movement of the filter glow to all the mc

      for all the rollOut and rollOver works (this is looked at from the small hand and trace) but the every time that step small hand on whichever only mc to a part the transition of the effect…

      now i show the code of my fla files that is in first frame...

      quote:


      import flash.filters.GlowFilter;
      /*import flash.filters.*;*/
      import mx.transitions.Tween;
      import mx.transitions.easing.*;


      //imposto le variabili posizione
      var posX:Number = 80;
      var posY:Number = 370;

      //creo l'array di testo delle icone e del numero delle icone
      var testoIco:Array = new Array ("VIDEO","MOTION GRAPHICS","WEB SITES","ILLUSTRATIONS","BRAND","PHOTO");

      setUpButtons();

      function setUpButtons()
      {
      var gf:GlowFilter = new GlowFilter(0x000000, 100, 0, 0, 3, 3, false, false);
      //dichiaro gli effetti e li imposto
      var blurXTween:Tween = new Tween(gf, "blurX", Elastic.easeOut, 5, 5, 1, true);
      var blurYTween:Tween = new Tween(gf, "blurY", Elastic.easeOut, 5, 5, 1, true);
      //imposto il valore btnCnt
      var btnCnt = testoIco.length;
      /*ciclo for per attaccare il simbolo item dalla libreria e per moltiplicarlo
      sullo stage e dargli l'effetto*/
      for(var i=0; i < btnCnt; i++)
      {
      //attacco l'icona dalla libreria
      var icon:MovieClip = this.attachMovie("icon","icon" + i, i+1);
      var temp = this["icon"+i];
      temp.icona.testo.textButton = testoIco ;
      temp._x = (127*i) + posX;
      temp._y = posY;
      temp.ref.setMask(temp.mask);
      var glow:Array = this["gf"+i];
      temp.filters = [gf];
      /*applico l'effetto alle icone rollOver rollOut*/
      temp.onRollOver = function ()
      {
      blurXTween.continueTo(20, 2);
      blurYTween.continueTo(20, 2);
      }
      temp.onRollOut = function ()
      {
      blurXTween.continueTo(5, 2);
      blurYTween.continueTo(5, 2);
      }
      blurXTween.onMotionChanged = function ()
      {
      temp.filters = [gf];
      }
      }
      }



      i need help!!!
      sorry for my bad english....