Unity3D coming to IPhone

31 03 2008

Woohoo! It looks like the folks who make Unity3D, my favorite game development platform, are going to expand their software to allow publishing for the IPhone. Amazing. I don’t know all of the details yet but I love the idea of writing a game once and being able to publish for both mac and windows, as well as for the web (via their plugin) and now the IPhone. 

Native IPhone development using XCode, at last!

26 09 2007

So I got this fancy IPhone last week some time and have since been trying to get myself setup so I can start playing with native app development. The iphone dev. team has been making great strides but up until fairly recently, installing the toolchain has been rather daunting.

To keep this short and sweet, here are the steps I followed to get a working toolchain and XCode template:

1) Download the toolchain installer.

2) Download the toolchain helper. You’ll need an iphone connected. This little guy copies the essential files from your iphone onto your mac.

3) Run the toolchain helper. You’re phone will have to be ‘jailbroke’ for it to work. The simple answer, install AppTapp.

4) Run the toolchain installer.

5) Grab the XCode template. You’ll need to make a few changes to the template to work with your toolchain install.

5a) Open the xcode template project file in Xcode. The first thing you’ll see is that it can’t find Foundation.framework and UIKit.framework. You can fix these by right clicking them and choosing “Get Info”. Browse to your toolchain install and find the frameworks. For example, Foundation.framework is in “/usr/local/arm-darwin-apple/heavenly/System/Library/Frameworks”.

5b) Open Info.plist. Change the value of “CFBundleExecutable” to “«PROJECTNAME»”. Save.

6) Take a look at this thread and follow the directions provided by ‘rogerboesch’.

7) Grab Lucas Newman’s examples, unzip, open in XCode and build. SHAZAAM! If you want to test your app on the iphone, the easiest way I’ve found is to use AppTapp to install OpenSSH and then connect to the phone via ftp. Simply copy your app into Applications.

Hopefully it helps someone else! Big thanks to Lucas Newman and Roger Boesch. If you get stuck, leave a comment and I’ll do what I can to help.

Using Sessions with Flash Remoting, Coldfusion

16 06 2007

I’m working on a chat app in Coldfusion and Flash. I needed to use sessions for the first time and ran into a few brick walls. For anyone looking to do the same, check out my thread on the cf-talk list.

The main things I learned are that in your Application.cfc file, you cannot use the “onResquest” event. I haven’t really figured out why, but thought it was worth noting. Also, I don’t believe you can directly set or read the session data in Flash, but it’s quite simple to write some functions in your cfc to allow that.

XCode Flex Application Template

19 04 2007

Following up on my previous post, I’ve been really getting into developing Flex applications lately and thought I’d share my basic Flex Application template I’ve created for Apple’s XCode. The template is based on Josh Buhler’s template but adds a few features that I find pretty handy. Those features include:

  • Controller.as
    Bare-bones AS3 class to act as the main application’s controller.
  • AS3 Class file template
    Simple file template to create AS3 classes
  • Build-and-Run in Safari
    Compiles the flex app and opens it in Safari
  • HTML template
    Simple html template to display swf, includes SWFObject javascript
  • flex_skins.css
    Default css file

Installation is pretty simple. For the Flex Application project, Just copy the “Flash” folder into /Library/Application Support/Apple/Developer Tools/Project Templates/

For the AS3 class file template, copy the “Flash” folder in the “file template” folder into the following location:
/Library/Application Support/Apple/Developer Tools/File Templates/

For code-hinting and auto-complete, download and install these language configurations.

The template assumes you’ve installed the Flex 2 SDK into /Developer/SDKs/Flex/. Follow the directions on Josh Buhler’s page for more details.
Below is a screen-shot of an example application based on the template in XCode.

Flex XCode Template

You can download the template from this location. If you run into troubles don’t be afraid to ask questions using the comments for this post. Cheers, and happy FleXCoding!

Creating AS3 applications using XCode and mxmlc

8 04 2007

Yesterday I decided I’d spend my weekend trying to get my feet wet using Actionscript 3. Little did I know that it would be such an endeavor to get up and running.

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.

What I came up with is a custom xcode project template that starts me off with a default AS3 class and a simply directory structure. From there I modified the “build and run” command to open my published html/swf in Safari.

If anyone is interested in the template, drop me a comment or email and I’ll send it over. I’ll try to explain how to use it in another post if there is any interest.

Now.. on to experimenting with AS3!


2 03 2007

Hello all. I’ll keep this short and sweet. I needed a site/blog so here I am. I’m currently unemployed but happily freelancing as a graphic designer and web/multimedia developer. My main focus is on web-based applications using Adobe Flash and Flex technologies.