Archive for July, 2007

Posted on Programming

Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.

Sometimes, with Actionscript 3, you get to register event listeners for error events.
Recently, I was attempting to do so for an instance of the flash.display.loader class.

var ldr:Loader = new Loader();
var urlReq:URLRequest = new URLRequest(url);
ldr.addEventListener(IOErrorEvent.IO_ERROR, catchIOError);
ldr.load(urlReq);
...
function catchIOError(event:IOErrorEvent){
    trace("Error caught: "+event.type);
}

To my puzzlement, this did not work at all.

However, if I had actually read the flash.display.Loader class reference, instead of skimming it, I would have seen this:

ioError:IOErrorEvent — Dispatched by the associated LoaderInfo object when an input or output error occurs that causes a load operation to fail.

So anyway, If you encounter the same problem, the key change is:

ldr.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, catchIOError);
Posted on Art

prints

Five PDFs, all stored safely on a blue CD, were sent to staples. With them, went a text file outlining pertinent data such as dimensions and dots per inch. This was many days ago, of course. A saturday, to be exact.
Tuesday, they said, your prints will be done tuesday.

Wednesday, on my return to staples, they were no where to be found. The order itself was missing. Some questioned its very existence.

Eventually, the order was found – but the prints were not, if only for the reason that they had yet to be printed.

Tuesday, after receiving a phone call claiming their completion, I returned to staples. After some initial trouble finding the prints (they were on the printer; I pointed), and requesting that one be reprinted – this time without pieces torn off, ideally – some currency exchanged hands. And I left with 4 prints: two at 18″x24″ and two at 8.5″x11″.

And gave them another PDF to print.

8.5"x11"

bird

18"x24"

1167232682_bobby-small

8.5"x11"

1167233543_slanty004

Also printed, but not shown, were some scenes from prawnager – one of which was huge, and also the one being reprinted.

In general, the prints turned out better than I’d expected, though perhaps slightly worse than I’d hoped.

They are darker than I’d have guessed. Next time i’ll have to pre-lighten them. But, I am fairly happy with them.

The moral of the story is that now I have posters to decorate my room.