Jump to content
Search Community

Search the Community

Showing results for 'overwrite'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • GreenSock Forums
    • GSAP
    • Banner Animation
    • Jobs & Freelance
  • Flash / ActionScript Archive
    • GSAP (Flash)
    • Loading (Flash)
    • TransformManager (Flash)

Product Groups

  • Club GreenSock
  • TransformManager
  • Supercharge

Categories

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Personal Website


Twitter


CodePen


Company Website


Location


Interests

  1. how can i cancel an existing delayed tween when i create another tween that tweens the same object´s propoerty? for example, i have: private function showPopUp():void { var inpopup:TweenLite = new TweenLite(popup, 0.25, {alpha: 1, ease: Linear.easeIn, onComplete:function() { var outpopup:TweenLite = new TweenLite(popup, 0.25, {alpha: 0, delay: 3.5, ease: Linear.easeIn}); } }); } that function is called in different situations, to show a popup with some text. i´ll try to say it simple : let´s say the popup mc pops in and before it pops out, i tell him to pop in again, let´s say, after 3 seconds. then the popup mc pops out within 0.5 seconds, instead of 3.5. shouldn´t it overwrite "itself" ? i get confused. its "overwrite" property defaults to true, right? i´ve tried already in different manners, for example, by only creating a new tween instead of declaring it into a variable. obs: it works well in my computer but not in the server !!! help!
  2. TweenLiteVars and TweenMaxVars (inherited) contain a Boolean typecasting error that causes all instances of TweenLiteVars and TweenMaxVars to use a default value of "false" for the "overwrite" property, although the documentation indicates that this should default to an int value of 2/AUTO when the OverwriteManager is in use. This bug exists in the latest build, 11/25/2009 The workaround is to use a simple Object instead of TweenLiteVars or TweenMaxVars
  3. Hi Guys, I'm breaking my head because I can't figure this one out... How can I reuse an array of tweens multiple times without overwriting it? In the bellow example the "animate2" always overwrites the "animate1" . I've tried the ovewrite manager but no luck. var myTimeline:TimelineLite = new TimelineLite(); myTimeline.addLabel("animate1", 0); myTimeline.addLabel("move", 2); myTimeline.addLabel("animate2", 4); var animate:Array = new Array(new TweenLite(mcBall,1,{x:10}),new TweenLite(mcBall,1,{x:0,delay:1,overwrite:0})); myTimeline.insertMultiple(animate,"animate1"); myTimeline.insert(new TweenLite(mcRect,1,{x:100}),"move"); myTimeline.insertMultiple(animate,"animate2");
  4. Jack, loving your new platform. Spent the past weekend kicking the tires. Question, in using the following code I'm discovering that the brightness tweens in the 'over' and 'out' functions seem to be overwriting the tweens in the clickHandler function. What's the story here? Not sure what to do about this. Any help is greatly appreciated. import com.greensock.*; import com.greensock.easing.*; var clipArray:Array = [one, two, three, four, five]; for (var i:int = 0; i < clipArray.length; i++) { clipArray[i].buttonMode = true; clipArray[i].addEventListener(MouseEvent.CLICK, clickHandler); clipArray[i].addEventListener(MouseEvent.ROLL_OVER, over); clipArray[i].addEventListener(MouseEvent.ROLL_OUT, out); } function clickHandler(event:MouseEvent):void { for (var i:int = 0; i < clipArray.length; i++) { if (event.currentTarget == clipArray[i]) { clipArray[i].mouseEnabled = false; clipArray[i].buttonMode = false; TweenMax.to(clipArray[i], 1, {colorMatrixFilter:{brightness:2}}); } else { clipArray[i].mouseEnabled = true; clipArray[i].buttonMode = true; clipArray[i].alpha = 1; TweenMax.to(clipArray[i], 1, {colorMatrixFilter:{brightness:1}}); } } } function over(event:MouseEvent):void { TweenMax.to(event.currentTarget, .3, {colorMatrixFilter:{brightness:1.3}}); } function out(event:MouseEvent):void { TweenMax.to(event.currentTarget, .3, {colorMatrixFilter:{brightness:1}}); }
×
×
  • Create New...