Jump to content
Search Community

glt

Members
  • Posts

    4
  • Joined

  • Last visited

glt's Achievements

0

Reputation

  1. That puts light on it! Now that I know that, I have changed code and it works as I want. I 'm pasting the code, in case someone face similar problem timeline.insert( TweenMax.from(mc3, .5, {alpha:0, repeat:4, yoyo:true, onComplete:onfinishMc3}) ); function onfinishMc3():void { TweenMax.to( mc3, .5, {alpha:0} ); } Thank you for help. Also, I'm looking forward to support this great project!
  2. Howdy! I'm creating easy animation, with 3 mcs on the stage, mc1, mc2 and mc3. Two first mcs works like a charm, but the third one behaves not as I'd like to My goal is to make mc3 glowing (in fact that's alpha 0 -> 1 and 1 -> 0 and so on) and this works fine while the first pass of timeline plays. But suddenly on the second pass and next ones it stops "glowing" and only appears on the scene as it is. What could be the problem? Here's the code import com.greensock.*; import com.greensock.easing.*; var timeline:TimelineMax = new TimelineMax({repeat:-1, repeatDelay: 2}); timeline.insert( TweenMax.from(mc1, .5, {blurFilter:{blurX:150}, alpha:0, x:-1000, ease:Circ.easeOut}) ); timeline.insert( TweenMax.to(mc1, .5, {blurFilter:{blurX:150}, alpha:0, x:500, ease:Circ.easeIn}), 2.5 ); timeline.insert( TweenMax.from(mc2, .5, {blurFilter:{blurX:150}, alpha:0, x:-1000, ease:Circ.easeOut}), .5 ); timeline.insert( TweenMax.to(mc2, .5, {blurFilter:{blurX:150}, alpha:0, x:500, ease:Circ.easeIn}), 2.5 ); timeline.insert( TweenMax.from(mc3, .5, {alpha:0, repeat:-1, yoyo:true}) ); // this doesn't work in second cycle and later timeline.insert( TweenMax.to(mc3, .5, {alpha:0}), 2.5 ); EDIT: I'm attaching sources, so if you'd like to see what's the issue you can grab it from below. 20130125 - baner.zip
  3. Hi there, I have an array of mc's which i wish to glow IN and OUT 1 by 1 - first goes on and second one begins only after first goes off: var slupki:Array = new Array(blue1, blue2, blue3, blue4, green1, green2, green3, green4, green5, gold1, gold2, gold3, gold4, gold5); var timeline:TimelineMax = new TimelineMax({repeat:-1, yoyo:true}); timeline.insertMultiple( TweenMax.allTo(slupki, .5, {glowFilter:{color:0xffffff, alpha:1, blurX:30, blurY:30}}, .5) ); /* tried also something like this... for(var i:int=0; i { timeline.insert( TweenMax.to(slupki[i], .5, {glowFilter:{color:0xffffff, alpha:1, blurX:30, blurY:30}}) ) } */ Unfortunetly they keep glowing 1 by 1 but the sequence is: 1st glows on then second glows on etc. till reach last one - then it begins turning glow off. I wish it would be: 1st glows on then glows off then 2nd goes on and off etc. Have no idea how to build code to make em work like i wish. Thanks for help in advance and sorry for my poor English Cheers
  4. Hi I'm new to this component and to AS3 at all. I've wrote simple function to handle my button on CLICK Event, which is: btnGoToSpis.addEventListener(MouseEvent.CLICK, goToSpisPl); function goToSpisPl(e:MouseEvent):void { gotoAndPlay("pl_spis"); } I wish I could add some effects before it goes to "pl_spis", like for ex. "alpha" to stage. I'm not sure do I make myself clear enough... // EDIT Problem solved. Here is the code: btnGoToSpis.addEventListener(MouseEvent.CLICK, goToSpisPl); function goToSpisPl(e:MouseEvent):void { TweenMax.to ( this, .25, {alpha:0, onComplete:funckjaZmienKlatke, onCompleteParams:["pl_spis"]}); } function funckjaZmienKlatke(n:String):void { gotoAndPlay(n); TweenMax.to ( this, .25, {alpha:1}); }
×
×
  • Create New...