Tag Archives: javascript

Actionscript Javascript Communication | ExternalInterface call and addCallback Tutorial

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 and even control it with javascript! Say we wanted to have buttons in the html page that would control an object in the flash. [...]
Posted in tutorial | Also tagged , , , , , , , , | 36 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 the web. [...]
Posted in tutorial | Also tagged , , , , , , , | 40 Comments

Get current url to Flash swf using an External Interface call

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 which returns the path of the swf file. This would be helpful to know if [...]
Posted in tutorial | Also tagged , , , , , , | 25 Comments

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 style=”display:none” (if this is [...]
Posted in tutorial | Also tagged , | 21 Comments