Re: [Flashcoders] Right Click disabling

2007-03-02 Thread Cortlandt Winters

Blast.

Sorry for the false hopes.

I'll let you know if I get tempted by the dark side and get lucky?

On 3/1/07, Andy Jones <[EMAIL PROTECTED]> wrote:


Cort,

Sadly your method doesn't seem to work.  I think I'm going to have to
come back to the light and emerge from the dark world of frustration!

Basically, your method does what it says on the tin (but does show a
menu with paste greyed out) but as soon as you start playing with the
creating anything other than a text field the whole thing stops working.
Maybe I'm too thick to see how to do it although I like the idea.

Thanks for your suggestions though and if anyone feels like proving this
DOES work then you'll find the entire flash community extremely
grateful!

Cheers


Andy Jones
Learning Consultant


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Cortlandt Winters
Sent: 28 February 2007 23:39
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Right Click disabling

Hi Andy,

Actually there is a way, though I think it's a metaphysical law that
somebody has to say it's impossible before an answer appears.

I had to do this so that folk could copy paste with ctrl-c ctrl-v and
have the text modified before put in atext field but not allow a
right-click-paste into the text field that could mess up the rich text
properties otherwise.

I only did it for one textfield, though I don't see any reason why you
wouldn't be able to apply the same idea everywhere.

The basic idea is that you create a custom right click menu and trap
it's onSelect event. When that event gets triggered, you create an
editable textfield and set the focus to it, since the object that
received the event no longer has focus, the right click menu goes away.

It was a while ago but I believe this was the snippet that did the
trick.

