ActionScript 3.0 :: Contextmenu Stealing Focus?
Feb 12, 2012
I just noticed that using the context menu will take away focus fronm the application.
Here is simple example: one part is similar to the example for flash.ui.ContextMenu, the other one just performs some action on keyboard events (the keys could as well be used to move the square around)
[Code]...
View 3 Replies
Similar Posts:
Jun 21, 2011
I have a fairly complex form page and there's one MovieClip that's misbehaving. It's quite a bit of code so I'm having trouble locating where it's being generated from because the page is fairly dynamic.I'm looking for a sort of MovieClip.prototype-esque way of trace()ing the name of any clip that's clicked in a global fashion. Thus when I click and the misbehaving movieclip is firing off I can figure out who/what it is.
I find that when I override the prototype of any part of MovieClip that it renders other elements unusable. For example I tried to just override onReleaseOutside temporarily to see if I could get the clips name but it also disabled onPress, onRelease, etc and everything stopped working.
[Code]...
View 2 Replies
Dec 6, 2009
I have pageA that loads sort of flash player, the url of rtmp that player listens to is hidden in other .aspx file that validates a session which generated on pageA. Is there another way or better way to limit users from stealing the rtmp link ?
View 1 Replies
Mar 8, 2011
[Code]...
when i have this line active(the red one) it gives me automatic focus, so no clicking to be able to detect key input so i got that going for me which is nice BUT when i have it active(not commented out) i get this big yellow line which goes away when i click it(seeBelow)
View 1 Replies
Jul 13, 2009
Does anyone know how to do this in AS3?
View 3 Replies
Sep 14, 2010
can I set the keyboard focus for a TLFTextField? I tried stage.focus = myTLF but there is no cursor...
View 2 Replies
Mar 16, 2009
I have a TextField called textField on the first frame of the main timeline, and this simple code.
Code:
import flash.events.KeyboardEvent;
import flash.events.FocusEvent;
[code]......
View 2 Replies
Feb 5, 2009
I am trying to prevent users from viewing my site and then simply going into their "temporary internet files" and stealing my swfs and XML files. I have been using a great .PHP code to stop this but now I am working on a server server that only uses .aspx files. Does anybody know of a way that I can stop files from being stored in the "temporary internet files" folder. I have encrypted the files but this is not good enough.
View 0 Replies
Sep 11, 2009
How to include contextMenu for whole swf?
View 4 Replies
Sep 20, 2009
Just compiled it with amxmlc and it gave me errors over the presence of "customItems" - nothing else at all in the entire 1500+ line AS3/flex program. I took out the customItems reference and it compiles with amxmlc just fine. Nothing about that feature 'customItems' is indicated to be anything other than active and current in the documentation. All amxmlc actually does is add a command line argument for AIR to the standard mxmlc.
View 1 Replies
May 9, 2011
If I open an empty FLA and put in this code:
Code:
var cm:ContextMenu = new ContextMenu();
cm.hideBuiltInItems();
this.contextMenu = cm;
Then it works and the context menu for the empty flash file has no built in items. But if I take a project that I already have, and in the class that gets compiled's constructor I put that exact same code, it compiles fine and everything but the context menu still has all of the default items no matter where I click.
View 7 Replies
May 20, 2008
So in AS2 you could add a contextMenu for the whole movie like this:
[Code]....
I have also tried just adding items to stage.contextMenu but that didn't work either. I also added a custom context menu to my Document class but that doesn't work for the whole movie. So does anyone know if there is something I can do to set the contextMenu for the whole movie?
View 4 Replies
Jan 4, 2010
Using contextMenu, i removed all BuiltInItems. Its working fine in IE.when i am viewing the same html file in mozilla, "Show Redraw Regions" option is still visible when i am right clicking on browser. In IE, its fine.
View 1 Replies
Apr 22, 2010
How will I know the right click menu is currently open? Like a contextmenu.active = true property but that doesn't exist. An alternative would be a way to check if the user just right clicked but the right click event listener is for Adobe Air only as far as I know.
View 2 Replies
Feb 1, 2011
I'm pretty sure my code is OK as the Context Menu shows nicely when I compile for web, but when I compile for AIR nothing shows up.
View 2 Replies
Mar 11, 2012
in a flash application i have to build i would like to find out what the target of the context menu is, which gets displayed when i ctrl-click.the reason for that: i created a custom context menu, which only displays over a certain area of the Sprite it belongs to. so there seems to be something "blocking the way".
View 2 Replies
Dec 4, 2010
my code is
var cMenu:ContextMenu = new ContextMenu();
cMenu.hideBuiltInItems();
[code].....
View 2 Replies
Jul 7, 2010
I have a DataGrid with a custom itemRenderer(Canvas) which has a context menu on its right click. I am trying to get the data of the itemRenderer. I tried to find something in event & variables. I also tried with FlexNativeMenu on RIGHT_MOUSE_CLICK. But I didn't find any way out.
View 2 Replies
Mar 7, 2011
I would like to add custom right clicks to a number of spark list controls. I have tried the following as an item renderer. (as per the flex 4 cook book). Full Render code here [URL] When I right click on the Spark List I simply get the Adobe Default Context menu. This is the same default behaviour I had before I added any code to this.
View 2 Replies
Mar 15, 2011
I am trying to use ContextMenu() to display context menus in Flex 4.
Full Render code here [URL]
The problem is that the context menu does not change when I add items to it.
how to add a custom right click menu to a List box in flex (without using external JS, just using ContextMenu as Adobe intended.
View 2 Replies
Apr 12, 2011
Been tearing my hair out for ages trying to get my custom ContextMenu to apply to a TextArea, It will just display the default (copy, paste ect...).
import mx.events.FlexEvent;
public var nm:NativeMenu = new NativeMenu();
public var cm:ContextMenu = new ContextMenu();[code].......
View 1 Replies
Jun 17, 2011
I succeed to display the menu (ContextMenu AS3 class) but associated events (ContextMenuEvent.MENU_SELECT and ContextMenuEvent.MENU_ITEM_SELECT) don't work with IE >= 8 and Chrome >= 12:
AS file :
package
{
import flash.display.*;
import flash.ui.*;
[Code].....
View 2 Replies
Dec 26, 2011
I want to add a context menu with a datagrid which is in a title window, after adding it nothing happens.
[Code]...
I am calling init function on creationComplete event of title window.
View 1 Replies
Feb 9, 2010
how I can change the X and Y positions where the ContextMenu displays. I know you can do it with the display() method, but not sure how to implement it. My code, so far:
ActionScript Code:
var my_cm:ContextMenu = new ContextMenu();
my_cm.hideBuiltInItems();
[Code].....
View 2 Replies
Mar 14, 2012
i attached a custom contextmenu to a sprite. there is another sprite lying "on top" of this first one. so if i try to invoke the custom context menu of the first one, it does not show when the cursor is over the second one.
i already set the properties "mouseEnabled" and "mouseChildren" of the second one to "false"
View 0 Replies
Jan 10, 2005
in Mainframe of test1.fla
var newMovie_mc:MovieClip;
newMovie_mc=_root.createEmptyMovieClip("New1",2);
stop();
[Code]....
How can use ContextMenu from test1.swf??
View 1 Replies
Sep 14, 2010
I am using a ContextMenu for an AdvancedDataGrid in my application. I could implement the normal context menu for the grid. Now, I am planning to make the context menu dynamic.For example, if I click on a particular cell, I need to see only the items related to that cell in the Context Menu. Is there any way we can do that?
View 3 Replies
Jan 10, 2005
in Mainframe of test1.fla
var newMovie_mc:MovieClip;
newMovie_mc=_root.createEmptyMovieClip("New1",2);
stop();
my_cm = new ContextMenu();
[Code]....
How can use ContextMenu from test1.swf??
View 1 Replies
Jul 13, 2010
I have a Flex Library Project which has both Flex specific classes, and Air specific classes.When I reference the library in an Air project, the compiler complains about an overriding contextMenu in mx.containers.Panel, saying that the param should be of type NativeMenu (instead of ContextMenu). If I switch it over to NativeMenu then it compiles fine.
The issue is when I reference the library in a Flex Project. This time it complains that it doesn't know the type NativeMenu. If I try to change it back to ContextMenu, then I get the same error as above.I've searched google to no avail (found that someone else encountered the exact same problem: http:url.... )
View 2 Replies
May 6, 2011
need context menu items only on certain columns (locked columns) of a datagird and not on the other columns.
View 1 Replies