PDA

View Full Version : Pure AS3


rewind24
12-05-2010, 08:15 AM
Hy, first off i apologise if this has been treated elsewhere, please direct me to the thread.

I am trying to go from java to flash, and finding it a little strange. I got the classes , imports etc figured i guess, but how can i create a pure AS3 project?
Two weeks of searching and didn't manage to come across a good example, or something similar.

After installing the flash ide, i don't see myself working with that, as i can't have code scattered like that. Everything is a class, or a static method in a class.

So my question is, where can i find the syntax necessary to create a project and embedding stuff in it ? and where do i write that code?

Any advice/pointers on the matter would be appreciated.

Eralmidia
12-05-2010, 10:51 AM
http://www.flashmagazine.com/reviews/detail/flashdevelop_20/ If a code editor is what you're asking for? It can also generate swf's if you want to omit the flash ide entirely.

gangstareef
12-05-2010, 12:31 PM
I'd second FlashDevelop as the answer to what you're looking for. Here's their main page (http://www.flashdevelop.org/wikidocs/index.php?title=Main_Page), and they have a forum over there too.

You can set FD up to use the Flash IDE's compiler or you can use the free Flex compiler. Here's a page about AS3 workflows (http://www.flashdevelop.org/wikidocs/index.php?title=Main_Page).

rewind24
12-05-2010, 05:53 PM
Thank you for the links.
Eralmidia , no the editor doesn't really matter. Anything with syntax highlighting could suffice. But as i am accustomed to pure oop coding, i can't/ won't get the hang of "throwing" the code in a frame , that's why i want to use something that will allow me to keep 1 class per .as .
And yes, i'll take the hint and troll the FD forums for more answers.

Now i just have to find the syntax for embedding stuff in the swf, etc , and i'm a go.


Thank you for the help.

Eralmidia
12-05-2010, 07:24 PM
Well, actually, flash ide can be used for oop. You can create a movieclip on the stage in flash, then in the library link it to a class, and this class is created in a separate .as file, or you can create .as class files not connected to any library member. The code highlighting in flash ide is new in the latest flash version, and still need some work imo. I like the ide for design work, but for coding I stick to flash develop.

Also a tip, if you happen to design applications with UML, you might wanna take a look at senoculars UML export script for StarUML at http://www.senocular.com/flash/tutorials/starumltoas3/ :)