Tag Archives: externalinterface

MouseWheelTrap now at GoogleCode

I’ve put the latest version of my Flash/browser scrolling fixer over on GoogleCode and will be updating it there, as necessary.

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

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

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