# Code location

**URL:** https://forum.kirupa.com/t/code-location/219760
**Category:** flash
**Created:** [March 19, 2007, 11:58pm UTC](https://forum.kirupa.com/t/code-location/219760 "2007-03-19T23:58:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![fido\_glc](https://avatars.discourse-cdn.com/v4/letter/f/3da27b/32.png) [@fido\_glc](https://forum.kirupa.com/u/fido_glc)
#### Post date: [March 19, 2007, 11:58pm UTC](https://forum.kirupa.com/t/code-location/219760/1 "2007-03-19T23:58:58Z")

</div>

Where do you put your code in flash ? Do you put it all on the main timeline ? Do you put in on the objects ? Where is the best place and why ? I followed a few tutorials where all of the code was on a layer in the main timeline (for arrangement). I kind of liked that but as I advanced in flash I started having problems with specifying the hole path for every movie clip (sometimes 7,8 embeded movieclips). I find it much more easier to just put the code on the movie clip itself. What is your method and why ? Are there any advantages/disadvantages for every method ?
