Thursday, November 17, 2011

Flash Builder not auto completing

I imported an existing project into FlashBuilder 4.0 and found that content assist (and class linking) didn't work.  After a bit of googling and testing it turns out that when you import a project the compiler looks for the main classes in the src folder. If you have them in a different place you need to explictly set this by right clicking the project > properties > Actionscript Build Path and then set the "Main Source folder" to the custom location (it will be set to src by default).

Saturday, July 2, 2011

Setting up the mic for Mac Book

My sister in law and a friend were having trouble setting up the single audio input on the Mac Book to record some audio and couldn't figure out how to get the Mac to use it as an input jack instead of the speaker output. So for anyone else having the same problem, here are the directions:

Open the System Preferences panel -- the icon looks like this:Then in the Hardware section click on Sound (last icon on the right):


On this next screen choose the last option item "Input" (on the far right):



Then at the bottom of this screen select the dropdown for "Use audio port for" and select "Sound Input":


Your line in should now work....

Of course, once you're done you'll have to reset this to "Sound Output" again so that you can use speakers or headphones :-)

Wednesday, April 20, 2011

missing images in iPhone using Titanium

Note to future self: If you build an app in Titanium -- do NOT create a folder in the images directory called 'iphone' to place iphone specific images there. They will show up in the emulator but not on the device. I ran into this a few months ago but didn't document the solution and just spent another 2 hours trying to debug it a separate time. Use any other name than 'iphone'!!!

Wednesday, April 13, 2011

Titanium createHTTPClient issue on Android

Setting up an Android app on Titanium, I was having problems getting a webservice using a signature. It was working fine on iPhone. Turns out that Titanium auto url encodes the url in an createHTTPClient.open() method -- thus sending a different string than the signature had hecked against -- and thus returning an error.

To fix it, do this:

var xhr = Titanium.Network.createHTTPClient();
xhr.autoEncodeUrl = false;

before you call the open() method.

Saturday, February 19, 2011

Blackberry Playbook error using AIR StageWebView

Here was a crazy error on the latest Blackberry Playbook simulator (0.9.3). If you reference a non-existent file or image, it throws this error:

Error #2044: Unhandled ErrorEvent:. text=Couldn't read a file:// file

It was no fun trying to figure out where this bug was coming from! :-(

Thursday, February 3, 2011

Facebook Places throws oAuth error: "The table you requested does not exist"

Just did a great workshop with Conrad Fuhrman who demonstrated his ARTi application, an augmented reality app build with Titanium. It also uses a new Titanium Facebook module that allows you to connect to Facebook using oAuth. However, when I tried to run the code sample I kept getting this oAuth error:

entries =>
{contents = "type"} = {contents = "OAuthException"}
{contents = "message"} = {contents = "(#603) The table you requested does not exist"}
}
}

After a google search this post turned up which explained it all. It turns out that Facebook Places does not work outside of the US, and since I was trying to access it from Barbados, it was failing.

Friday, January 14, 2011