# There's gotta be a simpler way

**URL:** <https://forum.kirupa.com/t/theres-gotta-be-a-simpler-way/299973>\
**Category:** flash\
**Created:** [November 13, 2009, 3:16pm UTC](https://forum.kirupa.com/t/theres-gotta-be-a-simpler-way/299973 "2009-11-13T15:16:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Persistent1](https://avatars.discourse-cdn.com/v4/letter/p/f6c823/32.png) [@Persistent1](https://forum.kirupa.com/u/Persistent1)\
**Post date:** [November 13, 2009, 3:16pm UTC](https://forum.kirupa.com/t/theres-gotta-be-a-simpler-way/299973/1 "2009-11-13T15:16:44Z")

</div>

Okay. So my little tabbed-based app is working fine. All is good. However, as I’m learning AS3 here, I look back in retrospect on the code and execution of this sample (see link below for sample file).

[http://www.mediafire.com/file/yi2jkwyhtnv/tab-sample.zip](http://www.mediafire.com/file/yi2jkwyhtnv/tab-sample.zip)

Thinking about this, I realize there has to be a simpler way to achieve what I have done here–I just don’t know what that is. I imagine it’s probably all possible with everything on 1 frame and all code in one spot in my movie. 😏

Can any of you veterans out there help me understand how this could be further optimized? Thanks very much for your insight and help on this.
