RE: [flexcoders] MOUSE RIGHT CLICK EVENT..

2007-12-06 Thread Alex Harui
No such event in the flash player.  You can detect context menu events

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of yourName
Sent: Wednesday, December 05, 2007 11:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] MOUSE RIGHT CLICK EVENT..

 

Plz Tell me how to capture RIGHT CLICK EVENT 

Plz Send me If u Can a code sample if u can

Thanks in advance

 



[flexcoders] MOUSE RIGHT CLICK EVENT..

2007-12-05 Thread yourName
Plz Tell me how to capture RIGHT CLICK EVENT 
Plz Send me If u Can a code sample if u can
Thanks in advance

RE: [flexcoders] mouse-right-click-event?

2005-09-30 Thread Philippe Maegerman





Been fixedin player 8 :)
Couldn't find the example that was posted a few weeks 
ago

?xml version="1.0" 
encoding="utf-8"?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:Scriptmx: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

Philippe 
Maegerman


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of David 
HarrisSent: jeudi 29 septembre 2005 20:47To: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] 
mouse-right-click-event?
The other thing to remember...The right click can only be used on 
the Main MXML file, and not any nested views.Limitations in the flash 
playerhas this changed for flash 8, any one know?
On 9/30/05, Tracy 
Spratt [EMAIL PROTECTED] wrote: 

  
  Here is a solution 
  from Manish:
  http://www.cflex.net/showfiledetails.cfm?ObjectID=195
  Tracy
  
  
  
  
  
  From: flexcoders@yahoogroups.com 
  [mailto:flexcoders@yahoogroups.com] 
  On Behalf Of Clint 
  ModienSent: Thursday, 
  September 29, 2005 2:40 PMTo: flexcoders@yahoogroups.comSubject: 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...
  
  http://www.mail-archive.com/flexcoders@yahoogroups.com/ 
  
  
  
  
  
  
  On 
  9/29/05, Tracy Spratt  [EMAIL PROTECTED] 
  wrote: 
  http://www.cflex.net/showfaq.cfm?Object=faqchannelID=1faqtype=default 
  fields=defaultValues=#Question396Tracy-Original 
  Message-From: flexcoders@yahoogroups.com 
  [mailto: 
  flexcoders@yahoogroups.com] OnBehalf Of Christoph DiefenthalSent: 
  Thursday, September 29, 2005 11:05 AMTo: 'flexcoders@yahoogroups.com'Subject: 
  [flexcoders] mouse-right-click-event? Hi people,Is there a 
  possibility to process a mouse-right-click-event instead ofopening the 
  flash-menu?CheersChristoph--Flexcoders 
  Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
  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 ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
  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 ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
  
  SPONSORED 
  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








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

RE: [flexcoders] mouse-right-click-event?

2005-09-30 Thread Christoph Diefenthal
You are right. It works in Version 8! Thanks !

 -Ursprüngliche Nachricht-
 Von: Christoph Diefenthal
 Gesendet: Freitag, 30. September 2005 10:42
 An: 'flexcoders@yahoogroups.com'
 Betreff: RE: [flexcoders] mouse-right-click-event?
 
 Thanks everybody,
 
 This example is pretty cool, but it still does not work with dynamic
 created components (not even within the Application Tag), like
 
 ...
 var test = canTest.createChild(mx.containers.Canvas,canTestChild,
   { width : 50 , height : 50 , backgroundColor : #ee});
 
 test[menu] = my_cm; // - no effect
 ...
 
 
 
 To bad
 
 
 So I probably have to do it by setting the _root.menu by
 checking mouseOver/mouseOut on my dynamic components.
 
 Or is there any other idea?
 
 
 Cheers
 Christoph
 
 
 
 
 
 
 
 
  -Ursprüngliche Nachricht-
  Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im
  Auftrag von Philippe Maegerman
  Gesendet: Freitag, 30. September 2005 09:38
  An: flexcoders@yahoogroups.com
  Betreff: RE: [flexcoders] mouse-right-click-event?
 
  Been fixed in player 8 :)
  Couldn't find the example that was posted a few weeks ago
 
  ?xml version=1.0 encoding=utf-8?
  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
 
 
  Philippe Maegerman
 
  
 
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
  Behalf Of David Harris
  Sent: jeudi 29 septembre 2005 20:47
  To: flexcoders@yahoogroups.com
  Subject: Re: [flexcoders] mouse-right-click-event?
 
 
  The other thing to remember...
  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?
 
 
  On 9/30/05, Tracy Spratt [EMAIL PROTECTED] wrote:
 
  Here is a solution from Manish:
 
  http://www.cflex.net/showfiledetails.cfm?ObjectID=195
 
  Tracy
 
 
 
 
  
 
 
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
  On Behalf Of Clint Modien
  Sent: Thursday, September 29, 2005 2:40 PM
  To: flexcoders@yahoogroups.com
  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...
 
  http://www.mail-archive.com/flexcoders@yahoogroups.com/
 
 
 
 
 
 
 
  On 9/29/05, Tracy Spratt  [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]  wrote:
 
  http://www.cflex.net/showfaq.cfm?Object=faqchannelID=1faqtype=def
  ault
  fields=defaultValues=#Question396
 
  Tracy
 
  -Original Message-
  From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com
  mailto:flexcoders@yahoogroups.com ] On
  Behalf Of Christoph Diefenthal
  Sent: Thursday, September 29, 2005 11:05 AM
  To: 'flexcoders@yahoogroups.com'
  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
 
 
 
 
 
 
 
 
 
 
 
 
  --
  Flexcoders Mailing List
  FAQ:
  http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives: http://www.mail

