# Class question / Function On Finished? Question

**URL:** https://forum.kirupa.com/t/class-question-function-on-finished-question/200318
**Category:** flash
**Created:** [September 11, 2006, 11:57am UTC](https://forum.kirupa.com/t/class-question-function-on-finished-question/200318 "2006-09-11T11:57:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Flaevo](https://avatars.discourse-cdn.com/v4/letter/f/bbce88/32.png) [@Flaevo](https://forum.kirupa.com/u/Flaevo)
#### Post date: [September 11, 2006, 11:57am UTC](https://forum.kirupa.com/t/class-question-function-on-finished-question/200318/1 "2006-09-11T11:57:13Z")

</div>

First Question,  
Is there any way to determine the timeline / classes position on it from within the class.  
If inside \_root.mc\_1 I create the class with var somename:className = className(); and try to \_target or \_name from within the clip it returns as root and no name. I need to access stuff within mc\_1.

Second question, is there any way to like determine when a function is done running to call the next function?  
Basically right now I have a function that connects to remote server and returns results, but if I try a trace after calling the function it returns as undefined unless I set an interval or play and trace it a few frames later
