<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" creationComplete="myInit()">
<mx:Script>
<![CDATA[
function myInit(){
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems()
my_cm.customItems.push(new ContextMenuItem("Top Button context menu", function(){}));
btn_1['menu'] = my_cm;
var my_cm2 = new ContextMenu();
my_cm2.customItems.push(new ContextMenuItem("Bottom Button context menu", function(){}));
btn_2['menu'] = my_cm2;
}
]]>
</mx:Script>
<mx:Button id="btn_1" label="Context Menu without built-in items" click="alert('rightClick on me')"/>
<mx:Button id="btn_2" label="ContextMenu" click="alert('rightClick on me')"/>
</mx:Application>
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of David Harris
Sent: jeudi 29 septembre 2005 20:47
To: [email protected]
Subject: Re: [flexcoders] mouse-right-click-event?
The right click can only be used on the Main MXML file, and not any nested views.
Limitations in the flash player....
has this changed for flash 8, any one know?
Here is a solution from Manish:
http://www.cflex.net/showfiledetails.cfm?ObjectID=195
Tracy
From: [email protected] [mailto:[email protected]] On Behalf Of Clint Modien
Sent: Thursday, September 29, 2005 2:40 PM
To: [email protected]
Subject: Re: [flexcoders] mouse-right-click-event?
I've seen a work around for this somewhere in this group.... it involved catching using the mouseOver event to determine which component the mouse is over and editing the context menu before the menu is shown... never done it but it might be something to try?
Can search this group here... *no wildcards tho*... kind of sucks... but it's better than anything else i've seen...
On 9/29/05, Tracy Spratt < [EMAIL PROTECTED]> wrote:
http://www.cflex.net/showfaq.cfm?Object=faq&channelID=1&faqtype=&default
fields=&defaultValues=#Question396
Tracy
-----Original Message-----
From: [email protected] [mailto: [email protected]] On
Behalf Of Christoph Diefenthal
Sent: Thursday, September 29, 2005 11:05 AM
To: '[email protected]'
Subject: [flexcoders] mouse-right-click-event?
Hi people,
Is there a possibility to process a mouse-right-click-event instead of
opening the flash-menu?
Cheers
Christoph
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~->
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comSPONSORED LINKS
Web site design development Computer software development Software design and development Macromedia flex Software development best practice
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
------------------------------------------------------------------
**STATEMENT OF CONFIDENTIALITY**
This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited.
We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus.
------------------------------------------------------------------

