# Need help with as1 object registerclass! urgent! please please ;)

**URL:** <https://forum.kirupa.com/t/need-help-with-as1-object-registerclass-urgent-please-please/194577>\
**Category:** Uncategorized\
**Created:** [July 24, 2006, 6:18pm UTC](https://forum.kirupa.com/t/need-help-with-as1-object-registerclass-urgent-please-please/194577 "2006-07-24T18:18:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Uli](https://avatars.discourse-cdn.com/v4/letter/u/ccd318/32.png) [@Uli](https://forum.kirupa.com/u/Uli)\
**Post date:** [July 24, 2006, 6:18pm UTC](https://forum.kirupa.com/t/need-help-with-as1-object-registerclass-urgent-please-please/194577/1 "2006-07-24T18:18:33Z")

</div>

Hello  
i cant figure out how to attach a movie clip inside a custom class… I ve red Kirupas tut but still can t do it…  
here s what i have:  
MovieClip.prototype.someClass = function(){  
this.somevar = something;  
this.createEmptyMovieClip(“someclip” , 100)  
this.someclip.attachMovie(“heh” , “heh”)  
this.onPress = function(){  
//do something  
}  
}  
Well that wont work of course, I know i have to use the Object.registerclass but i cant figure out where to do that and how… please help me…  
Thanks
