views:

769

answers:

4

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?

+2  A: 

I don't know if it's supported. 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

spender
yeah ... flashdevelop rocks ... it will make you rich, beautiful and happy ... well, at least happy ... :)
back2dos
FlashDevelop is really good. Even if you need to use the Flash CS3 IDE (e.g. you're working with FLA files produced by artists), you can set things up so you edit the .as files FlashDevelop and compile using Flash CS3.
Selene
+1  A: 

No there is not really anything like that in Adobe Flash CS3. CS4 introduces conditional compiling, not really what you are looking for; but it does not get any closer.

Like already suggested, I would suggest using FlashDevelop. It has some folding options, but event more importently it has intellisense and automatic code generations. And it is free.

Lillemanden
+1  A: 

Flash CS4 has a code folding feature. Just select/highlight a few lines of code and click the - icon on the left.

Jeremy White
+1  A: 
Selene