Quick Flash Tips #2: Handling ‘Load Never Completed’ IOErrorEvent

Categories: Articles, Other, Source code
Tags:

This is a potentially annoying error that occurs in Safari/Chrome when you hit refresh or close a tab containing Flash content. If you have the debug player you see:

Error #2044: Unhandled IOErrorEvent:. text=Error #2036: Load Never Completed.

It can crash Safari or, in the case of Chrome, show a ‘broken plugin’ screen, shutting down every instance of Flash Player in the process.

Fortunately the fix is easy. To handle it you must add an IOErrorEvent listener to every Loader instance in your project, including the ‘root’ Loader (i.e. the class that is the base of your main SWF).

To handle the main SWF simply add the following code to your base class. In ‘onIOError’ you can handle the error silently should you wish.

root.loaderInfo.addEventListener(IOErrorEvent.IO_ERROR, onIOError);

Posted By }i{ on June 14, 2010

FlexPMD

Categories: Other
Tags: , ,

flexpmd

This is a nice open source tool from Adobe for reviewing and optimising your code. Although the set-up is a bit fiddly, I installed it on FDT without any issue.

To run the plug-in you simply select ‘Run PMD’ and a list of warnings is generated. Examples include ‘HeavyContructor’, ‘TooManyFunction’ and ‘UnusedParameter’. You can click on the classes listed to highlight the source of the suspect code and decide what action, if any, to take. Very similar in function to the way FDT handles ActionScript errors and warnings

Any standards/optimisation junkies out there will find this very useful. Granted you will no doubt end up ignoring many of the ‘violations’ highlighted, but it’s great when it does spot something you’re grateful to discover and happy to amend.

Click here to get started

Posted By }i{ on April 7, 2010

New Year New Dev Environment

Categories: Other
Tags:

fdt

The first thing I did as a developer this year was to install a trial of FDT; the result of my ongoing frustration with Flex Builder and the persuasion of a swathe of developers I’ve worked with recently.

A week in and I must say I’m mightily impressed. The whole application is really responsive, much more so than Flex Builder, and some of the code generation tools are invaluable. For example I love that after adding an event listener the event handling method is automatically created with a couple of key presses.

Being Eclipse-based, overall FDT is very similar to Flex Builder. This made it exceptionally easy to make the transition and start exploring. I haven’t figured everything out yet, but have already used it to make a small widget and develop a prototype for an upcoming project for Diesel. It definitely feels like I’ll be sticking with FDT for the foreseeable future.

Posted By }i{ on January 12, 2010

FWA Site of the day

Categories: Other
Tags: ,

ps33

Hooray! Our site for the new Playstation 3, www.the15reasons.com, is the FWA site of the day today. Really thrilled to have got two FWA’s this year, I think it’s my favourite award as a developer… even despite the lack of partying involved!

Read my previous post about the project here

Music experience:
ps31

Post production magic:
ps32

Posted By }i{ on December 9, 2009

Quick Flash Tips #1: ‘-frame start ClassName’ compiler argument

Categories: Other
Tags:

This is simple but very handy little device that allows you to begin displaying your main application SWF before it’s actually loaded.
Read More

Posted By }i{ on December 6, 2009

Thanks Boards

Categories: Other
Tags: ,

Stink were named production company of the year by Boards and they wrote this very complimentary piece about us: http://www.boardsmag.com/articles/magazine/20091201/stinkdigital.html

Posted By }i{ on December 4, 2009

FWA SOTD

Categories: Other
Tags:

carouselfwa

We have won Stink Digital’s first FWA SOTD award for our new site for Philips – Cinema 21:9, a.k.a Carousel. Special congrats to fellow Flashers Jamie (”FWA is so cool it’s uncool”) Copeland and Matt Sweetman, who worked with us on the project. Not bad for our first Flash project – Let’s make it number one of many ;)

And as if that wasn’t good enough, yesterday we got major props from Kanye West on his blog and got tweeted to APlusK’s 1,200,000 followers!

Posted By }i{ on April 20, 2009

Stinky Ian

Categories: Other
Tags:

I got a new job as a senior ActionScript dev at Stink Digital, a digital production house that brings together an awesome roster of film directors, with an equally awesome group of digital nerds conceiving and building great interactive stuffs. I’ll be concentrating full time on ActionScript/Flash/Flex now and there are some great projects coming up that I can’t wait to be involved in. Exciting times ahead…

Posted By }i{ on January 10, 2009

jParallax goodness

Categories: Other
Tags:

Colleague and JavaScript whiz kid Stephen Band just released his first jQuery plugin ‘jParallax’. Very nice stuff, he’s already used it to create a stunning presentation for an important pitch recently. Hopefully we’ll come up with a site concept that gives us a chance to exploit its coolness to devastating effect :-) .

Get it here: http://webdev.stephband.info/parallax.html

Posted By }i{ on August 26, 2008

WordPress CMS

Categories: Other
Tags: , ,


I’ve been working on a couple of small freelance sites recently that needed content management. Being a big fan of WordPress as a blog platform I used this as an opportunity to try it out as a cms. Read More

Posted By }i{ on June 15, 2008

Candidata

Categories: Other
Tags: , ,

Candidata is a web application that enables posting of job opportunities on companies websites and for people to apply online for the vacancies. The client can then manage all the applications they receive and generate reports and so on. Read More

Posted By }i{ on May 2, 2008

Capital One – ‘Fast’

Categories: Games, Other
Tags:

Capital One – ‘Fast’ Email

Capital One – ‘Fast’ Game

When Capital One wanted to promote their newly streamlined referrals programme, we came up with a solution that was guaranteed to make a splash. Our task was to generate an exciting and innovative way of conveying the speed of the new employee referral programme.

Read More

Posted By }i{ on March 25, 2003

©2009 Ian McGregor. All rights reserved.
Powered by Wordpress.org