Category Archives: Flash

Anything related to Flash or ActionScript

Local playback security in FlashDevelop and Flash CS3 / CS4

I’ve seen a few people get into a pickle over this one. When you’re developing and testing locally, you need to set the ‘Local Playback Security’ setting (sometimes referred to as the ‘use network services’ option) depending on whether you … Continue reading

Posted in Flash | Tagged , , | Leave a comment

How to embed fonts in pure AS3

On my travels as a contractor, I've seen various methods used for embedding fonts in ActionScript 3 projects (code embedded, creating font SWFs, runtime loading, etc). Each of them has its own merits (and limitations), but generally you're looking for … Continue reading

Posted in AS3, Flash | Tagged , , , | 1 Comment

How to use ExternalInterface to integrate AS3 with JavaScript

Here's a quick snippet of code for integrating your SWFs with JavaScript, using ExternalInterface: PLAIN TEXT Actionscript: import flash.external.ExternalInterface;   // Calling a JavaScript function from AS3 (with optional parameters) if (ExternalInterface.available) ExternalInterface.call("javascriptFunction", param1, param2);   // Implementing a JavaScript … Continue reading

Posted in AS3, Flash | Tagged , , , , , | Leave a comment

Webcam spherize

I cobbled this webcam demo together for no other reason than creative curiosity - a half of mirrors for the information age, I guess - source

Posted in AS3, Flash, Webcam | Tagged , | Leave a comment

Head tracking in 3D

I started trying to find useful things to do with face detection, but with limited success. I tried using the Libspark Haar Cascades implementation of face detection with Papervision3D to create a sort of head tracking effect, but it's a … Continue reading

Posted in 3D, AS3, Flash, Webcam | Tagged , , | Leave a comment