Flex :: How To Add Keyboard Shortcuts To MX MenuBar

Oct 17, 2010

I have an mx:Menubar, which I need to be able to open/expand based on the key pressed. For e.g., if Shift + R is pressed, it needs to open the 'Request' topmenu. Then if Shift + N is pressed, it should load the 'New request' module in the module loader. I've already implemented the MenuBar/module-loading functionality with the mouse, but I haven't been able to implement the keyboard shortcuts. I found a nice sample at [URL].

However, the solution directly performs the action (e.g. Shift + N to load the 'New request' module). The menu does not open/expand when you press the shortcut as though you had hovered your mouse over it (e.g. Shift + R to open/expand the 'Request' topmenu and then Shift + N to load the 'New request' module).

View 1 Replies


Similar Posts:


Flex :: Adding Keyboard Shortcuts To Application

Sep 3, 2009

I have a flex app with lots of custom components, like custom buttons, comboBoxes etc. I am trying to add keyBoard shortcuts to the flex app. In doing so, I added a key-down listener to the app to listen for ctrl+shift key combination like this:
this.stage.addEventListener(KeyboardEvent.KEY_DOWN, handleKeyDown);

Then I dispatch a custom event that all of my custom components are listening for:
private function reportKeyDown(event:KeyboardEvent):void {
var evtObj:Object = new Object();
evtObj.keyEvent = event;
dispatchEvent(new CustomEvent(CustomEvent.SHORTCUT_KEYS_PRESSED, evtObj, true, false));
}

In my custom button component I have:
this.addEventListener(CustomEvent.SHORTCUT_KEYS_PRESSED, ShortCutKeysHandler, true);
So, if I go ctrl+shift+W then I want one instance of the custom button to get clicked. For some reason, the event never gets triggered and never gets to the ShortCutKeysHandler function.

View 1 Replies

Flex :: Adobe Keyboard Shortcuts When A View Is Visible?

Dec 10, 2009

I have a quite large Flex application with a large set of views and I ceratain views I'd like to add shortcuts. And i'm looking for something like:

<mx:Vbox>
<foo:Shortcut keys="ctrl+s" action="{bar();}"/>
</mx:VBox>

Is there any framwork or component already done that does something like this? I guess it should be too difficult to build? When building this I only want the shortcuts to be active when the view is visible. How do I detect this? What base class is best to inherit from when working with non visual components?

View 3 Replies

Keyboard Shortcuts Not Working?

Feb 1, 2010

My keyboard shortcuts have quit working. I'm not talking custom shortcuts that I have defined. The default Flash shortcuts just don't work anymore.Before anyone asks, yes, I have made sure the "Disable keyboard shortcuts" option is turned off. I'm running Flash CS4 on a Windows XP pro machine.

View 2 Replies

IDE :: Where Are Keyboard Shortcuts Stored On HDD

Apr 25, 2009

I would love to backup my Flash CS4 keyboard shortcuts, but I could not find the file anywhere on my harddrive. I searched for every *.WFX file (or at least that was the right file type for older versions of Flash). I even tried to make an advanced search for all files on my PC and sort them by date modified, right after I made some changes in Flashes keyboard shortcuts - hoping that I would find the file, but haven't.

View 2 Replies

IDE :: CS4 - Library Keyboard Shortcuts?

Oct 6, 2009

I'm assuming the answer to my question is "no" but figure it's worth asking just in caseI'm mostly an AS3 coder, but I need to work on library assets quite often to set classnames on assets so they can be instantiated through code. This usually involves hunting through the Library for the asset I need, then giving it a new name, clicking the tiny little "info" icon at the bottom of the window to bring up the Properties panel for the library item, and assigning a class name etc.

My problem is bringing up the Properties panel is not as quick and simple as it should be. That "info" icon really is tiny, and right-clicking the item in the library and scrolling through it to get to the "Properties" item is fiddly and error prone.What I really want is a keyboard shortcut. There doesn't seem to be one, and I can't assign one in the otherwise excellent Keyboard Shortcuts... menu item since Library commands are not listed there. It is not even a menu item so I can't even trigger it with applescript.

View 2 Replies

Professional :: Keyboard Shortcuts Assignment?

Jan 16, 2012

I wirte my own jsfl commands and put them into "Commands/myScript" folder, and Flash-IDE can recognize/run them without any problem.But when I assigned key shortcut to my commands in "Commands/myScript" folder, and restart Flash-IDE, my shortcuts will NOT WORKING.To correct this problem, I have to open Keyboard Shortcuts Setting window, switch to my own commands, not doing any change and click OK, then my shortcuts work again now(I have to do these EVERY TIME after Flash-IDE started).

View 1 Replies

Flash 9 :: Keyboard Shortcuts Disable Themselves (CS3)

Nov 4, 2008

For years now I have had to restart Flash about once a week because my keyboard shortcuts just stop working. This has happened to me since about Flash 5!

