# My first OOP Class

**URL:** <https://forum.kirupa.com/t/my-first-oop-class/218824>\
**Category:** Uncategorized\
**Created:** [March 11, 2007, 3:03pm UTC](https://forum.kirupa.com/t/my-first-oop-class/218824 "2007-03-11T15:03:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![samroni](https://avatars.discourse-cdn.com/v4/letter/s/2acd7d/32.png) [@samroni](https://forum.kirupa.com/u/samroni)\
**Post date:** [March 11, 2007, 3:03pm UTC](https://forum.kirupa.com/t/my-first-oop-class/218824/1 "2007-03-11T15:03:58Z")

</div>

hi there, i was told to learn OOP, and here is my first class.

it is to draw a box where you can set width, height, x, y, target movie clip, depth and lineStyle.

i test my fla but it returns error on getLineStyle function.

could you check what i did wrong in the .as.  
And if possible, could you make it cleaner.

please check the attachment.

thx a lot guys. really appreciate it 😃
