Category Archives: AS3

Things related specifically to ActionScript 3.0

MouseWheelTrap – how to stop simultaneous Flash / browser scrolling in AS3

I recently stumbled over a new AS3 gotcha that seems to be bugging a lot of the Flash community. Apparently a new 'feature' of AS3, whereby using the mousewheel inside an embedded Flash movie still scrolls the surrounding browser window … Continue reading

Posted in AS3, Flash | Tagged , , , , , | 8 Comments

CoolIris type thing in 30 lines

PLAIN TEXT Actionscript: package { // Piclens type thing in 30 lines (FP10+) Liam O'Donnell - spikything.com     import flash.display.Sprite;     import flash.events.Event;     public class Main extends Sprite {         private var container … Continue reading

Posted in 3D, AS3, Flash | Tagged , , , , | 3 Comments

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