In 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 MoreThis example originated from an ActionScript project. The project required me to extract values from an URL/querystring. A bit tedious in ActionScript 3.0 where I always prefer to use XML for speed. But anyway may be a slicker solution out there but this is what I came up with. If you took the following URL…
Read MoreI needed a sliding show/hide panel. The HTML was set up as follows: The magic jQuery required was as follows: Interesting features are the use of the jQuery toggle. This calls one of two functions to open or close the panel based on its previous state. See a working Demo Here
Read More