Published on August 23, 2009
in AS3 and Flash.
Here's a quick snippet of code for integrating your SWFs with 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);
Published on August 15, 2009
in Politics.
It's good to know the government hasn't been wasting our money after all. Oh wait, seems they have. Any contractor in the UK will have heard about IR35 - the mechanism by which HMRC is trying to close every tax reduction loop hole for contractors. After Parliament's continual question dogding on the validity and effectiveness of IR35, the truth finally comes out that the government is wasting far more money in chasing this tax than it ever makes. But then, they're the government. So I guess it's still just OUR money their wasting. Wouldn't it be better just to give them lots of money NOT to waste OUR money chasing OUR money? Oh wait, I have a better idea...