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 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 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