Bobspace – Bob Walton

iSWF: Actionscript Development on a Mac

February 2, 2007 · 13 Comments

Actionscript development, namely object-oriented Flash and Flex, has been dominated by Windows PCs for as long as I can remember. Even with Flash overlapping the Mac-heavy design world, the overwhelming majority of the Flash developers — and even designers — that I’ve come across have been using Windows.

I think that’s going to change.

I know many developers who have starting working on a Mac and are raving about it. Since I was due for a new machine recently, I decided to make the switch myself and start developing on an Intel-powered MacBook Pro. While there are a few drawbacks, overall I think it’s a great choice and I highly recommend it.

The Pros

Everyone’s already heard the reasons why people prefer OS X to Windows so let me just skim through them. So there are no mac viruses, it’s super stable, easy to use, etc… But here are my favorite features:

  • Any time you enter a password on your mac — in any program — it stores it in a special repository called Keychain. If you forget a password or need to share one with somebody, you can look it up. Genius!
  • Speaking of passwords, when you connect to a wifi network, you don’t have to enter the network key FRIGGIN’ TWICE, BLIND! On a 128 bit WEP, that’s absolutely maddening! On a mac, you enter it once (duh) and you can even look at the key as you’re entering it, if you’d like.
  • You can drag anything into almost anything else and it will do something intelligent. You can alt-tab into different applications while dragging. In an open document, you can drag the document icon, shown on the title bar, to some place in the file system and it will move the document to that location. In short, dragging, like almost everything else, is unbelievably intuitive.
  • For some reason, you can do so much more with the same amount of screen real estate on a Mac. My new Mac has a max resolution of 1440×900, down from the 1680×1050 res of the HP laptop I was using previously. Strangely, it feels like I have twice as much now as I did then. That’s partially because Mac apps tend to have less chrome than their PC counterparts. But more importantly, Macs treat the concept of “maximizing” a window totally differently. When you maximize a window, it only grows to the size it needs, rather than taking up the whole screen. That means you can see several apps at once and easily navigate between them.

All of that said, it was the hardware — not the operating system — that turned the people I know over to the mac.

Earlier this year, I was working with Jesse Warden when he got his Mac, a black MacBook laptop. His other laptop was an enormous, specced-out Alienware that felt like it was made out of cement. The MacBook was brought into his fleet as an “email machine,” allowing him to check his email and surf the web while traveling, leaving all of his development to onsite desktop machines.

I checked back with him recently and he’s using his Mac much more. He had this to say:

“Onsite with a client, I was starting to use my Mac 100% of the time… It doesn’t weigh 14.5 pounds like my Alienware, only 4.  It fits in my Flash MX 2004 Timbuk bag nicely; the Alienware didn’t really fit well… at all.  It has built in wireless that just… works, unlike the Alienware which was clunky to get working and the card stuck out of the already behmoth machine.  It looks good, and therefore, gives me a professional look to my clients.”

My friends at effectiveUI have been even more aggressive with their Mac migration. They’ve moved nearly their entire development team — dozens of engineers — over to the Mac. The new intel-based laptops allow their team to move easily around the office and around the country, while working on the same ultra-portable machine. And I’ve heard nothing but great reports from them about FlexBuilder’s performance on the Mac. It seems to be every bit as stable as the PC version.

The Cons

There are a few pain points with working on the Mac. First among these: compiling is slower. This is experienced mainly in flash, where the compiler uses the old PowerPC instructions that have to be translated for the new intel Macs. When I mentioned this to Jesse, he wasn’t terribly concerned. He keeps his larger projects in Flex, so his Flash projects contain much less work for the compiler. “The Flash IDE as a compiling solution works fine for a lot of the smaller scoped tasks I use it for, where the heavy lifting is done in Flex.” He continued, “A lot of my software just doesn’t run as fast.  I’ve been SERIOUSLY impressed with Adobe’s efforts, though, so know it’ll work eventually.”

Jesse noticed some other problems that I didn’t. His favorite SVN client, Tortoise, and his favorite diff tool, Beyond Compare, are not available for Mac. Though Subclipse works just fine on OS X, it seems to be a lot more buggy and obscure than rock-solid tortoise. And as a diff tool, Subclipse is not able to do the same local folder comparisons that Jesse relies on with Beyond Compare. We’re both on the hunt for better tools.

I must also say that the Flash IDE is a lot clunkier on a Mac. The panels don’t nest quite as well, so it feels like you’d need two displays to get a highly functional AS1 workflow going. That and the “Home” and “End” keys don’t jump to the beginning and end of a line like you’d want them to. Ugh!

Conclusion

If you’re willing to overlook a few minor quirks and annoyances. The Macintosh environment seems to make a great development platform. You get to use largely the same development tools on hardware and software that’s far superior to any Windows box.

And heck, if there’s that one Windows program that you have to have, you can even run it on your Apple via Parallels or Boot Camp, something I didn’t have time to get into.

Coming Up Next…

I’ll walk through setting up FDT on a mac and explain how to tame its out-of-control core libraries.

Categories: Flash and Flex · Mac

