Air LocalConnection tip

Here’s a tip that I had to resort to the Internets for today – I was trying to get a simple Flash to AIR LocalConnection system working locally but it simply wasn’t working. I hadn’t realised, that tucked away in the Help it says

To avoid specifying the domain name in the send() method, but to indicate that the receiving and sending LocalConnection objects are not
Read the rest

MovieClip.addFrameScript()

Not sure why I’ve only just come across this but there’s any an undocumented AS3 function of MovieClip called addFrameScript which turns out to be pretty useful. It allows you to execute any function when the playhead of the MovieClip reaches a certain frame and the arguments a int based on zero-based range for the frame number and a Fuction. For example you can make a class which automatically stops… Read the rest