Posts Categorized: flash

Flash Event.COMPLETE sometimes doesn’t fire in Firefox

I have run into some strange behaviour in Flash and Firefox recently. We had a Flash movie (AS3) that loads up, in its document classes constructor it sets a few event handlers on loaderInfo: this.loaderInfo.addEventListener(Event.COMPLETE, loadComplete); this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, progress); this.loaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler); this.loaderInfo.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler); The problem taht seemed to be happening (most of the time, ie not… Read more »

Posted

AS3 Json integration quick and dirty

Ive been dealing with Json data recently which may be a faster/less convoluted alternative for handling data between backend and frontend interfaces than xml. This is probably the quickest and lightweight serialization i’ve found that works. Credit goes to http://www.ekameleon.net for the class file, and can be found here. Implementation goes something like this:- import… Read more »

Posted

html5 under the radar; or a standards compliant way to embed video on the web

With the release of Mozilla’s Firefox 3.5 another browser—along with Apple’s Safari and Google’s Chrome—now supports html5’s video tag. We’re still a long way from complete browser support, and a working standard. Ian Hickson, among other things, editor of the html5 spec lays the land out as follows: “Apple refuses to implement Ogg Theora in… Read more »

Posted

fbjs-bridge over troubled waters.

Well I know that’s a bad title, but when you develop Facebook apps you need something to lighten your day and I’ve been developing them for the past six months. The one thing I’ve noticed over all things is that nothing is simple, not even the simple things. You see Facebook take it upon themselves… Read more »

Posted

Adobe Air htmlLoader scales content by default

More AIR conditioning for you.. When adding a HTMLLoader to the stage the contents by default scale to the size of the window. And this is not so helpful if you want to open one up in a new window. you should be setting these properties too: stage.scaleMode = StageScaleMode.NO_SCALE stage.align = StageAlign.TOP_LEFT If you… Read more »

Posted

Adobe Air badge install Error# 2023

Another AIR gotcha.. As well as allowing your server access to the .air filetype make sure the location to the air file is the absolute path unlike the relative path in Adobe’s own example! credit to this blog entry: http://blog.joshbuhler.com/2008/06/30/air-installer-badge-error-2032/

Posted