# Understanding Functions

**URL:** <https://forum.kirupa.com/t/understanding-functions/132588>\
**Category:** Uncategorized\
**Created:** [December 30, 2004, 5:41am UTC](https://forum.kirupa.com/t/understanding-functions/132588 "2004-12-30T05:41:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kiliaan856](https://avatars.discourse-cdn.com/v4/letter/k/67e7ee/32.png) [@kiliaan856](https://forum.kirupa.com/u/kiliaan856)\
**Post date:** [December 30, 2004, 5:41am UTC](https://forum.kirupa.com/t/understanding-functions/132588/1 "2004-12-30T05:41:16Z")

</div>

Hi! I have a few questions that may be cleared up if I understood functions a little better. I have done some reading up on it and could use some further clarification if anyone has a few moments to enlighten me.

I would like to understand how paths work inside a function.

Question 1:

Is it possible for a function to discover what movieclip it exists in? When i trace(this) within my actionscripted function it returns object Object.  
(sorry code is on another machine)

Question 2:

When I am attaching a function to \_level0.myMainClip.mySubClip from \_level0 timeline in actionscript and I use “this” within that function am I refeering to \_level0.myMainClip.mySubclip? or the function within that movieclip or \_level0 since that is where I am creating the function?