RE: [flexcoders] mouse-right-click-event?

2005-09-30 Thread Christoph Diefenthal
Thanks everybody,

This example is pretty cool, but it still does not work with dynamic created
components (not even within the Application Tag), like 

...
var test = canTest.createChild(mx.containers.Canvas,canTestChild, 
{ width : 50 , height : 50 , backgroundColor : #ee});

test[menu] = my_cm; // - no effect
...



To bad


So I probably have to do it by setting the _root.menu by 
checking mouseOver/mouseOut on my dynamic components.

Or is there any other idea?


Cheers 
Christoph






 

 -Ursprüngliche Nachricht-
 Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im
 Auftrag von Philippe Maegerman
 Gesendet: Freitag, 30. September 2005 09:38
 An: flexcoders@yahoogroups.com
 Betreff: RE: [flexcoders] mouse-right-click-event?
 
 Been fixed in player 8 :)
 Couldn't find the example that was posted a few weeks ago
 
 ?xml version=1.0 encoding=utf-8?
 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
 
 
 Philippe Maegerman
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of David Harris
 Sent: jeudi 29 septembre 2005 20:47
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] mouse-right-click-event?
 
 
 The other thing to remember...
 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?
 
 
 On 9/30/05, Tracy Spratt [EMAIL PROTECTED] wrote:
 
   Here is a solution from Manish:
 
   http://www.cflex.net/showfiledetails.cfm?ObjectID=195
 
   Tracy
 
 
 
 
 
 
 
   From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
 On Behalf Of Clint Modien
   Sent: Thursday, September 29, 2005 2:40 PM
   To: flexcoders@yahoogroups.com
   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...
 
   http://www.mail-archive.com/flexcoders@yahoogroups.com/
 
 
 
 
 
 
 
   On 9/29/05, Tracy Spratt  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]  wrote:
 
   http://www.cflex.net/showfaq.cfm?Object=faqchannelID=1faqtype=def
 ault
   fields=defaultValues=#Question396
 
   Tracy
 
   -Original Message-
   From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com
 mailto:flexcoders@yahoogroups.com ] On
   Behalf Of Christoph Diefenthal
   Sent: Thursday, September 29, 2005 11:05 AM
   To: 'flexcoders@yahoogroups.com'
   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
 
 
 
 
 
 
 
 
 
 
 
 
   --
   Flexcoders Mailing List
   FAQ:
 http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Search Archives: http://www.mail-
 archive.com/flexcoders%40yahoogroups.com
 
 
 
 
 
   SPONSORED LINKS
 Web site design development
 http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+si
 te+design+developmentw2=Computer+software+developmentw3=Software+design+
 and+developmentw4=Macromedia+flexw5

[flexcoders] mouse-right-click-event?

2005-09-29 Thread Christoph Diefenthal
Hi people,

Is there a possibility to process a mouse-right-click-event instead of
opening the flash-menu?

Cheers
Christoph




 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/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/
 




RE: [flexcoders] mouse-right-click-event?

2005-09-29 Thread Tracy Spratt
http://www.cflex.net/showfaq.cfm?Object=faqchannelID=1faqtype=default
fields=defaultValues=#Question396

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Christoph Diefenthal
Sent: Thursday, September 29, 2005 11:05 AM
To: 'flexcoders@yahoogroups.com'
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/
 





Re: [flexcoders] mouse-right-click-event?

2005-09-29 Thread Clint Modien



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...
http://www.mail-archive.com/flexcoders@yahoogroups.com/


