RE: [Flashcoders] How do you do this? (animating gradient fillcolours)
LOL. Yeah, I've peeked at the TweenMax source code a _few_ times. For those who are interested, Rich did a great intro to TweenLite here: http://www.learningactionscript3.com/2008/06/06/tweenlite-introduction/ (thanks Rich) Also, I should mention that the whole TweenLite/Filter/Max family has a new visible (_visible in AS2) special property for toggling visibility at the end of the tween, and TweenMax has a new multiSequence() method that allows each tween in the sequence to have a different target. Oh, and forums are now online at http://forums.greensock.com. And I hope to post some video tutorials later this month, time permitting. Cheers Jack -Original Message- From: Rich Shupe [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2008 10:32 AM To: FlashCoders Subject: Re: [Flashcoders] How do you do this? (animating gradient fillcolours) Hey, Jack... You sound like you know TweenMax pretty well. (Heh.) Thanks for the great work! Rich http://www.LearningActionScript3.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] How do you do this? (animating gradient fillcolours)
For some odd reason when I run a movie in AS2 I always get the following warning Warning: 'gs' has no property '_visible' latest version of tweenlite... You wont see that on the output panel but it is written to the flashlog.txt... interesting huh? On Wed, Jul 9, 2008 at 9:02 AM, Jack Doyle [EMAIL PROTECTED] wrote: LOL. Yeah, I've peeked at the TweenMax source code a _few_ times. For those who are interested, Rich did a great intro to TweenLite here: http://www.learningactionscript3.com/2008/06/06/tweenlite-introduction/ (thanks Rich) Also, I should mention that the whole TweenLite/Filter/Max family has a new visible (_visible in AS2) special property for toggling visibility at the end of the tween, and TweenMax has a new multiSequence() method that allows each tween in the sequence to have a different target. Oh, and forums are now online at http://forums.greensock.com. And I hope to post some video tutorials later this month, time permitting. Cheers Jack -Original Message- From: Rich Shupe [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2008 10:32 AM To: FlashCoders Subject: Re: [Flashcoders] How do you do this? (animating gradient fillcolours) Hey, Jack... You sound like you know TweenMax pretty well. (Heh.) Thanks for the great work! Rich http://www.LearningActionScript3.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- ...helmut ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] How do you do this? (animating gradient fillcolours)
That is odd - never heard of that one before. Let's talk off-list and I'm sure we can figure out what the problem is. Send me your FLA if you don't mind, and let me know if you're on a Mac or PC. If anyone else has any theories, I'd welcome them. Jack -Original Message- From: Helmut Granda [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2008 3:39 PM To: Flash Coders List Subject: Re: [Flashcoders] How do you do this? (animating gradient fillcolours) For some odd reason when I run a movie in AS2 I always get the following warning Warning: 'gs' has no property '_visible' latest version of tweenlite... You wont see that on the output panel but it is written to the flashlog.txt... interesting huh? On Wed, Jul 9, 2008 at 9:02 AM, Jack Doyle [EMAIL PROTECTED] wrote: LOL. Yeah, I've peeked at the TweenMax source code a _few_ times. For those who are interested, Rich did a great intro to TweenLite here: http://www.learningactionscript3.com/2008/06/06/tweenlite-introduction/ (thanks Rich) Also, I should mention that the whole TweenLite/Filter/Max family has a new visible (_visible in AS2) special property for toggling visibility at the end of the tween, and TweenMax has a new multiSequence() method that allows each tween in the sequence to have a different target. Oh, and forums are now online at http://forums.greensock.com. And I hope to post some video tutorials later this month, time permitting. Cheers Jack -Original Message- From: Rich Shupe [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2008 10:32 AM To: FlashCoders Subject: Re: [Flashcoders] How do you do this? (animating gradient fillcolours) Hey, Jack... You sound like you know TweenMax pretty well. (Heh.) Thanks for the great work! Rich http://www.LearningActionScript3.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- ...helmut ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] How do you do this? (animating gradient fillcolours)
Thanks for your reply allandt, I can see how TweenLite could tween the color property of a movie clip but how is the gradient bit achieved? Cheers, Ali On 8 Jul 2008, at 09:39, allandt bik-elliott (thefieldcomic.com) wrote: not entirely sure but it sounds like a tweenmax color matrix tween take a look at http://blog.greensock.com/ a On Tue, Jul 8, 2008 at 9:20 AM, Ali Drongo [EMAIL PROTECTED] wrote: Hiya, how do you think you would do this? Can anyone point me to some tutorials or give me a snippet? Cheers! Ali ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] How do you do this? (animating gradient fillcolours)
i'm in uncharted waters here but i think you need to look at http://blog.greensock.com/colortransformproxy/ best a On Tue, Jul 8, 2008 at 9:46 AM, Ali Drongo [EMAIL PROTECTED] wrote: Thanks for your reply allandt, I can see how TweenLite could tween the color property of a movie clip but how is the gradient bit achieved? Cheers, Ali On 8 Jul 2008, at 09:39, allandt bik-elliott (thefieldcomic.com) wrote: not entirely sure but it sounds like a tweenmax color matrix tween take a look at http://blog.greensock.com/ a On Tue, Jul 8, 2008 at 9:20 AM, Ali Drongo [EMAIL PROTECTED] wrote: Hiya, how do you think you would do this? Can anyone point me to some tutorials or give me a snippet? Cheers! Ali ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] How do you do this? (animating gradient fillcolours)
You can use TweenMax's ability to tween hex colors and fire an onUpdate callback that applies the new values, like this (AS3): import flash.geom.* import flash.display.* import gs.*; var gradientColors:Object = {left:0xFF, right:0xFF}; var gradientMatrix:Matrix = new Matrix(); gradientMatrix.createGradientBox(100, 100, 0, 0, 0); function applyGradient():void { this.graphics.beginGradientFill(GradientType.LINEAR, [gradientColors.left, gradientColors.right], [1, 1], [0, 255], gradientMatrix, SpreadMethod.PAD); this.graphics.drawRect(0, 0, 100, 100); } applyGradient(); TweenMax.to(gradientColors, 2, {hexColors:{left:0x00FF00, right:0x660066}, onUpdate:applyGradient, delay:1}); The same sort of thing can be done in AS2 as well. You can get TweenMax at www.TweenMax.com Jack -Original Message- From: Ali Drongo [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2008 3:47 AM To: Flash Coders List Subject: Re: [Flashcoders] How do you do this? (animating gradient fillcolours) Thanks for your reply allandt, I can see how TweenLite could tween the color property of a movie clip but how is the gradient bit achieved? Cheers, Ali On 8 Jul 2008, at 09:39, allandt bik-elliott (thefieldcomic.com) wrote: not entirely sure but it sounds like a tweenmax color matrix tween take a look at http://blog.greensock.com/ a On Tue, Jul 8, 2008 at 9:20 AM, Ali Drongo [EMAIL PROTECTED] wrote: Hiya, how do you think you would do this? Can anyone point me to some tutorials or give me a snippet? Cheers! Ali ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] How do you do this? (animating gradient fillcolours)
mint! thanks Jack thats great. And thanks for such a great tool :) On 8 Jul 2008, at 16:04, Jack Doyle wrote: You can use TweenMax's ability to tween hex colors and fire an onUpdate callback that applies the new values, like this (AS3): import flash.geom.* import flash.display.* import gs.*; var gradientColors:Object = {left:0xFF, right:0xFF}; var gradientMatrix:Matrix = new Matrix(); gradientMatrix.createGradientBox(100, 100, 0, 0, 0); function applyGradient():void { this.graphics.beginGradientFill(GradientType.LINEAR, [gradientColors.left, gradientColors.right], [1, 1], [0, 255], gradientMatrix, SpreadMethod.PAD); this.graphics.drawRect(0, 0, 100, 100); } applyGradient(); TweenMax.to(gradientColors, 2, {hexColors:{left:0x00FF00, right: 0x660066}, onUpdate:applyGradient, delay:1}); The same sort of thing can be done in AS2 as well. You can get TweenMax at www.TweenMax.com Jack -Original Message- From: Ali Drongo [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2008 3:47 AM To: Flash Coders List Subject: Re: [Flashcoders] How do you do this? (animating gradient fillcolours) Thanks for your reply allandt, I can see how TweenLite could tween the color property of a movie clip but how is the gradient bit achieved? Cheers, Ali On 8 Jul 2008, at 09:39, allandt bik-elliott (thefieldcomic.com) wrote: not entirely sure but it sounds like a tweenmax color matrix tween take a look at http://blog.greensock.com/ a On Tue, Jul 8, 2008 at 9:20 AM, Ali Drongo [EMAIL PROTECTED] wrote: Hiya, how do you think you would do this? Can anyone point me to some tutorials or give me a snippet? Cheers! Ali ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] How do you do this? (animating gradient fillcolours)
Hey, Jack... You sound like you know TweenMax pretty well. (Heh.) Thanks for the great work! Rich http://www.LearningActionScript3.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] How do you do this? (animating gradient fillcolours)
lol it helps when the guys that write these things are on the boards :D On Tue, Jul 8, 2008 at 4:31 PM, Rich Shupe [EMAIL PROTECTED] wrote: Hey, Jack... You sound like you know TweenMax pretty well. (Heh.) Thanks for the great work! Rich http://www.LearningActionScript3.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders