no probs, we all have to start somewhere
To code in Actionscript you just have to open up the template, go to the first frame, and open up the actions panel (F9). You can place all your code there. This is what is referred to as 'coding on the main timeline'. Not sure what your template looks like but some templates are subclassed. If this is the case, just add the code to the document class (probably called 'Main' or something like that)
Most likely it's just on the main timeline.
Hope that helps!
-Adam