View 1 Replies

ActionScript 3.0 :: Disable Keyboard Shortcuts?

Oct 11, 2010

I have a photo gallery that can be navigated via arrow keys and various keyboard shortcuts. However on the same SWF is also a contact form...now whenever you fill it in and use the 'F' key it tries to put the flash file into Full ScreenHow can I disable all shortcuts when in frame 30 of my SWF (the contact form) and then re-enable them when moving away from that frame.Using Flash CS5 with SlideshowPro. Have looked over the web but can't find very much on this issue at all (surprising?)

View 1 Replies

Professional :: Copy/Paste Keyboard Shortcuts?

Aug 13, 2009

I always used this shortcuts for copy/pasteCut - Shift+DelCopy - Control+InsertPaste - Shift+InsertSo this shortcuts doesnt work in Flash IDE. I've addet this shortcuts in Edit -> Keyboard ShortcutsBUT IT STILL DOESNT WORK !!!I dont wanna use Control+X Control+C Control+Vwhy shortcuts customizing doesnt work ?

View 28 Replies

Flash 10 :: Import Keyboard Shortcuts In A HTML Format

Jul 19, 2011

You can easily export Flash keyboard shortcuts in a HTML format but how on Earth do you import them? There simply is no visible way to do it in the keyboard shortcut panel? How do I go about doing this? (I'm using CS5.5)

View 0 Replies

ActionScript 2.0 :: Swf File And Selecting The 'disable Keyboard Shortcuts'

Nov 7, 2007

Accessibility is driving me up the WALL! I have a system that has menu pop-ups and because of accessibility when the user selects OK it does what ever action the pop-up does and when the user presses ESC it leaves the menu. My issue is this all works fine when testing it in the swf file and selecting the 'disable keyboard shortcuts' BUT when I embedded it into HTML is loses this function and the short cuts stop working and at points activate html stuff. Is there a line of code or something that I can place in the .swf or .html that will disable the keyboard shortcuts?

View 2 Replies

Custom Keyboard Shortcuts And Editing Multiple Layers In Flash CS4?

Oct 27, 2009

CS3 -> CS4 transition newb here who's getting increasingly frustrated with the new motion tweens; however, for this project, I'm working in a 3D space and require using them, so I'm dealing with this bit by painful bit. I found the tip about Split Motion, but first question: how do you apply Split Motion across several layers at the same time? I have six different tweens, and in CS3, I used to be able to shift-click or click-drag across frames and apply a command to all of them (for example, hit F5 to add frames), but Split Motion is requiring me to right-click on each and every layer. This is really laborious, and I worrySimilarly, I tend to add custom keyboard shortcuts to each of my Flash versions for commands I use frequently and don't want to right-click a menu for (such as "add motion tween") - however, I can't seem to find where to create a custom shortcut for either that, or Split Motion.

View 1 Replies

ActionScript 3.0 :: Capturing Keyboard Event - Disable Shortcuts Flash Player?

Jan 30, 2009

I'm trying to capture keyboard events with the following code. I'm testing in an external popup flash player in FlashDevelop and it ain't tracing anything. I reckon it might be something to do with keyboard shortcuts in the flash player.

But I can't find where to disable them?

ActionScript Code:
package {
import flash.display.Sprite;
import flash.events.KeyboardEvent;

[Code]....

View 9 Replies

ActionScript 3.0 :: Browser (Firefox) Keyboard Shortcuts Focus (ctrl+w, Ctrl+n)

Oct 17, 2008

I have a Flash movie which fills the whole browser window. This means that always the key events are catched ("stolen") by the Flash movie only, when using Firefox. IE7 seems to be working as I want.

I want for example ctrl+w (close window), ctrl+n (new window), ctrl+t (new tab) to work in Firefox while the focus is on my Flash movie. How to accomplish this?

View 7 Replies

Professional :: Keyboard Shortcuts For "Edit Multiple Frames", "Onion All", "brush Size" ?

Dec 7, 2011

How could I assign a keyboard shortcut to the "edit multiple frames" button, and setting onion skin options?I don't see these options anywhere in Flash's standard top menus.These are the buttons I'm talking about:Also, how about a keyboard shortcut for setting brush sizes?The only way I can figure out how to set this is from the tools panel dropdown.

View 2 Replies

Flex :: Customizing Flex MenuBar / Removing Hover Effect

Jan 8, 2010

Is there a way to disable the hover effects?I don't want flex to highlight the entire component for both link buttons and menu bar.On the menubar, I applied a backgroundSkin, so having flex highlight the whole menubar when the user hovers their mouse on top quitely destroys the design.

View 1 Replies

Flex :: Internationalizing An Mx:MenuBar?

Nov 11, 2011

Well, I was able to simply enough (after about an hour of googling) implement i18n (internationalization) into my Flex application by having to reverse engineer the Flex SDK and do a lot of digging (a specific question on here helped me a lot! (with some updates for flex 4.5)).The problem is, I can't use my {getLand('key')} bind inside an <fx:XMLList> (how you define the contents of a <mx:MenuBar>. I've included some example i18n below, as well as an example of the menu bar.

<!-- Example of proper (working) i18n -->
<s:TextArea text="{getLang('Rules')}"/>[code]..

View 1 Replies

Actionscript 3 :: In Flex, How To Use Command-shortcuts In The Browser

Jul 17, 2009

I tried catching the command key shortcuts using the keyDown event and checking for KeyboardEvent.ctrlKey, but the browser(Safari) seemed to have intercepted all those key events because the shortcuts I am trying to use coincides with the safari ones.

View 1 Replies

Flex :: Menubar With Susbsitems Events

Apr 30, 2010

regarding the events related to menubar sub items, here is some code iam working with

[Code]...

i want to handle events wen particular subitem is clicked for example ,if submnu item hod of cse is clicked it should go to the particular mxml page ,and if hod of ece is clicked it shold goto other page how do i differentiate each page of particular deparment how do select that particulasr item of that particular submenu itm

View 1 Replies

Flex Menubar Clicking Event?

Aug 9, 2010

I have a menuBar that looks like this:

<mx:MenuBar id="myMenuBar" labelField="@label" cornerRadius="8" color="black" fillColors="[green, green]" itemClick="menuItemClickHandler(event);"
dataProvider="{menuBarCollection}" change="onTopSelection(event)" />

The XML for my menuBar looks like this:

<menuitem label="Vision">
</menuitem>
<menuitem label="About">

[code]....

As you can see there is Vision and Contact Us but the eventHandler doesn't know when those two are clicked. What is the correct way to implement the eventHandler?

View 3 Replies

Actionscript :: Implement A ItemRenderer On MenuBar In Flex 4?

Mar 11, 2011

I'm trying to make a menubar with an itemrenderer of linkbuttons. How could I go by doing this? Here is what my code looks like so far, but I can't seem to get it working.

<mx:MenuBar id="menuBar" labelField="@label" dataProvider="{menus}" itemRenderer="mx.controls.LinkButton">
</mx:MenuBar>

View 1 Replies

Flex :: Use An Fxg File As A MenuBar Icon Attribute?

May 3, 2011

I have a little concern. I started trying to make a MenuBar control with custom icons already made in FXG format. I have 3 FXG files in "assets.graphics.icons" inside my project folder:

src/assets/graphics/icons/MenuIcon.fxg
src/assets/graphics/icons/ItemAIcon.fxg
src/assets/graphics/icons/ItemBIcon.fxg

After reading the following two links and a bunch of web pages.

[Code]...

View 1 Replies

Flex :: Force MenuBar To Always Open Downward?

May 23, 2011

I have a MenuBar which opens downwards except when there isn't enough room to open it. For example, it may have 10 items but there's only enough room to display 4-5. Flex then tries to display the menu above the bar, which is completely off the screen. Is there some property or style I'm overlooking to always force it to open downward?

EDIT: Thought I'd give some clarification as to how I plan to circumvent the issue. If I can always force the menubar to be orientated downwards, I can make it into a scrollable menubar displaying only a few items at worst.

View 1 Replies

Flex :: Skin MenuBar, And Change It's ItemSkin To Something Else

Jun 26, 2011

I wish to skin MenuBar, and change it's itemSkin to something else, like different background color for each menu item.

View 1 Replies

Flex :: Layout - Stretched Menubar Items?

Jul 28, 2011

I am using a MenuBar in Flex:

<mx:MenuBar labelField="@label"
width="100%"
cornerRadius="0">

[code].....

View 2 Replies

Android :: Flex Mobile Project: Numeric Keyboard - Not A Full Keyboard

Jul 26, 2011

How do? Edit the field with numeric keypad, not a full keyboard my code: <s:TextInput text="{TransactionObject.cartao}" id="item" restrict="0123456789" /> app for Android and playbook

View 2 Replies

Flex :: Disable Shadow On Submenu In Mx:menuBar Component?

Sep 8, 2010

How to disable the shadow on submenu in mx:menuBar component?

View 1 Replies

Flash :: Flex 4.5 MenuBar Vertical Separator (using UpdateDisplayList)

Jan 5, 2012

I've created a custom MenuBar to make this happen. But it just doesn't seem to happen. It never renders any of the changes I made to the Graphics.What am I doing wrong?[code]

View 1 Replies

Make Menu Items With Children In A Menubar Selectable In Flex 3?

Feb 7, 2011

If I have a menubar that has an XML datasource like:

<mx:XMLList id="menuList">
<menuitem label="Parent1">
<menuitem label="Child1">
<menuitem label="SubChild1" />

[Code]...

How can I make it so that clicking on Child1 will cause a click event despite it having children?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved