Tag Archives: tutorial

CSS and HTML WYSIWYG in Flash | Open Source Example

Overview: Using what I learned with the Actionscript Javascript Communication Tutorial, and pushing it a little further I’ve set up this example of how flash renders html and css. This is basically a wysiwyg (What you see is what you get) html editor! Natively flash only handles some html and css. Many people have enhanced [...]
Posted in portfolio | Also tagged , , , , , , , , | Leave a comment

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 , , , , , , , , | 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 | Also 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 | Also 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 | Also 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 | Also 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 | Also 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 | Also tagged , | 21 Comments