# Unifying all code into one frame

**URL:** <https://forum.kirupa.com/t/unifying-all-code-into-one-frame/239906>\
**Category:** flash\
**Created:** [September 27, 2007, 2:37am UTC](https://forum.kirupa.com/t/unifying-all-code-into-one-frame/239906 "2007-09-27T02:37:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NeoDreamer](https://avatars.discourse-cdn.com/v4/letter/n/ccd318/32.png) [@NeoDreamer](https://forum.kirupa.com/u/NeoDreamer)\
**Post date:** [September 27, 2007, 2:37am UTC](https://forum.kirupa.com/t/unifying-all-code-into-one-frame/239906/1 "2007-09-27T02:37:42Z")

</div>

I need to submit some GUI for a programming class at college and I chose to do it in Flash/Actionscript. The other students in class might get confused when I present it, because it isn’t like normal programming languages. Code may be placed on multiple frames, placed within movie clip objects, etc…

So I want to somehow unify all my code into one frame to make it like a traditional programming langauge. Is that possible? How can you do something like this all from frame 1 of \_root?

```auto

someMovieClip.code
{
   // whatever
}

frame5.code
{
   // whatever
}

someButton.code
{
   // whatever
}

```
