# How to get and set an object's property

**URL:** <https://forum.kirupa.com/t/how-to-get-and-set-an-objects-property/320187>\
**Category:** flash\
**Created:** [March 16, 2011, 7:11am UTC](https://forum.kirupa.com/t/how-to-get-and-set-an-objects-property/320187 "2011-03-16T07:11:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ColinDavies](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@ColinDavies](https://forum.kirupa.com/u/ColinDavies)\
**Post date:** [March 16, 2011, 7:11am UTC](https://forum.kirupa.com/t/how-to-get-and-set-an-objects-property/320187/1 "2011-03-16T07:11:53Z")

</div>

Is it possible in actionscript to get and set an object’s property  
eg I have an object called arenaWorld and I wish to get and set just one property  
to get and set an object’s property the singer’s song.  
public function get arenaWorld.singer.song():String

```auto
 
{
 return arenaWorld.singer.song();
}

```

Unfortunately this doesn’t compile.
