-
Archives
- July 2010
- June 2010
- April 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- April 2009
- March 2009
- February 2009
- December 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- March 2008
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
-
Meta
Tag Archives: AS3
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 AS3, externalinterface, howto, javascript, mousewheel, source code
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
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
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 AS3, externalinterface, Flash, howto, javascript, source code
Leave a comment