Search code examples
actionscript-3actionscriptflash-cs3

ActionScript 3 code folding/regions


Is there any way to create foldable regions of code in ActionScript 3 (read this as Adobe Flash CS3 built-in editor). I'm looking for something like in MS Visual studio so that I can do:

#region "Event handlers"

... big list with methods here

#end region

Any ideas?


Solution

  • In the Flash IDE, select the code to fold and right click. A menu will appear with the following options: Collapse Between Braces | Collapse Selection | Collapse Outside Selection | Expand Selection | Expand All.

    With that said, you should seriously consider a 3rd party ActionScript development environment, such as FlashDevelop, a very well thought out alternative. It's a massive pain developing in the Flash IDE.

    http://www.flashdevelop.org/community/viewtopic.php?t=202