# Function as variable property?

**URL:** <https://forum.kirupa.com/t/function-as-variable-property/292126>\
**Category:** flash\
**Created:** [July 10, 2009, 11:20am UTC](https://forum.kirupa.com/t/function-as-variable-property/292126 "2009-07-10T11:20:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Quinster](https://avatars.discourse-cdn.com/v4/letter/q/2acd7d/32.png) [@Quinster](https://forum.kirupa.com/u/Quinster)\
**Post date:** [July 10, 2009, 11:20am UTC](https://forum.kirupa.com/t/function-as-variable-property/292126/1 "2009-07-10T11:20:44Z")

</div>

contactButton\_mc.contentLoadTarget = loadContactForm();

How do you write this code so it works and doesn’t run the funtion? I want to associate the function with the button so I can load it dynamically with event.currentTarget. Played with storing the funtion in a another variable but wasn’t sure how to do that either :-S. Any help would be appreciated.
