I was a bit of a twit until I discovered twips. When positioning display objects in Actionscript we use the x and y properties. These related to pixels. But what if you need half a pixel or 0.12345 of a pixel. Flash does allow you to position object using ‘twips’. A twip is 1/20 of…
Read MoreEnjoying the Glastonbury coverage from the BBC on this wet weekend. The best festival in the world and the best music. But I’m not able to enjoy it on my iPad. The cool kids may be knocking Flash but you can’t beat it for live event streaming like Glasto. U2 may be an old band,…
Read MoreFlashvars allow you to get data into to your SWF file from the calling HTML. Easy to use just add a flashvars parameter to your HTML. I use ‘swfobject’ as follows: Then in your actionscript use: to reference the variable.
Read MoreGood to see Steve Jobs well enough to promote the iPad 2 today. Another glamourous product but as an iPad 1 owner I can’t say I’ll be rushing out to get the new one. Reasons to own an iPad I bought the iPad as a family device and for testing my work on (and…
Read MoreIn my last post I showed how to communicate from Javascript to ActionScript. To do so I used ExternalInterface in my ActionScript. ExternalInterface allows traffic to flows both ways. We’ll start in ActionScript this time. Ensure you have imported the ExternalInterface class. Then create a call to Javascript using the ‘call’ method of the ExternalInterface…
Read MoreI first needed this trick when I had an ActionScript 2.0 file and an ActionScript 3.0 file that needed a little chat. Subsequently I have used this more and more to have my jQuery magic speak to my ActionScript magic like two school boy wizards. Firstly in the Javascript let’s identify the Flash object we…
Read More