13 responses so far ↓

  • Peter // February 2, 2007 at 7:03 pm

    “Even with Flash overlapping the Mac-heavy design world, the overwhelming majority of the Flash developers — and even designers — that I’ve come across have been using Windows.”

    I’m not sure if that is still the case — of course it’ll still be a minority on absolute figures. Since Mac went Intel I’m seeing a huge amount of Flash developers switching to Mac.

  • mike // February 2, 2007 at 7:39 pm

    good timing here.. I was about to ask around and see whether the Flash developer community thinks moving to mac is a good thing at this point. But…

    I’d like some specifics: compiling giantProject.FLA took xx seconds on a 2Ghz XP box, but xx seconds on a mac pro. Can someone do that please? It may well be that “slower” on a mac pro is still faster than my aging PC that I’d love to replace.

    How does the Flash IDE on mac handle multiple monitors? 3 monitors seems to be the ideal for me.

  • bobspace // February 2, 2007 at 7:59 pm

    Mike,

    I’m getting Vista installed on my Mac soon. I’ll do side by side comparisons on the same machine shortly. Anecdotally, my compiles don’t seem to take much longer than they did on the last P4 laptop I was using. The latency is more apparent just using the application. Everything feels just a little bit clunkier.

    Regarding multiple displays and the flash IDE, I highly recommend it. Because panels and a document can’t be nested together, I seem to get the best workflow when I put my actionscript panel and my output panel huge on one window, and then everything else on the other.

  • mike // February 2, 2007 at 9:00 pm

    bobspace –
    But I’m more interested in how the Flash IDE compares with a compile of the same complex FLA on:
    ~3yr old PC running XP
    new imac or mac mini
    mac pro

    .. and yep.. I use 3 monitors for the Flash IDE on my PC. There are some bugs and odd behaviors when you use the Flash IDE on multiple windows on a PC and I’d like to know if the mac version has the same issues (or more or less).

  • Erki Esken // February 2, 2007 at 9:59 pm

    On svn and diff tool front, I’ve found SmartSVN and SmartSynchronize work out quite well. One thing to now on SmartSVN, it comes with JVM max memory setting quite low, you can change it to a higher value (Show Package Contents in Finder, and edit Info.plist) if you experience out of memory error on giant svn projects.

  • brendan // February 2, 2007 at 10:54 pm

    All for macs and I have 3. Switched 1 year ago and you won’t stop me now! Shortcuts work like they are supposed to when getting around, awesome. However running parallels and win xp on 2ghz core duo mac mini with 2 gig ram I noticed that mac flash player runs at between 45 – 55 frames/sec in firefox and safari and at 85 fps in windows flash player in firefox and ie … Anyone know what is up with that? all flash player 9

  • sat // February 2, 2007 at 11:42 pm

    Bob, Apple’s own diff tool is fantastic. It’s called FileMerge and if you pull out the Developer Tools DVD that you got with the Mac and install them, it’ll be in /Developer/Applications/Utilities.

    For SVN there’s a great (and free!) little OS X app called svnX that’s native on Intel Macs (with drap & drop support). See http://www.apple.com/downloads/macosx/development_tools/svnx.html

  • Martin // February 3, 2007 at 10:01 am

    Nice article.

    I switched to a MacBook recently too, intending to continue doing most of the Flash/Flex work on the windows machine.

    Not so, I even enjoy working in the Mac book, when there is no 2nd monitor attached. Btw: I like to use TextMate for writing AS2 classes.

    Speeking about speed: I recently converted the a QT Movie using the Flash Video Encoder. On an Win 2,4 GHz P4, 1GB RAM it took about 3 Minutes. Same file on a mac: close to 10 Minutes (2GHzCore 2 Dual Mac, 1 GHz RAM) using the Rosetta-interpreted version of the encoder.

    As Bob wrote the difference is muss less tangible when you compile a small flash movie in the Flash IDE.

    And: Flash 9 will be released in the next 2-5 month, and because of native support for the intel macs it will be a whole lot faster than the Rosetta-Flash solution we’re now working with.

  • Frank Manno // February 3, 2007 at 9:49 pm

    Looking forward to your next post. As a newbie to AS, any advice and tips will be helpful!

  • Step Schwarz // March 3, 2007 at 3:40 pm

    The Home and End button equivalent is command-left arrow and command-right arrow. And in a single-line text field you can just use the up and down arrows.

  • The Tortoise and the Tiger: SVN on OS X Finder « Bobspace - Bob Walton // March 12, 2007 at 7:46 pm

    [...] an earlier post about Actionscript development on the Mac. It was mentioned that one of the big holes in the Mac development suite was a SVN client as good [...]

  • mp // March 23, 2008 at 3:56 pm

    Useful site. Thank you:-)

  • Jeremy Daley // February 17, 2009 at 2:54 pm

    i’m a pc user but not opposed to macs. i gotta say i’ve never really had much of a liking of eclipse and the Flex SDK. out of the box, it just doesn’t seem to work as smoothly as i’d like and on windows seems kinda resource intense when compared to (what i consider the superior AS3 IDE) FlashDevelop… which consequently only runs on the Windows .NET framework.

    also, to touch on a few of my own annoyances with mac:
    1.) maximize -> as a web dev, i WANT to know what widescreen users are seeing in the “pillar box”. having stuff show behind seems like it would be distracting.
    2.) “home” and “end” keys. even linux sends the cursor to the beginning or end of the line with these, where in mac you have to hit command+left arrow or something. this to me is important if you wanna get devs onto a mac, but who am i.

Leave a Comment