Category Archives: tutorial

Distance Formula in Actionscript Tutorial | Pythagorean theorem

Overview To find the distance of any two points on an axis is easy, just subtract them. But what about when you have to find the distance of something not on the axis (a diagonal)? Find the distance between any two points with the Pythagorean theorem. This is an old problem we can look to history [...]
Posted in tutorial | Tagged , , , , , , , | 2 Comments

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 | Tagged , , , , , , , , , | 35 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 | Tagged , , , , , , , , | 40 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 1ContextMenuItem(caption:String, callbackFunction:Function, [separatorBefore:Boolean], [enabled:Boolean], [visible:Boolean]) Creates a new ContextMenuItem object that can be added to the 1ContextMenu.customItems array. Steps: The menu item has a caption, which is displayed to the user in the right click menu. It [...]
Posted in tutorial | Tagged , , , , , , , , | 4 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 | Tagged , , , , , , , | 25 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 or [...]
Posted in tutorial | Tagged , , , , , | 1 Comment

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