# Confused with Actionscript basic concepts

**URL:** <https://forum.kirupa.com/t/confused-with-actionscript-basic-concepts/315219>\
**Category:** Uncategorized\
**Created:** [October 20, 2010, 1:34pm UTC](https://forum.kirupa.com/t/confused-with-actionscript-basic-concepts/315219 "2010-10-20T13:34:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flyfox](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@flyfox](https://forum.kirupa.com/u/flyfox)\
**Post date:** [October 20, 2010, 1:34pm UTC](https://forum.kirupa.com/t/confused-with-actionscript-basic-concepts/315219/1 "2010-10-20T13:34:50Z")

</div>

Hi i am new to this forum as well as Actionscript.

I’ve got this book- OReiley Essentials Actionscript 3.0

and extracted from page 40 of the book:

package zoo {  
public class VirtualZoo {  
private var pet;  
public function VirtualZoo ( ) {  
this.pet = new VirtualPet(“Stan”);  
this.pet.getAge( );  
}  
}  
}

i would like to ask if ‘this’ in this.pet refers to which object VirtualZoo or VirtualPet?

Thanks!
