# Advice on setup

**URL:** <https://forum.kirupa.com/t/advice-on-setup/305144>\
**Category:** flash\
**Created:** [February 19, 2010, 6:04pm UTC](https://forum.kirupa.com/t/advice-on-setup/305144 "2010-02-19T18:04:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maqrkk](https://avatars.discourse-cdn.com/v4/letter/m/35a633/32.png) [@Maqrkk](https://forum.kirupa.com/u/Maqrkk)\
**Post date:** [February 19, 2010, 6:04pm UTC](https://forum.kirupa.com/t/advice-on-setup/305144/1 "2010-02-19T18:04:28Z")

</div>

Hey everyone,

for a game I’m working on, I want to make a ‘digital display’, like a digital clock for example. Every character exists of 7 lines which are either on or off. [This picture](http://rocky.digikey.com/weblib/Red%20Lion/Web%20Photos/MDMV0000.jpg) will demonstrate what I mean.

Currently, I’ve got a DigitalDisplay class that extends Sprite, which holds a couple of instances of the Digit class that extends Sprite, which in turn holds 7 instances of the DigitLine class, which extends Shape, in which I draw one such line with the drawing API. This would mean that one DigitalDisplay holds 8 Sprite, which all hold 7 Shapes, so that’s 8 Sprites and 56 Shapes. This is a bit overkill I think.

Thing is, I want control over every ‘DigitLine’. During transition, when the text on the display changes, I want every lines to go on and off in a random pattern, slowly forming the new text. Would this be possible with another less extensive solution? The only thing I could think of was this:

Instead of every Digit object I’d have an Array, which instead of filled with DigitLine objects is filled with Arrays. However, then I’d only have 1 graphics object, which mean I’d need to clear() it every time something changes. Can anyone help me out here? 🙂
