I was recently asked about the problem of loading XML from within a class to trigger an arbitrary method. The problem was: the onLoad event triggers on the XML instance, not the class creating it. This could probably be worked around with the Delegate class, but in the past I’ve simply extended the XML class itself, overriding the onLoad handler and adding a callback object that’s passed in (along with some error checking). It’s partnered with an XMLLoader class, the source and simple demo of which you can download here.
The London Flash Platform Users Group is running a meetup tonight about (among other things) connecting and controlling Flash with the Nintendo Wii controller, using WiiFlash. For those that can’t make it down to the Cosmo Bar in Barbican, they are apparently broadcasting the event here.
…see you there!
How do you make the most of now?
I created this microsite for Dare Digital back in 2005, to promote a competition running alongside BBH‘s Vodafone ‘Mayfly’ TV campaign. Users can create a mayfly with a personal message attached, which lives for just 24 hours and wanders around the environment. The best life-affirming message won a drive around Monza with Michael Schumacher in his Ferrari – the power of NOW!The client was very happy with the site – it picked up a couple of awards, even an award for my little preloader animation. You can see the site here, but note that you can’t create your own mayflies any more and the competition is long since over.