# Pulling object's name/value pair

**URL:** <https://forum.kirupa.com/t/pulling-objects-name-value-pair/249737>\
**Category:** flash\
**Created:** [January 22, 2008, 4:55am UTC](https://forum.kirupa.com/t/pulling-objects-name-value-pair/249737 "2008-01-22T04:55:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mprzybylski](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mprzybylski/32/613_2.png) [@mprzybylski](https://forum.kirupa.com/u/mprzybylski)\
**Post date:** [January 22, 2008, 4:55am UTC](https://forum.kirupa.com/t/pulling-objects-name-value-pair/249737/1 "2008-01-22T04:55:34Z")

</div>

Hey guys,  
I’m drawing a blank here and need some help.

I have an object, like so:

```auto

var ob:Object = {rotationY: 0};

```

then i’m using that in a tween, but i won’t always be tweening rotationY. I can possible tween rotationX from another object later, so i need to know how to pull the property name and the value of it from the object so i can pass it to TweenLite, like so:

```auto

TweenLite.to(clip, .5, {rotationY: 90, ease: Regular.easeIn});

```

but, like i said earlier, i wont always be tweening rotationY. I want something like this, but i know this doesn’t work, but for the sake of someone understanding what im trying to say:

```auto

TweenLite.to(clip, .5, {obPropertyName: obPropertyValue, ease: Regular.easeIn});

```

Hope that makes sense.

Thanks.
