# \[Help\]Class function as function variable and using 'this'

**URL:** <https://forum.kirupa.com/t/help-class-function-as-function-variable-and-using-this/198222>\
**Category:** flash\
**Created:** [August 23, 2006, 9:35am UTC](https://forum.kirupa.com/t/help-class-function-as-function-variable-and-using-this/198222 "2006-08-23T09:35:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lXciD](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/lxcid/32/2742_2.png) [@lXciD](https://forum.kirupa.com/u/lXciD)\
**Post date:** [August 23, 2006, 9:35am UTC](https://forum.kirupa.com/t/help-class-function-as-function-variable-and-using-this/198222/1 "2006-08-23T09:35:14Z")

</div>

Hi, its me again!

I met with a problem now. I was trying to implement the Merry-go-round tutorial in OOP. I created a class, had a function exactly like displayPane function. But here’s the problem. The ‘this’ in displayPane is pointing to the class I created. ☹ Not to the object I was about to pass this function to. I thought of maybe static will help. But after some more thought I find out that I need to access some of the class object data i created. This really leave me with a hard time. How can I tell AS to point the this to the object I was about to pass this function to. Is there’s any possibility to pass in parameters value while you passing function reference to a variable? (I don’t there’s this possiblity right)

Thanks in advance. Any help is appreciated.
