PDA

View Full Version : where do you write your AS code ?



aneuryzma
February 7th, 2009, 06:10 PM
do you write all of it in the main timeline ? or maybe do you embed it into the movieClips ?

senocular
February 7th, 2009, 06:45 PM
Except for extremely small or lightweight movies, all my code will be in classes. There will be some exceptions sometimes where I will still put stop() calls in movie clips if they have no class association.

If I'm not using classes, I'll put code in places where they're used. For example if I code a custom scrollbar, the code that makes it work will be in the scrollbar movie clip, not the main timeline, since the code is specific to that scrollbar.

mpelland
February 7th, 2009, 06:45 PM
as3 ?

on a PC i use an app called flashdevelop (textmate on a mac) and barely touch the Flash IDE. I would use flex if i had a license. I use the document class to tell flash what class file i am using (Actionscript file) and all the code is external of Flash

justkevin
February 7th, 2009, 07:37 PM
All of my code is in either external .as class files or .mxml files.

ayumilove
February 7th, 2009, 09:35 PM
If using AS3, you are forced to write those actionscripts into the timeline of a particular object/stage.
You could also write them inside the .as files