# getProperty-TweenRGB

**URL:** https://forum.kirupa.com/t/getproperty-tweenrgb/284527
**Category:** flash
**Created:** [March 19, 2009, 10:33pm UTC](https://forum.kirupa.com/t/getproperty-tweenrgb/284527 "2009-03-19T22:33:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jgreenwood](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@jgreenwood](https://forum.kirupa.com/u/jgreenwood)
#### Post date: [March 19, 2009, 10:33pm UTC](https://forum.kirupa.com/t/getproperty-tweenrgb/284527/1 "2009-03-19T22:33:51Z")

</div>

I am trying to use the getProperty to get the current RGB value of an object. Any ideas? I downloaded the TweenRGB class. Here’s the code:

import mx.transitions.Tween;  
import mx.transitions.TweenRGB;  
import mx.transitions.easing.\*;

var txtClick:Tween = new TweenRGB (txt,"\_rgb", Regular.easeOut, getProperty(txt, \_rgb),0xB2BE2D,45,false);

stop();

If I use a hex# in place of the getProperty function it works fine. I just want a dynamic tween from one color to another.
