Unifying all code into one frame

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?


someMovieClip.code
{
   // whatever
}

frame5.code
{
   // whatever
}

someButton.code
{
   // whatever
}