# Yet another scope question

**URL:** https://forum.kirupa.com/t/yet-another-scope-question/255162
**Category:** Uncategorized
**Created:** [March 19, 2008, 5:36pm UTC](https://forum.kirupa.com/t/yet-another-scope-question/255162 "2008-03-19T17:36:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![smkirupa](https://avatars.discourse-cdn.com/v4/letter/s/a183cd/32.png) [@smkirupa](https://forum.kirupa.com/u/smkirupa)
#### Post date: [March 19, 2008, 5:36pm UTC](https://forum.kirupa.com/t/yet-another-scope-question/255162/1 "2008-03-19T17:36:02Z")

</div>

is there a way to determine he scope (or thisObject) of a class instance from the inside of the class itself? so i could just make an instance of a class and do what i want without specifying the scope of that level (the scope is gonna be needed later in the class)?

here am i seeing that ‘this’ from the class is not the same as ‘this’ for the instance

```auto

//fla
a=new MyClass(this);

//class
private var scope:Object;
function MyClass(thisObj){
trace(thisObj==this); //traces false!
scope=thisObj;
}

```

so i need to use thisObj in my class but i dont want to specify it when making an instance so i need something like

```auto

//fla
a=new MyClass;

//class
private var scope:Object;
function MyClass(){
scope=some_misterious_built_in_function_that_gets_the_scope_object_of_my_instance();
}

```

i want to be able not to specify something like a.scope=this; in the fla file, but i want to determine it from the inside of the class, is it possible? i hope someone understands what i’m asking
