# OOPs Question flash 8 as2.0?

**URL:** <https://forum.kirupa.com/t/oops-question-flash-8-as2-0/243328>\
**Category:** flash\
**Created:** [November 5, 2007, 9:08pm UTC](https://forum.kirupa.com/t/oops-question-flash-8-as2-0/243328 "2007-11-05T21:08:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sscullion](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@sscullion](https://forum.kirupa.com/u/sscullion)\
**Post date:** [November 5, 2007, 9:08pm UTC](https://forum.kirupa.com/t/oops-question-flash-8-as2-0/243328/1 "2007-11-05T21:08:01Z")

</div>

Hi, I’m wondering what’s the best way to go about setting up this class.  
I basically want a user to be able to create an object and assign a image to.  
Then the user can create as many textfields as they want for that object.

I’m not sure how to associate the new textField to the object.  
I can have a property for the image, but if the user can make as many textfields as they want, how would I set a property of the textFields for the object?  
Should I have an array that holds the textFields properties?

Here’s an example I’m working with:  
[http://www.visualstrategies.ca/formatTxt/formatTextComponent05.swf](http://www.visualstrategies.ca/formatTxt/formatTextComponent05.swf)

Thanks for the help!
