I created a little YouTube party mixer, complete with a crossfader and ‘automix’ capability – for all you budding bar DJs. It uses the YouTube Data API and a whole lot of JavaScript. Continue reading Be a DJedi
Category Archives: JavaScript
YouView – Smart TV UI
YouView is a Smart TV service in the UK, which runs on Set Top Boxes and Smart TVs. I worked on the original UI for years and thought I’d share some insights into best practices for building applications on such resource constrained devices.
How to use ExternalInterface to integrate AS3 with JavaScript
Here’s a quick snippet of code for setting up intercommunication between a SWF and JavaScript, using ExternalInterface:
import flash.external.ExternalInterface; // Calling a JavaScript function from AS3 (with optional parameters) if (ExternalInterface.available) ExternalInterface.call("javascriptFunction", param1, param2); // Implementing a JavaScript callback in AS3 (flashFunction is called when JavaScript calls javascriptFunction) if (ExternalInterface.available) ExternalInterface.addCallback("javascriptFunction", flashFunction);