Jump to content
Search Community

dougz

Members
  • Posts

    3
  • Joined

  • Last visited

dougz's Achievements

0

Reputation

  1. Very basic TweenMax question here, but I can't find anything about it. I need to have a button in a child movieclip that, when clicked, triggers a tween on a movieclip in the parent (root) timeline. I've tried several (seemingly) logical options, but they are all throwing errors. Here's one of the (incorrect) options, just to suggest what I'm trying to do: close_btn.addEventListener(MouseEvent.CLICK,onClose); function onClose(evt:MouseEvent):void{ TweenMax.to(parent.what_btn, 5, {alpha:0});} Can someone please post a simple AS3 example of how to do this? Thank you.
  2. dougz

    Yoyo problems

    I'll answer my own question here, in case anyone finds this. As we might have guessed, a misplaced bracket was the culprit. Correct code is TweenMax.to(impresa_blue1, 2, {glowFilter:{color:0xFFFFFF,alpha:1,blurX:10,blurY:10},repeat:-1,yoyo:true}); , so that the properties for the glow are bracketed within the properties for the whole tween.
  3. Hello, I am brand new to TweenMax and probably making a silly mistake, but hopefully it will only take someone a second to diagnose the problem. I'm trying to make an object pulse with an outer glow, indefinitely. This is the AS I'm using: TweenMax.to(mc, 2, {glowFilter:{color:0xFFFFFF, alpha:1, blurX:10, blurY:10, repeat:-1, yoyo:true}}); The object does glow, but with no pulsing, it simply tweens the glow alpha to 1 and then leaves it there. What am I doing wrong? Thanks very much for your help.
×
×
  • Create New...