public function onLoad() {
var menu_cm:ContextMenu = new ContextMenu();
menu_cm.hideBuiltInItems();
menu_cm.onSelect = function(item:Object,item_menu:Object){
GhostObj.createTextField("Paste_txt", 1, 0, 0, 10, 20);
GhostObj.Paste_txt.type = "input";
Selection.setFocus(eval("GhostObj.Paste_txt"));
}
Capture_txt.menu = menu_cm;
...

Let me know if it works for you,

-Cort

On 2/28/07, Kalani Bright <[EMAIL PROTECTED]> wrote:
>
>
> Hi Andy,
>
> This will drive you wild until you're living with the lions in Africa.

> Save yourself.  It's not possible especially in a .swf.  They removed
> that possibility in flash 5 or 6.
>
> I even tried putting in in a C# windows application with complicated
> scripting to toggle a layer above it and faking mouse events that I
> wanted to send.  I found you can't send fake events to flash.  You
> would need access to the unmanaged code area (for other readers).
> It's especially not possible with a swf or an application unless that
> application is a Zinc app or if you shell out some big moolah to Adobe

> for a special license (but won't work for a swf either).
>
> Come back, Andy, come back into the light...it's not worth it really.
>
> Kalani
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Andy
> Jones
> Sent: Wednesday, February 28, 2007 7:18 AM
> To: flashcoders@chattyfig.figleaf.com
> Subject: [Flashcoders] Right Click disabling
>
> Hi,
>
> I know this has been done to death but nothing has answered my real
> problem.
> I need to turn off the right click menu completely in a swf.
> I don't want it to display custom stuff (I can do that), I want it to
> detect a right click but not show the menu.  This can only be in a
> swf, not an exe so the compilers don't work.
>
> Please help - this has been driving me wild!
>
>
> Andy Jones
> Learning Consultant
>
>
>
> This email was sent to you by Reuters, the global news and information

> company.
> To find out more about Reuters visit www.about.reuters.com
>
> Any views expressed in this message are those of the individual
> sender, except where the sender specifically states them to be the
> views of Reuters Limited.
>
> Reuters Limited is part of the Reuters Group of companies, of which
> Reuters Group PLC is the ultimate parent company.
> Reuters Group PLC - Registered office address: The Reuters Building,
> South Colonnade, Canary Wharf, London E14 5EP, United Kingdom
Registered No:
> 3296375 Registered in England and Wales
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by

RE: [Flashcoders] Right Click disabling

2007-03-01 Thread Andy Jones
Cort,

Sadly your method doesn't seem to work.  I think I'm going to have to
come back to the light and emerge from the dark world of frustration!

Basically, your method does what it says on the tin (but does show a
menu with paste greyed out) but as soon as you start playing with the
creating anything other than a text field the whole thing stops working.
Maybe I'm too thick to see how to do it although I like the idea. 

Thanks for your suggestions though and if anyone feels like proving this
DOES work then you'll find the entire flash community extremely
grateful!

Cheers


Andy Jones
Learning Consultant


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Cortlandt Winters
Sent: 28 February 2007 23:39
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Right Click disabling

Hi Andy,

Actually there is a way, though I think it's a metaphysical law that
somebody has to say it's impossible before an answer appears.

I had to do this so that folk could copy paste with ctrl-c ctrl-v and
have the text modified before put in atext field but not allow a
right-click-paste into the text field that could mess up the rich text
properties otherwise.

I only did it for one textfield, though I don't see any reason why you
wouldn't be able to apply the same idea everywhere.

The basic idea is that you create a custom right click menu and trap
it's onSelect event. When that event gets triggered, you create an
editable textfield and set the focus to it, since the object that
received the event no longer has focus, the right click menu goes away.

It was a while ago but I believe this was the snippet that did the
trick.

public function onLoad() {
var menu_cm:ContextMenu = new ContextMenu();
menu_cm.hideBuiltInItems();
menu_cm.onSelect = function(item:Object,item_menu:Object){
GhostObj.createTextField("Paste_txt", 1, 0, 0, 10, 20);
GhostObj.Paste_txt.type = "input";
Selection.setFocus(eval("GhostObj.Paste_txt"));
}
Capture_txt.menu = menu_cm;
...

Let me know if it works for you,

-Cort

On 2/28/07, Kalani Bright <[EMAIL PROTECTED]> wrote:
>
>
> Hi Andy,
>
> This will drive you wild until you're living with the lions in Africa.

> Save yourself.  It's not possible especially in a .swf.  They removed 
> that possibility in flash 5 or 6.
>
> I even tried putting in in a C# windows application with complicated 
> scripting to toggle a layer above it and faking mouse events that I 
> wanted to send.  I found you can't send fake events to flash.  You 
> would need access to the unmanaged code area (for other readers).  
> It's especially not possible with a swf or an application unless that 
> application is a Zinc app or if you shell out some big moolah to Adobe

> for a special license (but won't work for a swf either).
>
> Come back, Andy, come back into the light...it's not worth it really.
>
> Kalani
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Andy 
> Jones
> Sent: Wednesday, February 28, 2007 7:18 AM
> To: flashcoders@chattyfig.figleaf.com
> Subject: [Flashcoders] Right Click disabling
>
> Hi,
>
> I know this has been done to death but nothing has answered my real 
> problem.
> I need to turn off the right click menu completely in a swf.
> I don't want it to display custom stuff (I can do that), I want it to 
> detect a right click but not show the menu.  This can only be in a 
> swf, not an exe so the compilers don't work.
>
> Please help - this has been driving me wild!
>
>
> Andy Jones
> Learning Consultant
>
>
>
> This email was sent to you by Reuters, the global news and information

> company.
> To find out more about Reuters visit www.about.reuters.com
>
> Any views expressed in this message are those of the individual 
> sender, except where the sender specifically states them to be the 
> views of Reuters Limited.
>
> Reuters Limited is part of the Reuters Group of companies, of which 
> Reuters Group PLC is the ultimate parent company.
> Reuters Group PLC - Registered office address: The Reuters Building, 
> South Colonnade, Canary Wharf, London E14 5EP, United Kingdom
Registered No:
> 3296375 Registered in England and Wales
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training 
> http://www.figleaf.com http://training.figleaf.com
>
>
> 

RE: [Flashcoders] Right Click disabling

2007-03-01 Thread Andy Jones
You guys are heroes!

Thanks for the advice - I'll be badgering away at this today and I'll
let you know.

Cheers 


Andy Jones
Learning Consultant
Reuters Messaging: [EMAIL PROTECTED]
(t) +44 207542 6011 | (m) +44 7795 953895



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Cortlandt Winters
Sent: 28 February 2007 23:39
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Right Click disabling

Hi Andy,

Actually there is a way, though I think it's a metaphysical law that
somebody has to say it's impossible before an answer appears.

I had to do this so that folk could copy paste with ctrl-c ctrl-v and
have the text modified before put in atext field but not allow a
right-click-paste into the text field that could mess up the rich text
properties otherwise.

I only did it for one textfield, though I don't see any reason why you
wouldn't be able to apply the same idea everywhere.

The basic idea is that you create a custom right click menu and trap
it's onSelect event. When that event gets triggered, you create an
editable textfield and set the focus to it, since the object that
received the event no longer has focus, the right click menu goes away.

It was a while ago but I believe this was the snippet that did the
trick.

public function onLoad() {
var menu_cm:ContextMenu = new ContextMenu();
menu_cm.hideBuiltInItems();
menu_cm.onSelect = function(item:Object,item_menu:Object){
GhostObj.createTextField("Paste_txt", 1, 0, 0, 10, 20);
GhostObj.Paste_txt.type = "input";
Selection.setFocus(eval("GhostObj.Paste_txt"));
}
Capture_txt.menu = menu_cm;
...

Let me know if it works for you,

-Cort

On 2/28/07, Kalani Bright <[EMAIL PROTECTED]> wrote:
>
>
> Hi Andy,
>
> This will drive you wild until you're living with the lions in Africa.

> Save yourself.  It's not possible especially in a .swf.  They removed 
> that possibility in flash 5 or 6.
>
> I even tried putting in in a C# windows application with complicated 
> scripting to toggle a layer above it and faking mouse events that I 
> wanted to send.  I found you can't send fake events to flash.  You 
> would need access to the unmanaged code area (for other readers).  
> It's especially not possible with a swf or an application unless that 
> application is a Zinc app or if you shell out some big moolah to Adobe

> for a special license (but won't work for a swf either).
>
> Come back, Andy, come back into the light...it's not worth it really.
>
> Kalani
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Andy 
> Jones
> Sent: Wednesday, February 28, 2007 7:18 AM
> To: flashcoders@chattyfig.figleaf.com
> Subject: [Flashcoders] Right Click disabling
>
> Hi,
>
> I know this has been done to death but nothing has answered my real 
> problem.
> I need to turn off the right click menu completely in a swf.
> I don't want it to display custom stuff (I can do that), I want it to 
> detect a right click but not show the menu.  This can only be in a 
> swf, not an exe so the compilers don't work.
>
> Please help - this has been driving me wild!
>
>
> Andy Jones
> Learning Consultant
>
>
>
> This email was sent to you by Reuters, the global news and information

> company.
> To find out more about Reuters visit www.about.reuters.com
>
> Any views expressed in this message are those of the individual 
> sender, except where the sender specifically states them to be the 
> views of Reuters Limited.
>
> Reuters Limited is part of the Reuters Group of companies, of which 
> Reuters Group PLC is the ultimate parent company.
> Reuters Group PLC - Registered office address: The Reuters Building, 
> South Colonnade, Canary Wharf, London E14 5EP, United Kingdom
Registered No:
> 3296375 Registered in England and Wales
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training 
> http://www.figleaf.com http://training.figleaf.com
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training 
> http://www.figleaf.com http://training.figleaf.com
>
__

Re: [Flashcoders] Right Click disabling

2007-02-28 Thread Cortlandt Winters

Hi Andy,

Actually there is a way, though I think it's a metaphysical law that
somebody has to say it's impossible before an answer appears.

I had to do this so that folk could copy paste with ctrl-c ctrl-v and have
the text modified before put in atext field but not allow a
right-click-paste into the text field that could mess up the rich text
properties otherwise.

I only did it for one textfield, though I don't see any reason why you
wouldn't be able to apply the same idea everywhere.

The basic idea is that you create a custom right click menu and trap it's
onSelect event. When that event gets triggered, you create an editable
textfield and set the focus to it, since the object that received the event
no longer has focus, the right click menu goes away.

It was a while ago but I believe this was the snippet that did the trick.

public function onLoad() {
   var menu_cm:ContextMenu = new ContextMenu();
   menu_cm.hideBuiltInItems();
   menu_cm.onSelect = function(item:Object,item_menu:Object){
   GhostObj.createTextField("Paste_txt", 1, 0, 0, 10, 20);
   GhostObj.Paste_txt.type = "input";
   Selection.setFocus(eval("GhostObj.Paste_txt"));
   }
   Capture_txt.menu = menu_cm;
...

Let me know if it works for you,

-Cort

On 2/28/07, Kalani Bright <[EMAIL PROTECTED]> wrote:



Hi Andy,

This will drive you wild until you're living with the lions in
Africa.  Save
yourself.  It's not possible especially in a .swf.  They removed that
possibility in flash 5 or 6.

I even tried putting in in a C# windows application with complicated
scripting to toggle a layer above it and faking mouse events that I wanted
to send.  I found you can't send fake events to flash.  You would need
access to the unmanaged code area (for other readers).  It's especially
not
possible with a swf or an application unless that application is a Zinc
app
or if you shell out some big moolah to Adobe for a special license (but
won't work for a swf either).

Come back, Andy, come back into the light...it's not worth it really.

Kalani


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andy Jones
Sent: Wednesday, February 28, 2007 7:18 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Right Click disabling

Hi,

I know this has been done to death but nothing has answered my real
problem.
I need to turn off the right click menu completely in a swf.
I don't want it to display custom stuff (I can do that), I want it to
detect
a right click but not show the menu.  This can only be in a swf, not an
exe
so the compilers don't work.

Please help - this has been driving me wild!


Andy Jones
Learning Consultant



This email was sent to you by Reuters, the global news and information
company.
To find out more about Reuters visit www.about.reuters.com

Any views expressed in this message are those of the individual sender,
except where the sender specifically states them to be the views of
Reuters
Limited.

Reuters Limited is part of the Reuters Group of companies, of which
Reuters
Group PLC is the ultimate parent company.
Reuters Group PLC - Registered office address: The Reuters Building, South
Colonnade, Canary Wharf, London E14 5EP, United Kingdom Registered No:
3296375 Registered in England and Wales


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Right Click disabling

2007-02-28 Thread Kalani Bright

Hi Andy,

This will drive you wild until you're living with the lions in Africa.  Save
yourself.  It's not possible especially in a .swf.  They removed that
possibility in flash 5 or 6.

I even tried putting in in a C# windows application with complicated
scripting to toggle a layer above it and faking mouse events that I wanted
to send.  I found you can't send fake events to flash.  You would need
access to the unmanaged code area (for other readers).  It's especially not
possible with a swf or an application unless that application is a Zinc app
or if you shell out some big moolah to Adobe for a special license (but
won't work for a swf either).

Come back, Andy, come back into the light...it's not worth it really.

Kalani


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andy Jones
Sent: Wednesday, February 28, 2007 7:18 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Right Click disabling

Hi,

I know this has been done to death but nothing has answered my real problem.
I need to turn off the right click menu completely in a swf.
I don't want it to display custom stuff (I can do that), I want it to detect
a right click but not show the menu.  This can only be in a swf, not an exe
so the compilers don't work.

Please help - this has been driving me wild! 


Andy Jones
Learning Consultant



This email was sent to you by Reuters, the global news and information
company. 
To find out more about Reuters visit www.about.reuters.com

Any views expressed in this message are those of the individual sender,
except where the sender specifically states them to be the views of Reuters
Limited.

Reuters Limited is part of the Reuters Group of companies, of which Reuters
Group PLC is the ultimate parent company.
Reuters Group PLC - Registered office address: The Reuters Building, South
Colonnade, Canary Wharf, London E14 5EP, United Kingdom Registered No:
3296375 Registered in England and Wales


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com