I’m writing this partly as a note to myself, but also in the hope it’ll help others too. We’ve recently been developing a few games and activities for interactive whiteboards, and found that they have a few kinks that it can be hard to keep track of during the design and dev process. So I… Read more »
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 »
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 »
AS3 mouseEnabled not working with nested Movieclips
Had a little bit of a problem with mouseEnabled= false not working. I had two movieclips. One was a button and one a ‘tooltip’ mc that was on top of the button. The button mc had mouseEvent listeners for mouseover and mouseout. Now the standard thing to do to stop recieving mouse interactivity on a… Read more »
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 »
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 »
Adobe Air htmlLoader flash content doesn’t appear
More Air conditioning…Under certain circumstances Flash and PDF content will not display in a htmlLoader when You scale the HTMLLoader object to a factor other that 1.0. You set the alpha property of the HTMLLoader object to a value other than 1.0. You rotate the HTMLLoader content AND IT WILL NOT DISPLAY IF THE WINDOW… Read more »
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 »
Adobe AIR jsfl publish swf and create AIR package at once
In order to publish an air package you have to create it from the latest swf file. However the Flash AIR extension gives you commands to create and publish air files but not publish the swf in one go. On windows in .. C:\Program Files\Adobe\Adobe Flash CS3\en\First Run\Commands You can add dom.publish() to the AIR… Read more »
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/