You can design a skin as a multi-frame animation in Flash and use it in Flex
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Troy Gilbert Sent: Monday, September 17, 2007 10:38 AM To: [email protected] Subject: Re: [flexcoders] Buttons in Flex ! > I am creating some skins for my buttons, but i have one problem. I want > to have a nice transition from one skin (Up Skin) to another skin (Down > skin). In other words i want to create a button that lights when i do > mouseOver but slowly. IS that possible? Hmm, good question... In the Flash IDE, you'd just create animations in each state (transition is tricky, but you could easily have it play an animation at the beginning of a state and loop). In Flex, you could do it with a programmatic skin, but you'd be responsible for juggling all the animation and state information. Again, transitions would be difficult, i.e. Up to Down plays this animation, but Up to Over plays this animation (or whatever transitions make sense). If you wanted to keep things as "high level" as possible, by which I mean doing it declaratively in MXML, you'd probably end up just skipping a subclass of mx:Button and instead subclass mx:Canvas and use effects/behaviors. Troy.

