Re: [flexcoders] Fade from one color to another
Darron, Thank you. Yes, I found your site. I was wondering if you'd notice that. ;) On 12/9/06, Dustin Mercer <[EMAIL PROTECTED]> wrote: Dorkie, Sorry I didn't get back to you earlier, been away from email. The reason that grayish color appears is because of the way I am doing the fade. It goes to the default color of the app, the one that is behind the background color. I could show you how to get around it, but Darron's way is the correct way. That was just a few minute hack job to get something goingJ Actually I will probably use Darron's example to retrofit my old code. Thanks Darron! Here's the link to his post. http://www.darronschall.com/weblog/archives/000251.cfm Dustin Mercer -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *dorkie dork from dorktown *Sent:* Friday, December 08, 2006 1:18 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Fade from one color to another @dustin - Do you know if there is a way to get around the grayish color in the middle of the transition? It looks like it fades from white to the grayish color then to black. And the same from black to white. Here is my code: http://www.adobe.com/2006/mxml"; layout="absolute" styleName="plain"> On 12/6/06, *Deepa Subramaniam* <[EMAIL PROTECTED]> wrote: What about overriding the onTweenUpdate event handlers didn't work? I'll try to whip together an example that works in the next day or two. -deepa -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *dorkie dork from dorktown *Sent:* Tuesday, December 05, 2006 11:23 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Fade from one color to another @dustin - that worked for simple colors that are close by but not for pure white to pure black #FF, #00 @deepa - i could not get that to work after one hour. i decided to try to dissolve from one state to another. one state has a white background. the other state has a black background. the code i wrote makes sense to me but the effects are triggering at the wrong time. shouldn't this work? if there is more the fromState and toState are misleading. http://www.adobe.com/2006/mxml"; layout="absolute" styleName="plain"> On 12/4/06, *Deepa Subramaniam* < [EMAIL PROTECTED]> wrote: Ah – that is because AnimateProperty is just cycling through all the RGB values between your fromValue color and your endValue color. What you may want to do is add an event handler for the tweenUpdate event on the AnimateProperty effect instance and check to see what the value passed in the TweenEvent object is. That value is what the backgroundColor is at that moment in the lifetime of the effect. You can then add in your own logic that sets the backgroundColor depending on where the effect is in its lifetime (ie: simulate a progression from dark gray to light gray). I'm not 100% sure how that will work out but I'd be interested in finding out what doesn't work about it. Incidentally, you should check out Alex Uhlmann's Animation Package where I think he has an effect that does exactly what you want. That will probably be easier J http://www.alex-uhlmann.de/flash/animationpackage/ -deepa -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *dorkie dork from dorktown *Sent:* Monday, December 04, 2006 2:31 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Fade from one color to another i see. that mostly works. except now it cycles through every color giving a flicker effect like i am on acid. try this to see: http://www.adobe.com/2006/mxml"; layout="absolute" styleName="plain" creationCompleteEffect="{fadeColor}"> If i change the fromValue and the toValue to a two digit number like so it is a very smooth transition but it does not fade from white. It only fades from blue. Try this: I am thinking of just transitioning to a blank black state but that feels like a hack. dorkie best practices dork from dorktown On 12/4/06, *Deepa Subramaniam *<[EMAIL PROTECTED]> wrote: Set the the isStyle property to true in your AnimateProperty tag. -deepa -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *dorkie dork from dorktown *Sent:* Monday, December 04, 2006 5:25 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Fade from one color to another
RE: [flexcoders] Fade from one color to another
Dorkie, Sorry I didn't get back to you earlier, been away from email. The reason that grayish color appears is because of the way I am doing the fade. It goes to the default color of the app, the one that is behind the background color. I could show you how to get around it, but Darron's way is the correct way. That was just a few minute hack job to get something going:-) Actually I will probably use Darron's example to retrofit my old code. Thanks Darron! Here's the link to his post. http://www.darronschall.com/weblog/archives/000251.cfm Dustin Mercer From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dorkie dork from dorktown Sent: Friday, December 08, 2006 1:18 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Fade from one color to another @dustin - Do you know if there is a way to get around the grayish color in the middle of the transition? It looks like it fades from white to the grayish color then to black. And the same from black to white. Here is my code: http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> " layout="absolute" styleName="plain"> On 12/6/06, Deepa Subramaniam <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: What about overriding the onTweenUpdate event handlers didn't work? I'll try to whip together an example that works in the next day or two. -deepa From: flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> ] On Behalf Of dorkie dork from dorktown Sent: Tuesday, December 05, 2006 11:23 PM To: flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> Subject: Re: [flexcoders] Fade from one color to another @dustin - that worked for simple colors that are close by but not for pure white to pure black #FF, #00 @deepa - i could not get that to work after one hour. i decided to try to dissolve from one state to another. one state has a white background. the other state has a black background. the code i wrote makes sense to me but the effects are triggering at the wrong time. shouldn't this work? if there is more the fromState and toState are misleading. http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> " layout="absolute" styleName="plain"> On 12/4/06, Deepa Subramaniam < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: Ah - that is because AnimateProperty is just cycling through all the RGB values between your fromValue color and your endValue color. What you may want to do is add an event handler for the tweenUpdate event on the AnimateProperty effect instance and check to see what the value passed in the TweenEvent object is. That value is what the backgroundColor is at that moment in the lifetime of the effect. You can then add in your own logic that sets the backgroundColor depending on where the effect is in its lifetime (ie: simulate a progression from dark gray to light gray). I'm not 100% sure how that will work out but I'd be interested in finding out what doesn't work about it. Incidentally, you should check out Alex Uhlmann's Animation Package where I think he has an effect that does exactly what you want. That will probably be easier :-) http://www.alex-uhlmann.de/flash/animationpackage/ <http://www.alex-uhlmann.de/flash/animationpackage/> -deepa From: flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> ] On Behalf Of dorkie dork from dorktown Sent: Monday, December 04, 2006 2:31 PM To: flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> Subject: Re: [flexcoders] Fade from one color to another i see. that mostly works. except now it cycles through every color giving a flicker effect like i am on acid. try this to see: http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> " layout="absolute" styleName="plain" creationCompleteEffect="{fadeColor}"> If i change the fromValue and the toValue to a two digit number like so it is a very smooth transition but it does not fade from white. It only fades from blue. Try this: I am thinking of just transitioning to a blank black state but that feels like a hack. dorkie best practices dork from dorktown On 12/4/06, Deepa Subramaniam <[E
Re: [flexcoders] Fade from one color to another
Dorkie, this one's for you: http://www.darronschall.com/weblog/archives/000251.cfm I see from your sample color values that you found my old ActionScript 1 code to fade colors ;-) I went ahead and turned the logic into a new effect so you can easily apply color transitions in Flex 2. Usage is as follows: Demo .swf here (view-source enabled): http://www.darronschall.com/downloads/AnimateColorDemo/AnimateColorDemo.html Download source here: http://www.darronschall.com/downloads/AnimateColorDemo/srcview/AnimateColorDemo.zip Enjoy. -d dorkie dork from dorktown wrote: > > I need to fade my application background color from 0xC47D31 to > 0x67DEF9 and I have no idea where to start. I've seen AS2 actionscript > around that I can try to convert but what I'm looking for is a already > built MXML component Effect, similar to mx:Fade or Dissolve. > > I tried this and received errors: > creationCompleteEffect="{fadeColor}"> > toValue="#00" target="{Application.application}" duration="5000"/> > > ReferenceError: Error #1069: Property backgroundColor not found on > TestApplication and there is no default value. > at > mx.effects.effectClasses::AnimatePropertyInstance/::getCurrentValue() > > dorkie mood changing dork from dorktown > >
Re: [flexcoders] Fade from one color to another
@dustin - Do you know if there is a way to get around the grayish color in the middle of the transition? It looks like it fades from white to the grayish color then to black. And the same from black to white. Here is my code: http://www.adobe.com/2006/mxml"; layout="absolute" styleName="plain"> On 12/6/06, Deepa Subramaniam <[EMAIL PROTECTED]> wrote: What about overriding the onTweenUpdate event handlers didn't work? I'll try to whip together an example that works in the next day or two. -deepa -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *dorkie dork from dorktown *Sent:* Tuesday, December 05, 2006 11:23 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Fade from one color to another @dustin - that worked for simple colors that are close by but not for pure white to pure black #FF, #00 @deepa - i could not get that to work after one hour. i decided to try to dissolve from one state to another. one state has a white background. the other state has a black background. the code i wrote makes sense to me but the effects are triggering at the wrong time. shouldn't this work? if there is more the fromState and toState are misleading. http://www.adobe.com/2006/mxml"; layout="absolute" styleName="plain"> On 12/4/06, *Deepa Subramaniam* < [EMAIL PROTECTED]> wrote: Ah – that is because AnimateProperty is just cycling through all the RGB values between your fromValue color and your endValue color. What you may want to do is add an event handler for the tweenUpdate event on the AnimateProperty effect instance and check to see what the value passed in the TweenEvent object is. That value is what the backgroundColor is at that moment in the lifetime of the effect. You can then add in your own logic that sets the backgroundColor depending on where the effect is in its lifetime (ie: simulate a progression from dark gray to light gray). I'm not 100% sure how that will work out but I'd be interested in finding out what doesn't work about it. Incidentally, you should check out Alex Uhlmann's Animation Package where I think he has an effect that does exactly what you want. That will probably be easier J http://www.alex-uhlmann.de/flash/animationpackage/ -deepa -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *dorkie dork from dorktown *Sent:* Monday, December 04, 2006 2:31 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Fade from one color to another i see. that mostly works. except now it cycles through every color giving a flicker effect like i am on acid. try this to see: http://www.adobe.com/2006/mxml"; layout="absolute" styleName="plain" creationCompleteEffect="{fadeColor}"> If i change the fromValue and the toValue to a two digit number like so it is a very smooth transition but it does not fade from white. It only fades from blue. Try this: I am thinking of just transitioning to a blank black state but that feels like a hack. dorkie best practices dork from dorktown On 12/4/06, *Deepa Subramaniam *<[EMAIL PROTECTED]> wrote: Set the the isStyle property to true in your AnimateProperty tag. -deepa -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *dorkie dork from dorktown *Sent:* Monday, December 04, 2006 5:25 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Fade from one color to another I need to fade my application background color from 0xC47D31 to 0x67DEF9 and I have no idea where to start. I've seen AS2 actionscript around that I can try to convert but what I'm looking for is a already built MXML component Effect, similar to mx:Fade or Dissolve. I tried this and received errors: creationCompleteEffect="{fadeColor}"> ReferenceError: Error #1069: Property backgroundColor not found on TestApplication and there is no default value. at mx.effects.effectClasses::AnimatePropertyInstance/::getCurrentValue () dorkie mood changing dork from dorktown
RE: [flexcoders] Fade from one color to another
Dorkie, Here is a better example that fixes the problem with fading the children... From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dustin Mercer Sent: Wednesday, December 06, 2006 12:18 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Fade from one color to another Dorkie, What about this example? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dorkie dork from dorktown Sent: Tuesday, December 05, 2006 11:23 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Fade from one color to another @dustin - that worked for simple colors that are close by but not for pure white to pure black #FF, #00 @deepa - i could not get that to work after one hour. i decided to try to dissolve from one state to another. one state has a white background. the other state has a black background. the code i wrote makes sense to me but the effects are triggering at the wrong time. shouldn't this work? if there is more the fromState and toState are misleading. http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> " layout="absolute" styleName="plain"> On 12/4/06, Deepa Subramaniam < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: Ah - that is because AnimateProperty is just cycling through all the RGB values between your fromValue color and your endValue color. What you may want to do is add an event handler for the tweenUpdate event on the AnimateProperty effect instance and check to see what the value passed in the TweenEvent object is. That value is what the backgroundColor is at that moment in the lifetime of the effect. You can then add in your own logic that sets the backgroundColor depending on where the effect is in its lifetime (ie: simulate a progression from dark gray to light gray). I'm not 100% sure how that will work out but I'd be interested in finding out what doesn't work about it. Incidentally, you should check out Alex Uhlmann's Animation Package where I think he has an effect that does exactly what you want. That will probably be easier :-) http://www.alex-uhlmann.de/flash/animationpackage/ <http://www.alex-uhlmann.de/flash/animationpackage/> -deepa From: flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> ] On Behalf Of dorkie dork from dorktown Sent: Monday, December 04, 2006 2:31 PM To: flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> Subject: Re: [flexcoders] Fade from one color to another i see. that mostly works. except now it cycles through every color giving a flicker effect like i am on acid. try this to see: http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> " layout="absolute" styleName="plain" creationCompleteEffect="{fadeColor}"> If i change the fromValue and the toValue to a two digit number like so it is a very smooth transition but it does not fade from white. It only fades from blue. Try this: I am thinking of just transitioning to a blank black state but that feels like a hack. dorkie best practices dork from dorktown On 12/4/06, Deepa Subramaniam <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: Set the the isStyle property to true in your AnimateProperty tag. -deepa From: flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> ] On Behalf Of dorkie dork from dorktown Sent: Monday, December 04, 2006 5:25 AM To: flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> Subject: [flexcoders] Fade from one color to another I need to fade my application background color from 0xC47D31 to 0x67DEF9 and I have no idea where to start. I've seen AS2 actionscript around that I can try to convert but what I'm looking for is a already built MXML component Effect, similar to mx:Fade or Dissolve. I tried this and received errors: creationCom
RE: [flexcoders] Fade from one color to another
What about overriding the onTweenUpdate event handlers didn't work? I'll try to whip together an example that works in the next day or two. -deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dorkie dork from dorktown Sent: Tuesday, December 05, 2006 11:23 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Fade from one color to another @dustin - that worked for simple colors that are close by but not for pure white to pure black #FF, #00 @deepa - i could not get that to work after one hour. i decided to try to dissolve from one state to another. one state has a white background. the other state has a black background. the code i wrote makes sense to me but the effects are triggering at the wrong time. shouldn't this work? if there is more the fromState and toState are misleading. http://www.adobe.com/2006/mxml"; layout="absolute" styleName="plain"> On 12/4/06, Deepa Subramaniam < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: Ah - that is because AnimateProperty is just cycling through all the RGB values between your fromValue color and your endValue color. What you may want to do is add an event handler for the tweenUpdate event on the AnimateProperty effect instance and check to see what the value passed in the TweenEvent object is. That value is what the backgroundColor is at that moment in the lifetime of the effect. You can then add in your own logic that sets the backgroundColor depending on where the effect is in its lifetime (ie: simulate a progression from dark gray to light gray). I'm not 100% sure how that will work out but I'd be interested in finding out what doesn't work about it. Incidentally, you should check out Alex Uhlmann's Animation Package where I think he has an effect that does exactly what you want. That will probably be easier :-) http://www.alex-uhlmann.de/flash/animationpackage/ -deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dorkie dork from dorktown Sent: Monday, December 04, 2006 2:31 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Fade from one color to another i see. that mostly works. except now it cycles through every color giving a flicker effect like i am on acid. try this to see: http://www.adobe.com/2006/mxml"; layout="absolute" styleName="plain" creationCompleteEffect="{fadeColor}"> If i change the fromValue and the toValue to a two digit number like so it is a very smooth transition but it does not fade from white. It only fades from blue. Try this: I am thinking of just transitioning to a blank black state but that feels like a hack. dorkie best practices dork from dorktown On 12/4/06, Deepa Subramaniam <[EMAIL PROTECTED]> wrote: Set the the isStyle property to true in your AnimateProperty tag. -deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dorkie dork from dorktown Sent: Monday, December 04, 2006 5:25 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Fade from one color to another I need to fade my application background color from 0xC47D31 to 0x67DEF9 and I have no idea where to start. I've seen AS2 actionscript around that I can try to convert but what I'm looking for is a already built MXML component Effect, similar to mx:Fade or Dissolve. I tried this and received errors: creationCompleteEffect="{fadeColor}"> ReferenceError: Error #1069: Property backgroundColor not found on TestApplication and there is no default value. at mx.effects.effectClasses::AnimatePropertyInstance/::getCurrentValue() dorkie mood changing dork from dorktown
RE: [flexcoders] Fade from one color to another
Dorkie, What about this example? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dorkie dork from dorktown Sent: Tuesday, December 05, 2006 11:23 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Fade from one color to another @dustin - that worked for simple colors that are close by but not for pure white to pure black #FF, #00 @deepa - i could not get that to work after one hour. i decided to try to dissolve from one state to another. one state has a white background. the other state has a black background. the code i wrote makes sense to me but the effects are triggering at the wrong time. shouldn't this work? if there is more the fromState and toState are misleading. http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> " layout="absolute" styleName="plain"> On 12/4/06, Deepa Subramaniam < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: Ah - that is because AnimateProperty is just cycling through all the RGB values between your fromValue color and your endValue color. What you may want to do is add an event handler for the tweenUpdate event on the AnimateProperty effect instance and check to see what the value passed in the TweenEvent object is. That value is what the backgroundColor is at that moment in the lifetime of the effect. You can then add in your own logic that sets the backgroundColor depending on where the effect is in its lifetime (ie: simulate a progression from dark gray to light gray). I'm not 100% sure how that will work out but I'd be interested in finding out what doesn't work about it. Incidentally, you should check out Alex Uhlmann's Animation Package where I think he has an effect that does exactly what you want. That will probably be easier :-) http://www.alex-uhlmann.de/flash/animationpackage/ <http://www.alex-uhlmann.de/flash/animationpackage/> -deepa From: flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> ] On Behalf Of dorkie dork from dorktown Sent: Monday, December 04, 2006 2:31 PM To: flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> Subject: Re: [flexcoders] Fade from one color to another i see. that mostly works. except now it cycles through every color giving a flicker effect like i am on acid. try this to see: http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> " layout="absolute" styleName="plain" creationCompleteEffect="{fadeColor}"> If i change the fromValue and the toValue to a two digit number like so it is a very smooth transition but it does not fade from white. It only fades from blue. Try this: I am thinking of just transitioning to a blank black state but that feels like a hack. dorkie best practices dork from dorktown On 12/4/06, Deepa Subramaniam <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: Set the the isStyle property to true in your AnimateProperty tag. -deepa From: flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> ] On Behalf Of dorkie dork from dorktown Sent: Monday, December 04, 2006 5:25 AM To: flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> Subject: [flexcoders] Fade from one color to another I need to fade my application background color from 0xC47D31 to 0x67DEF9 and I have no idea where to start. I've seen AS2 actionscript around that I can try to convert but what I'm looking for is a already built MXML component Effect, similar to mx:Fade or Dissolve. I tried this and received errors: creationCompleteEffect="{fadeColor}"> ReferenceError: Error #1069: Property backgroundColor not found on TestApplication and there is no default value. at mx.effects.effectClasses::AnimatePropertyInstance/::getCurrentValue() dorkie mood changing dork from dorktown
Re: [flexcoders] Fade from one color to another
@dustin - that worked for simple colors that are close by but not for pure white to pure black #FF, #00 @deepa - i could not get that to work after one hour. i decided to try to dissolve from one state to another. one state has a white background. the other state has a black background. the code i wrote makes sense to me but the effects are triggering at the wrong time. shouldn't this work? if there is more the fromState and toState are misleading. http://www.adobe.com/2006/mxml"; layout="absolute" styleName="plain"> On 12/4/06, Deepa Subramaniam <[EMAIL PROTECTED]> wrote: Ah – that is because AnimateProperty is just cycling through all the RGB values between your fromValue color and your endValue color. What you may want to do is add an event handler for the tweenUpdate event on the AnimateProperty effect instance and check to see what the value passed in the TweenEvent object is. That value is what the backgroundColor is at that moment in the lifetime of the effect. You can then add in your own logic that sets the backgroundColor depending on where the effect is in its lifetime (ie: simulate a progression from dark gray to light gray). I'm not 100% sure how that will work out but I'd be interested in finding out what doesn't work about it. Incidentally, you should check out Alex Uhlmann's Animation Package where I think he has an effect that does exactly what you want. That will probably be easier J http://www.alex-uhlmann.de/flash/animationpackage/ -deepa -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *dorkie dork from dorktown *Sent:* Monday, December 04, 2006 2:31 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Fade from one color to another i see. that mostly works. except now it cycles through every color giving a flicker effect like i am on acid. try this to see: http://www.adobe.com/2006/mxml"; layout="absolute" styleName="plain" creationCompleteEffect="{fadeColor}"> If i change the fromValue and the toValue to a two digit number like so it is a very smooth transition but it does not fade from white. It only fades from blue. Try this: I am thinking of just transitioning to a blank black state but that feels like a hack. dorkie best practices dork from dorktown On 12/4/06, *Deepa Subramaniam *<[EMAIL PROTECTED]> wrote: Set the the isStyle property to true in your AnimateProperty tag. -deepa -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *dorkie dork from dorktown *Sent:* Monday, December 04, 2006 5:25 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Fade from one color to another I need to fade my application background color from 0xC47D31 to 0x67DEF9 and I have no idea where to start. I've seen AS2 actionscript around that I can try to convert but what I'm looking for is a already built MXML component Effect, similar to mx:Fade or Dissolve. I tried this and received errors: creationCompleteEffect="{fadeColor}"> ReferenceError: Error #1069: Property backgroundColor not found on TestApplication and there is no default value. at mx.effects.effectClasses::AnimatePropertyInstance/::getCurrentValue () dorkie mood changing dork from dorktown
RE: [flexcoders] Fade from one color to another
Ah - that is because AnimateProperty is just cycling through all the RGB values between your fromValue color and your endValue color. What you may want to do is add an event handler for the tweenUpdate event on the AnimateProperty effect instance and check to see what the value passed in the TweenEvent object is. That value is what the backgroundColor is at that moment in the lifetime of the effect. You can then add in your own logic that sets the backgroundColor depending on where the effect is in its lifetime (ie: simulate a progression from dark gray to light gray). I'm not 100% sure how that will work out but I'd be interested in finding out what doesn't work about it. Incidentally, you should check out Alex Uhlmann's Animation Package where I think he has an effect that does exactly what you want. That will probably be easier :-) http://www.alex-uhlmann.de/flash/animationpackage/ -deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dorkie dork from dorktown Sent: Monday, December 04, 2006 2:31 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Fade from one color to another i see. that mostly works. except now it cycles through every color giving a flicker effect like i am on acid. try this to see: http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> " layout="absolute" styleName="plain" creationCompleteEffect="{fadeColor}"> If i change the fromValue and the toValue to a two digit number like so it is a very smooth transition but it does not fade from white. It only fades from blue. Try this: I am thinking of just transitioning to a blank black state but that feels like a hack. dorkie best practices dork from dorktown On 12/4/06, Deepa Subramaniam <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: Set the the isStyle property to true in your AnimateProperty tag. -deepa From: flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> ] On Behalf Of dorkie dork from dorktown Sent: Monday, December 04, 2006 5:25 AM To: flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> Subject: [flexcoders] Fade from one color to another I need to fade my application background color from 0xC47D31 to 0x67DEF9 and I have no idea where to start. I've seen AS2 actionscript around that I can try to convert but what I'm looking for is a already built MXML component Effect, similar to mx:Fade or Dissolve. I tried this and received errors: creationCompleteEffect="{fadeColor}"> ReferenceError: Error #1069: Property backgroundColor not found on TestApplication and there is no default value. at mx.effects.effectClasses::AnimatePropertyInstance/::getCurrentValue() dorkie mood changing dork from dorktown
RE: [flexcoders] Fade from one color to another
Dorkie, I had done something like this before and I used a fade effect in combination with the Color change. Try this and let me know if this is what you want to see... It has one problem, it fades the children as well, but I had gotten around that, I just don't remember exactly how. I'll dig up the code :-) Let me know if this is what you wanted to achieve first. Also, using an animateProperty to change the background color of the application in this example is overkill. I would be much more efficient to set the style with actionscript in the effectEnd event on the first alpha fade (or something similar)... Note , this == Application. I used it on the creationCompleteEffect of the Application. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dorkie dork from dorktown Sent: Monday, December 04, 2006 2:31 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Fade from one color to another i see. that mostly works. except now it cycles through every color giving a flicker effect like i am on acid. try this to see: http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> " layout="absolute" styleName="plain" creationCompleteEffect="{fadeColor}"> If i change the fromValue and the toValue to a two digit number like so it is a very smooth transition but it does not fade from white. It only fades from blue. Try this: I am thinking of just transitioning to a blank black state but that feels like a hack. dorkie best practices dork from dorktown On 12/4/06, Deepa Subramaniam <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: Set the the isStyle property to true in your AnimateProperty tag. -deepa From: flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> ] On Behalf Of dorkie dork from dorktown Sent: Monday, December 04, 2006 5:25 AM To: flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> Subject: [flexcoders] Fade from one color to another I need to fade my application background color from 0xC47D31 to 0x67DEF9 and I have no idea where to start. I've seen AS2 actionscript around that I can try to convert but what I'm looking for is a already built MXML component Effect, similar to mx:Fade or Dissolve. I tried this and received errors: creationCompleteEffect="{fadeColor}"> ReferenceError: Error #1069: Property backgroundColor not found on TestApplication and there is no default value. at mx.effects.effectClasses::AnimatePropertyInstance/::getCurrentValue() dorkie mood changing dork from dorktown
Re: [flexcoders] Fade from one color to another
i see. that mostly works. except now it cycles through every color giving a flicker effect like i am on acid. try this to see: http://www.adobe.com/2006/mxml"; layout="absolute" styleName="plain" creationCompleteEffect="{fadeColor}"> If i change the fromValue and the toValue to a two digit number like so it is a very smooth transition but it does not fade from white. It only fades from blue. Try this: I am thinking of just transitioning to a blank black state but that feels like a hack. dorkie best practices dork from dorktown On 12/4/06, Deepa Subramaniam <[EMAIL PROTECTED]> wrote: Set the the isStyle property to true in your AnimateProperty tag. -deepa -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *dorkie dork from dorktown *Sent:* Monday, December 04, 2006 5:25 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Fade from one color to another I need to fade my application background color from 0xC47D31 to 0x67DEF9 and I have no idea where to start. I've seen AS2 actionscript around that I can try to convert but what I'm looking for is a already built MXML component Effect, similar to mx:Fade or Dissolve. I tried this and received errors: creationCompleteEffect="{fadeColor}"> ReferenceError: Error #1069: Property backgroundColor not found on TestApplication and there is no default value. at mx.effects.effectClasses::AnimatePropertyInstance/::getCurrentValue () dorkie mood changing dork from dorktown
RE: [flexcoders] Fade from one color to another
Set the the isStyle property to true in your AnimateProperty tag. -deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dorkie dork from dorktown Sent: Monday, December 04, 2006 5:25 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Fade from one color to another I need to fade my application background color from 0xC47D31 to 0x67DEF9 and I have no idea where to start. I've seen AS2 actionscript around that I can try to convert but what I'm looking for is a already built MXML component Effect, similar to mx:Fade or Dissolve. I tried this and received errors: creationCompleteEffect="{fadeColor}"> ReferenceError: Error #1069: Property backgroundColor not found on TestApplication and there is no default value. at mx.effects.effectClasses::AnimatePropertyInstance/::getCurrentValue() dorkie mood changing dork from dorktown
[flexcoders] Fade from one color to another
I need to fade my application background color from 0xC47D31 to 0x67DEF9 and I have no idea where to start. I've seen AS2 actionscript around that I can try to convert but what I'm looking for is a already built MXML component Effect, similar to mx:Fade or Dissolve. I tried this and received errors: creationCompleteEffect="{fadeColor}"> ReferenceError: Error #1069: Property backgroundColor not found on TestApplication and there is no default value. at mx.effects.effectClasses::AnimatePropertyInstance/::getCurrentValue() dorkie mood changing dork from dorktown