UPDATE: there’s a newer post about this same thing (actionscript javascript communication – but in as3)! I encourage you to check it out! Overview: Using ExternalInterface.addCallback() we can expose an actionscript function and make it available to javascript. This would be helpful to have your webpage with embedded flash communicate to your flash swf file [...]
Category Archives: tutorial
Actionscript Javascript Communication | ExternalInterface call and addCallback Tutorial
Posted in tutorial Tagged actionscript, as2, download, flash, html, interactive, javascript, open source, tutorial, web design 64 Comments
Integrate Google Analytics with Flash | Tutorial
The results are in and the requested topic is “Integrate Google Analytics into Flash.” The poll has been reset and is ready to recieve your post requests, so keep voting! It’s located in the side bar! Overview: Tracking your visitors and attempting to better understand them is a large part of even having content on [...]
Posted in tutorial Tagged actionscript, analytics, as2, download, flash, interactive, javascript, open source, tutorial 52 Comments
Customize the Right-click menu in Flash | ContextMenuItem Tutorial
Overview: Flash give publishers the opportunity to customize the right-click menu which pops up in the swf file with a context menu item in actionscript. ContextMenuItem ContextMenuItem(caption:String, callbackFunction:Function, [separatorBefore:Boolean], [enabled:Boolean], [visible:Boolean]) Creates a new ContextMenuItem object that can be added to the ContextMenu.customItems array. Steps: The menu item has a caption, which is displayed to [...]
Posted in tutorial Tagged actionscript, as2, download, experiment, flash, interactive, open source, tutorial, web design 5 Comments
Get current url to Flash swf using an External Interface call
Update: please see the newer tut talking about getting the current url with as3 Overview: Many have struggled with the task of getting you swf to read or get the current url showing in the browser, the html page the browser is at which has the swf embedded. Not to be confused with the _root._url [...]
Posted in tutorial Tagged actionscript, as2, download, flash, html, javascript, open source, tutorial 40 Comments
PHP Menu Include function to reuse an html block on multiple pages
Overview: When making websites frequently we want a navigation bar or menu to show on every page. Rather than repeating the code on every single page, which is virtually impossible to update and maintain, or worse, using frames, use PHP to automate this and build each page dynamically. PHP will just paste in the navigation [...]
NavBar Menu List with CSS

The Overview: An interactive navigation bar using CSS with rounded corners. Just put the html as an unordered list and your navigation links as list items and the CSS will do the rest! As shown here! The css will tell the browser to display this special unordered list as the menu. This utilizes a technique [...]
Posted in tutorial Tagged css, dreamweaver, html, interactive, open source, tutorial, web design, website 1 Comment
Javascript Code to show a hidden element | Display and Visibility
The Overview: Here’s a quick javascript trick to control display settings. See it in action here: jsToggle. All we do is set the display of an element to none, and then use a javascript function to toggle the display when a user clicks something else. The Steps: 1. So pick an id and set it’s [...]
Dynamic Scrolling Buttons
Also posted in portfolio Tagged actionscript, as2, download, experiment, flash, interactive, open source, tutorial 13 Comments
Multiple Targets
An actionscript exercise. Trying to get a movie clip to go to the closest dynamically created target. Click the button to make more targets. Dragable targets. Move the targets around to see the ball’s target change. Example
actionscript Here’s the actioscript for the little ball: onClipEvent (load) [...]Also posted in portfolio Tagged actionscript, as2, experiment, flash, interactive, open source Leave a comment












Bruce Brownlee