|
|
YOUR FEEDBACK
Did you read today's front page stories & breaking news?
SOA World Conference
Virtualization Conference $200 Savings Expire May 16, 2008... – Register Today!
SYS-CON.TV SYS-CON.TV WEBCASTS |
MXDJ TOP LINKS YOU MUST CLICK ON ! Captivate
Adding Right-Click Functionality to Captivate Content
Instead of trying to avoid right-click events, I have come up with a solution that simulates right-click functionality
Mar. 1, 2006 12:00 PM
Digg This!
Page 1 of 3
next page »
If you have used Macromedia Captivate to create interactive software training simulations, you have probably come across a situation where you needed to simulate a right-click event. Unfortunately, the current version of Captivate cannot directly support this functionality because Macromedia Flash Player uses the right-click event to trigger the player menu, which enables you to change player settings or zoom in and out of the SWF file that is playing. This restriction can be frustrating if your demonstration or simulation needs to show that your software has functions only available by performing a right-click action.
Configuring the HTML and CSS for a Shield Before creating the "shield" layer, you must properly configure the Captivate object. Adjust the standard HTML output that Captivate generates with the following simple modifications:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" Now that you have set up the movie object correctly, add the shield layer on top of it. Start by inserting the following HTML just above the object tag:
<div id="shield"><img src="transparent.gif" class="shield" galleryimg="no"> The shield layer contains a transparent image that stops any mouse clicks from reaching the Flash application. Setting the galleryimg attribute to "no" prevents Internet Explorer from displaying the Image toolbar that appears when a user hovers over an image with the mouse. The CSS for the shield image, shield layer, and Captivate content is quite simple:
div#shield { You can add the CSS directly to the styles defined in the head of the HTML file, or place them in an externally linked style sheet. This code sets the transparent GIF file to occupy 100% of the space of the shield layer. The shield layer is set so that it will not appear by default, and its position is set to "absolute". The Z-index property specifies for the browser how to stack components on the screen. Because the shield must be on top of the Captivate SWF file, you must set the shield's Z-index higher.
Setting Up the Captivate Source File Before you can use the JavaScript code, you need some information from the Captivate content. You need to specify when the JavaScript should show the shield and where the user must click to advance to the next slide. Page 1 of 3 next page » LATEST FLEX STORIES & POSTS
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS SUBSCRIBE TO OUR RSS FEEDS & GET YOUR SYS-CON NEWS LIVE!
|
SYS-CON FEATURED WHITEPAPERS MOST READ THIS WEEK |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||