Archive for November, 2010

FlashDevelop – Fixing getDefinitionByName ReferenceError: Error #1065

This is a pretty common error to come across when you first start using FD but I thought it might help someone. Basically when you try to use a class that you have included in your SWC (such as a Bitmap or Sound with a linkage tag) using getDefinitionByName(“MyClassName”) as Class, the compiler throws an […]

Read more

TouchOSC & Logic Pro (without Osculator)

I recently downloaded TouchOSC for my iPhone and set it up to control Logic Pro. As of the latest version of Logic Pro 9.1.2 you can use TouchOSC without even needing to install Osculator. Apparently you just install and it works out of the box. BUT – if it doesn’t work for you as smoothly […]

Read more

iPhone simulator launches but only shows black

I was working on upgrading a clients app today to use Apple’s retina display when I ran into this problem that had me stumped for a couple of hours. The application compiled OK but when it installed and launched in the simulator after showing the default.png splash image it went completely black. Huh? The app […]

Read more

Tinting the colour of a MovieClip

Here’s an old snippet that I use quite often to set the tint of a MovieClip. It’s useful if you put all of these sorts of utilities in a class and access them via public static methods. So in a utility class called MovieClipUtils.as you could call: MovieClipUtils.tint(myMovieClip, 0xff0000, 0.5);

Read more

WordPress iPhone app – incorrect username or password

After trying to setup the WordPress iPhone app and running into “incorrect username or password” errors, I finally sorted it out. It looks like there are quite a few other people with the same problem so I thought I would post it up. For the record I have a self-host setup. Firstly – go online […]

Read more

Opening Safari from your iPhone app

A very simple task I know but when you are starting out its nice to find it on a blog! Somewhat similar to using URLRequest in AS3 really.

Read more

Common XML character codes

Sometime when using XML data in Flash/FLex you need to use special characters to save your XML breaking and I always forget what they are! So to save me a google search or two here they are again: //XML character codes & Ampersand &amp; > greater-than &gt; < less-than &lt; ‘ apostrophe &apos; “ quote […]

Read more

Compiling multiple SWFs from FlashDevelop

I use FlashDevelop for Actionscripting and sometimes I need to export multiple SWFs from a single project. You just need to use the mxmlc compiler tags in your AS class file (make sure the class extends a displayObject) and use Flash Tools > Build Current File. Here is an example of the mxmlc with a bunch […]

Read more