Search the web
Sign In
New User? Sign Up
flexcoders · RIA Development with Adobe Flex
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Fade from one color to another   Message List  
Reply | Forward Message #57899 of 150894 |
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}">
    <mx:AnimateProperty id="fadeColor" property="backgroundColor" toValue="#000000" 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


Mon Dec 4, 2006 1:25 pm

ultrafinetrip
Offline Offline
Send Email Send Email

Forward
Message #57899 of 150894 |
Expand Messages Author Sort by Date

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...
dorkie dork from dork...
ultrafinetrip
Offline Send Email
Dec 4, 2006
1:35 pm

Set the the isStyle property to true in your AnimateProperty tag. -deepa ________________________________ From: flexcoders@yahoogroups.com...
Deepa Subramaniam
deepasubra
Offline Send Email
Dec 4, 2006
7:36 pm

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: <?xml version="1.0"...
dorkie dork from dork...
ultrafinetrip
Offline Send Email
Dec 4, 2006
10:52 pm

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...
Deepa Subramaniam
deepasubra
Offline Send Email
Dec 5, 2006
12:51 am

@dustin - that worked for simple colors that are close by but not for pure white to pure black #FFFFFF, #000000 @deepa - i could not get that to work after one...
dorkie dork from dork...
ultrafinetrip
Offline Send Email
Dec 6, 2006
7:50 am

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 ...
Deepa Subramaniam
deepasubra
Offline Send Email
Dec 6, 2006
8:42 pm

@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...
dorkie dork from dork...
ultrafinetrip
Offline Send Email
Dec 8, 2006
9:20 pm

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...
Dustin Mercer
jamesdustinm...
Offline Send Email
Dec 4, 2006
11:39 pm

Dorkie, What about this example? <mx:Sequence id="fadeToBlack"> <mx:AnimateProperty target="{this}" property="alpha" fromValue="1" toValue="0" ...
Dustin Mercer
jamesdustinm...
Offline Send Email
Dec 6, 2006
8:20 pm

Dorkie, Here is a better example that fixes the problem with fading the children... <mx:Sequence id="fadeToBlack"> <mx:AnimateProperty target="{this}" ...
Dustin Mercer
jamesdustinm...
Offline Send Email
Dec 6, 2006
8:45 pm

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 ...
Darron J. Schall
darronschall
Online Now Send Email
Dec 10, 2006
3:33 am

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...
Dustin Mercer
jamesdustinm...
Offline Send Email
Dec 10, 2006
4:45 am

Darron, Thank you. Yes, I found your site. I was wondering if you'd notice that. ;) ... Darron, Thank you. Yes, I found your site. I was wondering if you'd...
dorkie dork from dork...
ultrafinetrip
Offline Send Email
Dec 13, 2006
1:37 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help