Actionscript 3 :: Add Keyboard Shortcut To Flex-project To Focus Container Browser?
Nov 9, 2011
What would be the appropriate way to add some AS in a flex-project, giving giving focus back to the parent browser.
ctrl-q: i'm blurring flash
ctrl-t: ah, a new browser tab.
View 1 Replies
Similar Posts:
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
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
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
Dec 18, 2009
I have a custom TitleWindow component that is registered to listen for keyboard events from the user (so that esc closes the window, enter saves, etc.). However, in my testing I've found a couple cases where my keyboard event handlers don't fire. My best guess as to why this is happening is that there is some child component somewhere that has stolen focus and is stopping the keyboard events from propagating.
Unfortunately, due to the large number of components in my TitleWindow, I have no good way of knowing who has stolen the focus. My question then is, are there any good tips / techniques / tools for debugging focus issues and event propagation in Flex? Basically, I need something that will tell me who has the focus at any given time and who's handling an event at any given time... is that possible?
View 1 Replies
Apr 23, 2010
Is there a keyboard shortcut to duplicate items in the Library. I'm having to right-click and select Duplicate right now.
View 3 Replies
Jun 8, 2010
In Flash CS5 (Mac OS). Window menu... right at the bottom it lists the windows you've got open with a number in front ie:
1 project.fla
2 class.as
3 interface.as
Now... if I click (with the mouse) to focus (activate) the window menu and press a number key corresponding to a window in the list, Flash kindly takes me to that window. Q: What is the 100% keyboard shortcut way to do this? I've had a go at wading in and just pressing keys... as my last-but-one strategy for finding this out. My last strategy being "ask".
View 2 Replies
Jun 27, 2010
I noticed that in the new version of flash (CS5) that if I accidently send my program into a infinite loop spewing out the same error over and over again just clicking the 'x' on the flash file doesn't end it any more. Is there a keyboard short-cut that kills the flash file so I don't have to restart flash every time it happens?
View 1 Replies
Jul 7, 2011
What is the keyboard shortcut to open a context menu in Flash? Shift+F10 doesn't work.. Now I am trying to implement a key-down event handler like below:
public function customKeyHandler(e:KeyboardEvent):void { if (e.keyCode == flash.ui.Keyboard.F10 && e.shiftKey)
But this is not working as the F10 key in flash is reserved by the system and cannot be used in action script according to this [URL]
how to go about enabling context menu in Flash to be opened using keyboard (not mouse right click) ??
View 3 Replies
Jul 7, 2011
What is the keyboard shortcut to open a context menu in Flash? Shift+F10 doesn't work.. Now I am trying to implement a key-down event handler like below:
public function customKeyHandler(e:KeyboardEvent):void { if (e.keyCode == flash.ui.Keyboard.F10 && e.shiftKey)
But this is not working as the F10 key in flash is reserved by the system and cannot be used in action script according to this [URL]
how to go about enabling context menu in Flash to be opened using keyboard (not mouse right click) ??
View 1 Replies
Jun 17, 2010
I am facing a issue in Flash container. I am having a project which has main container which call different SWFs into it. Now I call this main container file into another container, and their problem starts. Many option doesn't work properly which generally have _root, _parent etc...
If I want to run project (main container SWF and child SWFs) into another container file which place on a website. I want to show whole project from this container file so what I need to do?
View 1 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
Dec 21, 2011
From what Ive seen, most of the examples of using Javascript in Flex are designed for for the full desktop version (or for the browser) and not Flex mobile. For example using ExternalInterface in a Flex mobile project gives the error: Error: Error #2067: The ExternalInterface is not available in this container. ExternalInterface requires Internet Explorer ActiveX, Firefox, Mozilla 1.7.5 and greater, or other browsers that support NPRuntime. Is it possible to call Javascript (such as the Google Maps Javascript API) in a Flex mobile project?
View 1 Replies
May 7, 2011
I have a Pure AS3 mobile project that I'm developing in Flex 4.5, and deploying on both Android and iOS.I have a TLF textfield that is set to editable, and when I touch on it on Android the soft keyboard shows up as expected, without me having to explicitly tell it to show up.
BUT on iOS, when I touch on it, I get the text field's focus event firing, but the soft keyboard doesn't show up. Anyone know how to make this appear, so the user can enter in text? it is possible to enter text in a pure AS3 mobile app on iOS.
View 3 Replies
Jan 1, 2010
I've written a little video game in Flex that runs in a browser. The player moves by pushing the arrow buttons on the keyboard, so I need to capture those keystrokes. In fact, the game action starts when the player presses one of those keys.In order to capture the keystrokes, the Flash/Flex application, not just the browser, needs to have the focus.How can I ensure that the application has the focus? I've implemented a bit of a hack: A "Begin" button you must click to start the game. The only point of this button is to ensure that the app has the focus.
View 2 Replies
May 20, 2009
How do I change which browser Flex uses when I run my project?
View 3 Replies
Jun 8, 2010
Is there is keyboard shortcut for "swap symbol"? or a way that I can set the shortcut for it, I couldn't find it in the shortcuts list.
View 1 Replies
Aug 4, 2010
Is there any way to create a keyboard shortcut for the "show in library" command that only shows in the context-menu when I right-click on a symbol? would be very handy, because I could need it quite very often... I didn't finde the equivalent of "show in library" among any of the commands available. I already thought of recording an action that does exactly that (selecting the current symbol in library) and then call it via the "commands" section, but I don't want to do it that indirectly, would be very nice to have a "clean" way to do this.
View 1 Replies
Dec 28, 2005
Is there any way to create a keyboard shortcut using a the control button plus a key button. For example, if I want to print the screen, I would press control + p.
View 5 Replies
Jun 18, 2009
difference between key code and character code. For example, the number 1 (one) and the character ! (bang) both have the same key code but different character codes. Likewise, the number 7 from the row of numbers and the number 7 from the numpad have different key codes but the same character codes.
I'm programming a music rhythm game in Adobe Flex and would like to bind keyboard keys. This isn't a problem, but I certainly would have a problem, say, setting the default keys to A, S, D, and F and telling the user that this is the case.If you take a look at the documentation for flash.ui.Keyboard, you'll see that there are constants for keyboard keys to key codes. However, these are only available in Adobe AIR and not the browser. This makes sense since not all operating systems and keyboards are alike (or present!), so key codes can vary.
So, how can I assign default keys that have meaning instead of picking key codes and praying?My only sane thought is to store the character codes for the key bindings and then provide an character code to String mapping so I can tell the user what to press. However, my gut tells me that this will break in subtle or not-so-subtle ways. Like CAPSLOCK.
View 2 Replies
Mar 29, 2010
I am trying to increase the height of container with increase in the number of contents inside the container. Like in my case i m using tileList inside tabNavigator , when I put contents inside the tileList, the height of tileList does not increase beyond vertical height of the viewport. It puts scrollbar on the container. I want to increase the height of an flex container with increase in the contents and introduce scrollbar on the browser with increase in contents in the flex container.
View 3 Replies
Jan 12, 2012
I get Strings from a server that look something like this:
This is normal text followed by a link: [URL]
Links might also look like this: [URL]
This Strings are set as the text value in a spark TextArea. What I'd like to achieve is that
A. the text gets highlighted and
B. the user can click it and it opens in the systems browser.
Using the StyleableTextField throws a typerror on Flex 4.6. I tried the simplest HTML text like this:
StyleableTextField(newsStoryArea.textDisplay).htmlText = "TextArea <b>bold</b><i>italic</i>."
Which throws;
TypeError: Error #1034: Type Coercion failed: cannot convert
spark.components.supportClasses::StyleableStageText@fc3d0a1 to
spark.components.supportClasses.StyleableTextField.
View 2 Replies
Mar 18, 2010
I'm writing an application using a DataGrid DG1 in a MovieClip MC1. The User can click on DG1 and edit it, ok, no problem. But when the User begins to edit the content of a specific cell of DG1, I want to open a dedicated wizard in front of it. In the first step of that wizard popup (MovieClip MC2, child of MC1), there is another DataGrid (DG2) and I would like the User to be able to directly use the up and down keyboard arrows to browse the DG2 content without having to click it first.
But the keyboard events are then captured by DG1. I tried to use a stage.focus, setFocus, I triggered MouseEvents on DG2 but nothing to do, I have to physically click on it before the keyboard events are sent to it. So, my question is: how to, within MC1, tell Flash the keyboard events will be triggered on DG2 ? Can we ask DG1 to loose the (keyboard) focus ?
View 1 Replies
Sep 22, 2009
found only one thing that seemed to be on the lines of what I am having issues with:
stage.focus = this;
My problem: The the flash app I am working on, some of the controls are done with the keyboard. At certain points, you need to click on an on screen button to continue. When I do this, it seems the focus is lost from where it was, and I can no long use keyboard actions (such as the spacebar KeyboardEvent that works prior to clicking the mouse)
I will admit that I am a newcomer to Flash (only played with it for about a month now), and I don't know much about the focus stuff. Basically, I want to know how to set the focus back to where it was after the buttons are clicked.
View 1 Replies
Oct 28, 2009
There are 5 movieclips on the stage (btn0 to btn4). I wanted to change focus pressing Keyboard.UP and Keyboard.DOWN. But the focus changes not in correct order. It jumps in mysterious way from 0 to 2 and so on.[code]
View 6 Replies
Oct 27, 2010
I cannot find Pan anywhere in the shortcut key explorer thing. I want to add the middle mouse button click to the Pan behavior.
View 7 Replies
May 25, 2007
So i have a combo box that a user can go a select different UI's with. In another pane i have a map that the user can press the arrow keys the move up, down, left right etc.
Only problem is that once i have selected a map from the combo box, the combo box stays in focus so that when i press an arrow key, the map moves but it also scrolls through my combo box.
Any way i can disable keyboard input to the combo box or remove the focus on the combo box?
I've tried creating a dummy button on the stage called "dummy" and when the change event happens on the combo box i switch the focus using
Selection.setFocus("dummy");
but then i get a recursion error and it stops my scripts.
View 4 Replies
Dec 1, 2010
i click on the play button and go to my playscreen. Then I have to click on the playscreen for it to accept keyboard input!
View 11 Replies
Sep 21, 2009
Anyway, I have a game with keyboard input and mouse input, and after certain mouse inputs I want to set the focus back to the stage in order to continue listening for keyboard events. I have a simple method in the document class:
Code:
private function setCommandLineFocus( e:MouseEvent=null ):void
{
if( theCommandLine )[code]....
Where "theCommandLine" is a movieclip which gets attached, and is where I send the keyboard events to.
The problem I'm having is this: When the method gets called in internet explorer, it sets the keyboard focus to the URL bar, so you type stuff in, and then hit enter and it reloads the damn page.
View 1 Replies
Aug 8, 2010
I have a game where you can move a character around on a screen, very simple. My problem is, I have to click on the swf object in my browser before it starts to recognize my input keys. If there a way to set set to my swf object either in html or the swf itself /w as3?
This is the browser code I keep finding on googing:
Actionscript Code:
<body onLoad="window.document.mymovie.focus();"> <object width="760" height="820"> <param name="mymovie" value="test.swf"> <embed src="test.swf" width="760" height="820"> </embed> </object> </body>
View 1 Replies