# Write a getter for the value that you recieve via the result event

**URL:** <https://forum.kirupa.com/t/write-a-getter-for-the-value-that-you-recieve-via-the-result-event/279454>\
**Category:** Uncategorized\
**Created:** [January 14, 2009, 9:07pm UTC](https://forum.kirupa.com/t/write-a-getter-for-the-value-that-you-recieve-via-the-result-event/279454 "2009-01-14T21:07:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lolomedia](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@lolomedia](https://forum.kirupa.com/u/lolomedia)\
**Post date:** [January 14, 2009, 9:07pm UTC](https://forum.kirupa.com/t/write-a-getter-for-the-value-that-you-recieve-via-the-result-event/279454/1 "2009-01-14T21:07:46Z")

</div>

Hello people,

I have the following function

```auto

public function onGetHDACAddOnResponse ( event:GetHDACAddOnResultEvent ): void {
    
            public var response : GetHDACAddOnRetval = event.result;
            trace('show me the money');
            if ( response.addOnName !== null ) {
                trace('show me the money');
                //conferenceInfoPopup.tollFreeNumber.text = tollFreeRoomAddr.phoneAddress;
            }
            else {
                //conferenceInPopup.tollFreeNumber.text = "Not Available";
            }
        }

```

and I would like to use this public variable in another function to get the result i’m getting here… any direction advise would be greatly appreciated.

thank you! :2c:
