• 05 Oct 2009
  • Posted by ESA
  • Comments Off

The HD Media Player displays a custom context menu when the user right-clicks the player. Once you buy the player, you can open the FLA and alter the following action script to remove our branding and point users to your own site for more information (look for the scripts in the actions panel, scene 1, frame 1). We highly recommend using the context menu (i.e. do not delete it), because it is an effective way to provide more information to your users, and it discourages people from stealing the player from your site. To modify the context menu, alter the “ESA HD Media Player v.x” text (red) and url link (blue), save your project, and publish a new SWF.

import flash.net.URLRequest;
import flash.ui.ContextMenu;
var custom_menu:ContextMenu = new ContextMenu();
var credit:ContextMenuItem = new ContextMenuItem(”ESA HD Media Player v.x“);
credit.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, visit_credit);
credit.separatorBefore = false;
this.contextMenu = custom_menu;
function visit_credit(e:Event) {
 var link:URLRequest = new URLRequest(”http://components.earthscienceagency.com/flash_media_player/index.php?context“);
 navigateToURL(link, “_blank”);


Support - Documentation - Skin Wizard - Sample Skins - Tutorials
Copyright © 2003-2011 Earth Science Agency, LLC - All Rights Reserved