# Timeline actionscript vs class constructor

**URL:** <https://forum.kirupa.com/t/timeline-actionscript-vs-class-constructor/259511>\
**Category:** Uncategorized\
**Created:** [May 6, 2008, 6:13am UTC](https://forum.kirupa.com/t/timeline-actionscript-vs-class-constructor/259511 "2008-05-06T06:13:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![project1\_exe](https://avatars.discourse-cdn.com/v4/letter/p/eb9ed0/32.png) [@project1\_exe](https://forum.kirupa.com/u/project1_exe)\
**Post date:** [May 6, 2008, 6:13am UTC](https://forum.kirupa.com/t/timeline-actionscript-vs-class-constructor/259511/1 "2008-05-06T06:13:08Z")

</div>

i inherited some movieclips on stage with a class definition called CustomShape.as. I’d like to customize each of the movieclips on stage by defining initial behaviors and i did it by entering the movieclip and entering actionscript on the first frame of the timeline. it’s not working, i reckon the constructor of the CustomShape class is overriding everything in the timeline that i wrote.

Which does execute first? the timeline code? or the class file constructor code?