On 9/29/05, Tracy Spratt [EMAIL PROTECTED] wrote:
http://www.cflex.net/showfaq.cfm?Object=faqchannelID=1faqtype=default
fields=defaultValues=#Question396Tracy-Original Message-From: flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com] OnBehalf Of Christoph DiefenthalSent: Thursday, September 29, 2005 11:05 AMTo: 'flexcoders@yahoogroups.com'Subject: [flexcoders] mouse-right-click-event?
Hi people,Is there a possibility to process a mouse-right-click-event instead ofopening the flash-menu?CheersChristoph--Flexcoders Mailing ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 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 ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 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.com








  
  
SPONSORED 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.



  









RE: [flexcoders] mouse-right-click-event?

2005-09-29 Thread Tracy Spratt










Here is a solution from Manish:

http://www.cflex.net/showfiledetails.cfm?ObjectID=195

Tracy











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Clint Modien
Sent: Thursday, September 29, 2005
2:40 PM
To: flexcoders@yahoogroups.com
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...





http://www.mail-archive.com/flexcoders@yahoogroups.com/



















On 9/29/05, Tracy Spratt [EMAIL PROTECTED] wrote:


http://www.cflex.net/showfaq.cfm?Object=faqchannelID=1faqtype=default

fields=defaultValues=#Question396

Tracy

-Original Message-
From: flexcoders@yahoogroups.com
[mailto: flexcoders@yahoogroups.com]
On
Behalf Of Christoph Diefenthal
Sent: Thursday, September 29, 2005 11:05 AM
To: 'flexcoders@yahoogroups.com'
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.com








  
  
SPONSORED 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.



  











Re: [flexcoders] mouse-right-click-event?

2005-09-29 Thread David Harris



The other thing to remember...
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?On 9/30/05, Tracy Spratt [EMAIL PROTECTED] wrote:



















Here is a solution from Manish:


http://www.cflex.net/showfiledetails.cfm?ObjectID=195

Tracy











From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 
On Behalf Of Clint Modien
Sent: Thursday, September 29, 2005
2:40 PM
To: flexcoders@yahoogroups.com
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...





http://www.mail-archive.com/flexcoders@yahoogroups.com/




















On 9/29/05, Tracy Spratt 
[EMAIL PROTECTED] wrote:



http://www.cflex.net/showfaq.cfm?Object=faqchannelID=1faqtype=default

fields=defaultValues=#Question396

Tracy

-Original Message-
From: flexcoders@yahoogroups.com
[mailto: flexcoders@yahoogroups.com]
On
Behalf Of Christoph Diefenthal
Sent: Thursday, September 29, 2005 11:05 AM
To: 'flexcoders@yahoogroups.com'
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.com









  
  
SPONSORED 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





  




  
  
  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.



  









RE: [flexcoders] mouse-right-click-event?

2005-09-29 Thread Christoph Diefenthal

Ok, I figured out, how to set a ContextMenu on a component. Works fine...
with STATIC components like below .

But with dynamic components

If I change the initThis function below to this




function initThis(){
//var my_cm = new _global[ContextMenu]();
var my_cm :ContextMenu = new ContextMenu();

my_cm.hideBuiltInItems();


my_cm.customItems.push(new ContextMenuItem(Hello, itemHandler));

var test = canTest.createChild(
mx.containers.Canvas,canTestChild, 
{ width : 50 , height : 50 , backgroundColor : #ee});


var contextOver = String( test.id );
mx.core.Application.application[ contextOver ].menu = my_cm;

}



...it does not work anymore... HELP!!




?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=*
initialize=initThis()

mx:Canvas id=canTest width=50 height=50 backgroundColor=#ff /

mx:Script
![CDATA[
var showItem = true; 
var my_cm:ContextMenu;

function initThis(){
var my_cm = new _global[ContextMenu]();
//var my_cm :ContextMenu = new
ContextMenu();

my_cm.hideBuiltInItems();

my_cm.customItems.push(new
ContextMenuItem(Hello, itemHandler));

var contextOver = String( canTest.id );
mx.core.Application.application[ contextOver
].menu = my_cm;

mx.controls.Alert.show(mx.core.Application.application[ contextOver ]);
//canTest.menu = my_cm;

}

function menuHandler(obj, menuObj) {
   if (showItem == false) {
  menuObj.customItems[0].enabled =
false;
   } else {
  menuObj.customItems[0].enabled = true;
   }
}
function itemHandler(obj, item) {
   //...put code here...
   mx.controls.Alert.show(selected!);
}

]]
/mx:Script



/mx:Application














 -Ursprüngliche Nachricht-
 Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im
 Auftrag von Christoph Diefenthal
 Gesendet: Donnerstag, 29. September 2005 17:05
 An: 'flexcoders@yahoogroups.com'
 Betreff: [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/