Welcome, Guest. Please login or register.
Did you miss your activation email?
31 Jul 2010, 11:39:35 UTC
Forum home
+  flexdeveloper.eu Forum
|-+  Flex and ActionScript 3.0
| |-+  Flex Builder, Flash Builder & Eclipse (Moderators: JMWhittaker, Jan K, thewarpedcoder, James)
| | |-+  Tween a style element?
« previous next »
Pages: [1] Print
Author Topic: Tween a style element? (Read 459 times)
kdittyr
Newbie FD
*
Posts: 5


« on: 10 Feb 2010, 17:50:29 UTC »

First off, I apologize for my first post being a question.

I searched the forum but didn't find an answer to this, so I was wondering if anyone had an idea of if this was possible.

I would like to tween a few of the style elements (think anything color, for example).  Say I have a text box that I would like to tween the background of instead of just popping a color change (using setStyle).  I would like to use a tween engine like tweenlite if possible.

Thanks for any direction that you might be able to provide.

« Last Edit: 10 Feb 2010, 17:57:54 UTC by kdittyr » Logged
flexy
flexdeveloper.eu
Guru/Addict FD
*****
Posts: 3,155


Recovering Coffee Addict & Adobe Expert


WWW
« Reply #1 on: 11 Feb 2010, 14:27:21 UTC »

Use AnimateProperty

http://livedocs.adobe.com/flex/3/langref/mx/effects/AnimateProperty.html
Logged

kdittyr
Newbie FD
*
Posts: 5


« Reply #2 on: 11 Feb 2010, 17:32:30 UTC »

Holy cow...  it's that easy  Embarrassed

thank you very much Smiley
Logged
kdittyr
Newbie FD
*
Posts: 5


« Reply #3 on: 11 Feb 2010, 21:43:51 UTC »

I appreciate the time it took to reply, flexy Smiley

I am posting my simple example using TweenLite as well.  You can find it over in the Tutorials, Examples & Tools section here: How to tween a style element with TweenLite...

(I should have updated/edited the above post rather than start a new one)
Logged
flexy
flexdeveloper.eu
Guru/Addict FD
*****
Posts: 3,155


Recovering Coffee Addict & Adobe Expert


WWW
« Reply #4 on: 15 Feb 2010, 12:27:10 UTC »

You're welcome, and thank you for coming back to post an example!
Logged

Pages: [1] Print
« previous next »
Share this on: Twitter Twitter Del.icio.us del.icio.us Digg Digg
Jump to:

©2006-2010 Flexdeveloper.eu/Jodie O'Rourke. All rights reserved.
Adobe®, Adobe® Flash™, Adobe® AIR™ and Adobe® Flex™ are registered trademarks of Adobe Systems Incorporated in the United States and other countries. All rights reserved.

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC