I created this site with the guys at ChromaAgency and Brothers and Sisters for Sky Sports’ The92 campaign in 2009. It featured an infinitely scrollable wall of photos and comments from users, all filterable and deep-linkable, as well as the obligatory video player, blog and Twitter integration – way ahead of its time for 2009.
I made heavy use of rendering tricks, such as blitting, object pooling and load/render queuing, to keep the thing performant – tricks I later found useful for games and Set Top Box software development. Unfortunately, I can’t show the original site off – the domain renewal had lapsed – nice one Sky 🙁 so here’s a little video about the project:
I recently stumbled upon an old bit of code which demonstrates a technique I created for an efficient scrolling data grid on the YouView TV platform. I call it ‘Blit Scrolling’. Below is a demo of the concept (click on the window and use the arrow keys to scroll around): Continue reading Optimal scrolling for 2D games or UIs→
YouView is a Smart TV service in the UK, which runs on Set Top Boxes and certain Smart TVs. I worked on the core UI for years and thought I’d share some insights into best practices when building applications for such resource constrained devices.
A common oversight in Flash projects, when using a Bitmap with loaded content is that Flash will revert a Bitmap’s smoothing parameter to false when you replace its bitmapData. That is, when the data loads into the Bitmap, anti-aliasing will get turned off. This is simple enough to fix, but since you may not know if someone is going to replace the bitmapData of a Bitmap you have created – then it’s much better to code defensively for it.
This little SmoothBitmap class is for just such an occasion. Instantiate it like a regular Bitmap and, no matter what another developer does with it, smooth, anti aliased pixels when scaling/rotating will be ensured. Enjoy 🙂
I was recently creating an API that required extending TextField and happened across the getRawText() method. I assumed this returned the text from the field without formatting or something – so I looked up the AS3 docs for flash.text.TextField.
Nothing there – gee thanks Adobe. A quick search turned up this which, it turns out, isn’t quite accurate.
So, with a tad of testing, it appears that getRawText() returns the text, stripped of any HTML tags (if you had set htmlText). I now wonder if this is faster than using a RegEx to strip the tags and why Adobe didn’t document it?