# 2 quick questions to begin oding with AS3 correctly

**URL:** <https://forum.kirupa.com/t/2-quick-questions-to-begin-oding-with-as3-correctly/249638>\
**Category:** Uncategorized\
**Created:** [January 21, 2008, 6:55am UTC](https://forum.kirupa.com/t/2-quick-questions-to-begin-oding-with-as3-correctly/249638 "2008-01-21T06:55:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![humbucker](https://avatars.discourse-cdn.com/v4/letter/h/278dde/32.png) [@humbucker](https://forum.kirupa.com/u/humbucker)\
**Post date:** [January 21, 2008, 6:55am UTC](https://forum.kirupa.com/t/2-quick-questions-to-begin-oding-with-as3-correctly/249638/1 "2008-01-21T06:55:47Z")

</div>

Hello,

I’m trying to work on a project made in AS2, and think the whole thing in AS3 to learn.

My two questions are :

1. is it still possible to work with movieclip instance name in a class.as file because i’m always getting a 1120 error (i’m trying to access an undefined property)

2. if not possible, then I’ll have to create movieclip dynamically and add them with the addChild syntax, my question is : per example, when I want a movieclip to be always centered on stage even if the browser’s window is resized, what am I supposed to do with listeners and so on so that a new copy of my movieclip is not always added at a different place on the stage ?

Many thanks and sorry if these questions sound stupid to you.
