|
YOUR FEEDBACK
Did you read today's front page stories & breaking news?
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
// Function to handle when the user right clicks on the shield After combining all of these elements, your Captivate content now has fully functional, right-click simulation abilities. If you don't want to code this tutorial from scratch, edit the right-click-functionality-example.htm page and modify the object tag's attributes for filename, width, and height to reflect your Captivate SWF file (Figure 3). Note: Before running the following Captivate simulation on your local machine, you must make a change in Flash Player 8 settings. New security features in Flash Player 8 stop Captivate from communicating with JavaScript when you view the file on your local hard drive. Follow the instructions in the Breeze Presenter TechNote, Security Warning with Flash Player 8, to change these settings in Flash Player 8 so that you can run these files properly on your local hard drive. This issue does not apply to Captivate content hosted on a web server. The right-click functionality only runs on Microsoft Internet Explorer. Start simulation of right-click functionality In the simulation, the prompt asks you to click "Close". Right-click My Computer to see the simulated right-click functionality explained in this tutorial.
Where to Go from Here This code was developed and tested exclusively with Microsoft Internet Explorer 6 on Windows XP; compatibility with other versions or browsers is highly unlikely - or at least unknown at this time. Creating a cross-browser alternative would be very useful to allow non-IE6 users to enjoy this right-click functionality. If you have any suggestions on how to improve any aspect of this method, including cross-browser support, feel free to contact me at steve@suncitydesign.com. I would be happy to discuss any further enhancements or problems you might have to make this method as useful as possible. This article originally appeared on www.macromedia.com/devnet. Reprinted with permission.
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 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||