New MC
iPhone to Desktop
Firstly, you're going to need Processing, TUIO, and MSARemote. Once you're all set, go ahead and run this. The comments should be very straight forward in introducing using the Processing TUIO API. I decided not to do a video tutorial on this for many reasons, mostly because watching someone code is pretty boring.
Error proofing SWFAddress
SWFAddress is a great library which all flash sites should incorporate. However, giving the user control of changing the URL address can break your site. Because many flash websites don't check for this, the user is often left not viewing content.
I created a utility class to do the following:
- Navigate a website based off valid deeplink possibilities.
- Enable multiple URL values for a single page.
- Check for valid URL requests, then act accordingly.
- Set a default homepage so the website doesn't redirect you to a "/#/homepage".
The last item in that list has become a pet peeve of mine. In my opinion, a website shouldn't auto-direct you to a "yoursite.com/#/home". It should keep the homepage URL until there's user interaction (such as clicking a link).
File Drag
Over the past 2 or so months I've been using Flex for all my AS projects. Usually when I need to figure something out, I'll create a new FLA document and throw all my code into the timeline until it's been worked out, then bring it back into the class files. However, I've found this to be a big pain in the butt when creating AIR applications. For some reason it only lets me test AIR applications a few times before the adl file freezes and I need to force quit to get out. Well, seeing that I had never messed around with creating a Flex Project, I decided to give it a whirl and learn to put my code into MXML and go from there. In doing this, I discovered I no longer had the adl freeze issue!
read more...
Objective C Quick Methods
This post will be updated the more I use Objective C.
read more...
