Daniel's Stuff

I write code

TextMate and Flex 2

I’ve been having a bit of a play with Adobe’s Flex 2 command line compiler. After doing a quick search around the net I found a couple of hints for using it with TextMate. Unfortunately none of them did quite what I wanted, so I built my own. Hopefully it will be useful for others :)

TextMate bundle for Flex 2 coding

It adds a new language type for mxml files, a few snippets with mx as the tab trigger and a build command bound to Command-B.  By default it looks for your Flex install in the following places

  1. ~/Flex
  2. ~/flex_sdk_2
  3. /Developer/SDKs/Flex
  4. /Developer/SDKs/flex_sdk_2
  5. /Developer/Applications/Flex
  6. /Developer/Applications/flex_sdk_2
  7. /Applications/Flex
  8. /Applications/flex_sdk_2

Any errors or warnings are displayed in the output window and a click will take you to where the problem is.

Once your Flex app is building successfully it will be opened in Safari, or if you have a script called deploy in the same folder as your mxml file it will be executed instead.

Enjoy :)

56 comments for “TextMate and Flex 2

  1. August 9, 2014 at 3:10 am

    Marvelous, what a blog it is! This weblog presents helpful facts to us,
    keep it up.

  2. August 9, 2014 at 8:20 pm

    Right here is the right web site for everyone who wants to understand this topic.
    You understand so much its almost hard to argue with you (not that I really will need to…HaHa).
    You certainly put a fresh spin on a topic which has been discussed for
    many years. Wonderful stuff, just excellent!

  3. August 10, 2014 at 4:11 am

    Actually no matter if someone doesn’t know then its up to other users that they will assist, so here it takes place.

  4. August 10, 2014 at 5:54 pm

    My partner and I absolutely love your blog and find nearly all of your post’s to be exactly what I’m looking for.
    can you offer guest writers to write content for you personally?
    I wouldn’t mind composing a post or elaborating on a lot of the
    subjects you write in relation to here. Again, awesome web log!

  5. August 25, 2014 at 7:49 am

    Great information. Lucky me I ran across your website by
    accident (stumbleupon). I have saved as a
    favorite for later!

  6. August 26, 2014 at 12:35 pm

    Your style is so unique compared to other folks I’ve read stuff from.
    Thanks for posting when you’ve got the opportunity, Guess I’ll
    just bookmark this page.

Leave a Reply

Your email address will not be published. Required fields are marked *