Today I sat down and re-edited my xcode language definition files for actionscript3. It is now fully (as I hope.. drop me a comment if something is missing or wrong
) compatible with the final flex sdk available at www.adobe.com.
As a next “spare time project” I’m gonna extend it with the mx tags.
You can download the language specs here.
As a next step, backup your actual ActionScript.pbfilespec and ActionScript.pblangspec and replace them with the delivered files.
Enjoy.
Hi and thanks for the effort. I am just starting to evaluate Flex (coming from the Java world). So I created a directory ~/Library/Application Support/Apple/Developer Tools/Specifications/ActionScript 3/ and copied the two files you provided into it (ActionScript.pbfilespec and ActionScript.pblangspec). Is it the right thing to do? Thanks for any help. Cheers!
I am going to kiss u if u make mx’s hinting code..!
Hi!
@Jean-Michel: Put the Files into ~/Library/Application Support/Apple/Developer Tools/Specifications/ (leave out Actionscript 3) and everything should work fine.
@paul: word…
[...] せっかくならコード書くときにオートコンプリートが使えた方がいいので、 Xcode用Actionscript 3.0 language spec filesをここからダウンロード。 http://opencode.forabettertoday.org/?p=11 [...]
[...] First, I wanted to see what I could do using Apple’s XCode. I really like the XCode editor and environment and have used it to develop AS2 stuff in the past, so I figured someone had probably already built some templates for AS3 development. No such luck. I did find a rough starting point at Josh Buhler’s blog. Since I didn’t really want to play with Flex, but rather AS3, I started modifying his template to suit my purposes. I also wanted to take advantage of these language specs. [...]
[...] For code-hinting and auto-complete, download and install these language configurations. [...]
what about debugging? is it supported?
Sorry, debugging is not yet supported. In my spare time I am currenly working on flex compiler shell integration for fast compiling, so stay tuned
.
Hi, thanks for the AS3 code definition. I cannot make it work with the version of Xcode I’m using, can you tell me on wich version of Xcode you tested it…
Seems like the file spec has changed drastically in XCode 3… any thoughts?
Xcode 3 has a very different format for language definition files from 2.5 and earlier. There’s a functional set of ActionScript .xclangspec files available from:
http://enefekt.com/sansbrowser/2007/11/29/flex-support-for-xcode-3/