Professional :: KeyLocation Bug In KeyboardEvent.KEY_UP For Shift Keys

Jun 17, 2011

I have discovered a bug with KeyboardEvent.KEY_UP keyLocation values for the shift keys. how to reproduce this:

1.when no other keys are down the value for left shift is 1 and for right shift is 2 for KeyboardEvent.KEY_DOWN and KeyboardEvent.KEY_UP

2. when you have pressed shift and then press another key - when releasing shift the value for left and right become 0.

There is absolutely no reason why these values should report anything other then what they initially reported on key down as each key fires its own event with details for each , regardless of any key combinations. Im using cs5.5 windows 7 basic.

View 6 Replies


Similar Posts:


ActionScript 3.0 :: KeyboardEvent.KEY_UP Sometimes Not Registering?

May 18, 2011

I'm using very basic code to move an object around the stage using keys on the keyboard (W,A,S,D). However, I have noticed at times when the CPU hiccups, flash does not register that a key was released and in turn my object keeps moving in a direction without any keys pressed. The only way to stop the object from moving is to press the key corresponding to the direction the object is moving.

View 9 Replies

AS3 :: KeyboardEvent.keyCode Only Detects Arrow Keys

Jan 10, 2011

Here's my code:

[Code]...

Everything worked perfectly fine in CS5, then I converted it to CS4 and it won't move my guy around, or even trace anything, when I press the WASD keys. The arrow keys still work fine.

View 2 Replies

ActionScript 3.0 :: KeyboardEvent Only Recognizing Arrow Keys?

Jun 15, 2011

I have this class:

ActionScript Code:
package
{
import flash.events.*;

[code]....

so all it does is trace the keyCode of whatever button is pressed. For some reason only arrow keys are being recognize though.

View 2 Replies

Flash :: KEY_UP Event Of Ctrl Key Blocks KEY_UP Event Of 'c' Key?

Aug 25, 2010

I am trying to capture Ctrl+C. I have noticed that many times, there is no KEY_UP event for C key. I believe it happens in cases KEY_UP event for C key should be thrown just before or after KEY_UP event for Ctrlkey.

Why does this happen? How can I catch the KEY_UP for C key?

View 1 Replies

ActionScript 3.0 :: KeyLocation.LEFT / .RIGHT Won't Work On A Mac Keyboard

Apr 29, 2009

I want to differentiate the LEFT SHIFT key on the keyboard from the RIGHT SHIFT key. The code below will do that on my PC Laptop but not on my Macbook Pro. Someone knows a workaround or the reason why?

Marek PS: the sample code below is not from me. PPS: when I trace event.keyLocation I always get 0 no matter which SHIFT key I press.

[Code]...

View 5 Replies

Professional :: Enable Flash CS4 To Accept SHIFT INSERT Instead Of CTRL V?

Mar 24, 2010

just can't understand why Adobe has not corrected this very basic bug since ages. So, the thing is Windows users tend to love, GOT USED TO using CTRL+INSERT and SHIFT+INSERT for copy and paste operations.Yyyeeas I know, that under Keyboard shortcuts I can define my own shortcuts, but the real problem is, that even after the Shortcut manager eats shift insert as a paste hotkey, it just fails to function.CTRL INSERT works like a charm, but SHIFT INSERT as Paste DOES NOT.AAARRRGGHHH. ADOBE PLEASE CORRECT THIS ERROR TO ALLEVIATE THE PAIN!

View 6 Replies

ActionScript 3.0 :: KEY_UP Not Recognizing ?

Mar 7, 2011

I have a typing game and I want to be able to detect period and commas, however unless you are holding down another key (any other key), the period and comma keys do not trigger KeyboardEvent.KEY_UP.  I found that sometimes they would work when focus was set to the document class.  After hours of debugging my game trying to figure it out, I decided to create a new project to JUST test this problem.  Here's the absolute barbones example:
 
package
{
import flash.display.MovieClip;[code]..............
 
If you run this, it should automatically set focus to the document class.  At this point, the period and the comma do not work.  Now click the stage and you will find that the comma and period do not work UNLESS you hold down another key (for example hold down the m key and then press the comma key).  Also at this time, focus is set to null.Now click the textfield, and the comma and the period work again.

View 1 Replies

ActionScript 3.0 :: KEY_UP Not Always Firing?

Sep 20, 2010

The problem is that I've done a lot of work in my game, and there's too much code bound to shift and control keys. For example you need to hold shift key to select multiple soldiers or control key to shoot or sometimes pause the game or even call a map, a lot of stuff in GUI depends on those keys as well. Both KEY_UP and KEY_DOWN are added to the stage object. But, time after time, there happens a very annoying thing, KEY_UP event just doesn't fire for shift or control (in most cases it does, but not always). That is, I press shift, start selecting soldiers, then release shift but Flash Player keeps thinking it's still pressed, so I can still select multiple soldiers, which is not good.

I found the exact same problem here: [URL]

View 6 Replies

Professional :: Using Keyboardevent -file To Immediately Go To And Play A Frame Labeled "waterdepth"?

Oct 8, 2010

In my file, I have an introduction playing over and over.  When someone hits the "K" button, I need the file to immediately go to and play a frame labeled "waterdepth".  What am I missing below?  I keep getting an error saying that "keyboard event cannot be loaded."
 
[code]...

View 3 Replies

ActionScript 3.0 :: Dictionary With String Keys: Slower Than Object Keys?

Apr 27, 2011

whether using a String as the key in a Dictionary results in slower lookups than using an Object, Class or Custom Object (an instance of developer defined Type)?

When using a String as a key, does the literal String have to be parsed, or does the Dictionary key point to the String Object?

View 2 Replies

ActionScript 2.0 :: Get The AWSD Keys To Work As Smoothly As The Arrow Keys?

May 16, 2003

How do I get the AWSD keys to work as smoothly as the arrow keys. I can put the arrow keys inside an enterFrame

[AS]onClipEvent (enterFrame) {
//move the tank
if (Key.isDown(Key.RIGHT)) {

[Code]....

If I put the AWD keys inside an enterFrame they run until I push another button

View 6 Replies

ActionScript 3.0 :: Moving Mouse Causes To Fire KEY_UP Event

Feb 28, 2009

I'm trying to make as3 application which uses custom mouse pointer while pressing spacebar on my keyboard. Everything works fine when I don't move my mouse but when I do the KEY_UP event is dispatched to my listener almost immediately (and this is while I'm still pressing my key down). Below is simple main class which used to test this behaviour:

[Code]...

View 14 Replies

ActionScript 3.0 :: KEY_UP Won't Work For Key ENTER Without Clicking On Stage

Mar 21, 2012

I´m trying to catch KEY_UP event if I press ENTER, without clicking on stage.
 
I´ve already disabled keyboard shorcuts for flash player, and added stage.focus = stage.
 
Not succeeding.
 
It only works if I click on stage.
 
It seems that for the other keys the KEY_UP works.

View 8 Replies

Flex :: Ctrl Button Sometimes Block KEY_UP Event For 'c' Key

Aug 26, 2010

Try the following code:

myListener = new Object();
myListener.onKeyUp = function() {
if (Key.isDown(Key.CONTROL) && Key.getCode() == 67) {

[Code]....

hold Ctrl key and start pressing C. From some point you will notice that there is no KEY_UP event for the C key (there will also be no event for A,X,R,V and maybe more). For most of the button the KEY_UP event will still be dispatched.

View 1 Replies

Professional :: Navigate Timeline With Arrow Keys?

Feb 24, 2010

I'm making a Flash presentation for a client which I will eventually publish as a Projector movie...All the animated slides are in individual scenes, but the individual scenes have several stop points.My client wants to be able to use the left and right arrow keys to skip backwards and forwards to these stop points. They also want to be able to press the spacebar at any point to stop and play the movie manually.

View 16 Replies

Professional :: Scaling Timelines Keys And Inbetweens?

Nov 4, 2010

Say you have a keyframe on 1 and a keyframe 25 and a keyframe on 50. Can I grab 50's key and scale down? So could I grab 50s key or all 50 frames and scale down to say 25, and then the key would be in the middle still (guessing 12 or 13 for the middle key). Until then I'll manually drag keyframes using Ctrl. It just would be nice to easily scale down keyframes/frames even if it's not 100% precise.

View 5 Replies

Professional :: Can't Move An Object With Arrow Keys - CS3?

Oct 18, 2011

In Fash CS3, suddenly, in certain files, I can't move an object left using arrow keys - but I can move the same object right, or if I hold down Shift + left arrow, it works correctly Also - I can move the object down with arrow keys, but not up Workaround - move an object on a different layer, then return to the problem object and it moves correctly. But this doesn't last long, the problem resurfaces.(I've tried rebooting; tried copying all the layers into a new file.

View 1 Replies

Professional :: Screen Scrolls In Games With Arrow Keys?

Mar 13, 2010

I can't lock the screen or whatever you want to call it.  If the game requires the arrow keys to move the character, it scrolls the screen until they can't see the game.  I have tried to click on the flash player game window but it still scrolls to the bottom of the page when you pich the arrow keys.

View 1 Replies

Professional :: Control Speed Of Simple Movie Using Arrow Keys?

Mar 19, 2010

I have a simple animation that I would like to control the speed of the movie using the right an left arrow buttons. Keep pressing right arrow to speed up, and keep pressing left button to slow down.

View 4 Replies

Professional :: Trigger Function When Certain Keys Inputted In Text Field?

May 31, 2010

I have a stage listener for keyboard events, that triggers one of two error checking functions for text field inputs depending on which movieclip the fields are in.  Text fields in certain movieclips trigger a function that checks if the entry is between a certain numerical range, whereas the textfields in the other movieclips test to make sure the text fields aren't left empty.
 
It works fine apart from me not accounting for keyboard events other than letters, numbers and punctuation, or, among others, the Shift key.
 
So what's happening now is that keyboard events outside of numbers, letters and punctuation are triggering an output error.
 
The listener I'm using is:
 
stage.addEventListener(KeyboardEvent.KEY_UP, KeyPressed);
 
KeyPressed is a function that determines which error checking function to run depending on which movieclip window is open.

View 5 Replies

ActionScript 2.0 :: Colour Shift In Swf?

Jun 21, 2010

I have a psd that is to be the background of a flash site that i'm working on. I've tried every combination of exporting from photoshop and flash but the end result (in the browser) is always significantly brighter.Does anyone know what the best prossess for keeping the colour of imported raster content accurate in swf while keeping the size moderate?

View 1 Replies

Grouping Causes Motions To Shift?

May 7, 2009

I have a simple movie of a person - torso, arms, legs, each on a separate layer.  I'm adding a walk cycle and use tweens to move the arms and legs.  This works fine when I export to an swf.  But when I group and try to export to a movieclip, the arms jump way up.  This seems like a simple problem of adjusting coordinates, origins, etc.  But I'm kind of a newbie, so does someone have a suggestion for me?  How do I export to a movieclip and have it playback the same as when exporting to a swf?

View 5 Replies

ActionScript 2.0 :: Colour Shift In Swf

Jun 21, 2010

I have a psd that is to be the background of a flash site that i'm working on. I've tried every combination of exporting from photoshop and flash but the end result (in the browser) is always significantly brighter. Does anyone know what the best prossess for keeping the colour of imported raster content accurate in swf while keeping the size moderate

View 1 Replies

ActionScript 3.0 :: XML Imported Links Shift?

Jan 14, 2009

I have an issue with links in a text box which are pulled in from a xml file.The problem is that when I have the antialias setting set to Advanced the links will shift their position to the left when you hover over them. If i turn the antialias setting off or to Normal the problem is fixed, but the text doesn't look as nice.

Here are the settings for my textbox.

Code:
bodyText.defaultTextFormat = txtFmt;
bodyText.styleSheet = cssStyle;
bodyText.embedFonts = true;
bodyText.antiAliasType = AntiAliasType.ADVANCED;

[code].....

View 0 Replies

ActionScript 3.0 :: Distinguishing Between Left And Right Shift On Mac?

Jun 17, 2009

As mentioned in this post KeyLocation.LEFT and KeyLocation.RIGHT only work a Windows PC, not on a Mac. I found that out the hard way during a presentation today :X

Is there any fix to determine which shift key is pressed on a Mac?

View 5 Replies

ActionScript 2.0 :: Way To Say Like If BOTH Shift And Space Are Down GotoAndStop?

Jan 12, 2010

I was just wondering is there a way to say like if BOTH shift and space are down gotoAndStop(3);?

View 1 Replies

ActionScript 2.0 :: Resize The Clip If The Shift Key Is Down

Apr 19, 2010

when a moive clip is clicked in my program it's instance is saved in a var _root.dis_one. My code makes the movie clip move when the shift key isn't down according to the arrow keys, and it is supposed to resize the clip if the shift key is down _root.dis_one is storing the proper var, but i am having a trouble with the resizing part. It will rezise a pre-maid movie clip, but it won't resize my dynamic movie clips. is there a certain way to rezise a dynamic MC?

[Code]....

View 3 Replies

ActionScript 2.0 :: Shift The Co-ords Of The Mouse?

Jul 30, 2006

Am having a poke around with an area when pressed, it will reloated the mouse position.I dont think it is this simple.

_root.nozone.onPress = function(){
_root._ymouse = 10;
_root._xmouse = 10;
}

View 1 Replies

ActionScript 2.0 :: CPU Heavy Alpha Shift?

Sep 22, 2006

So i am building a site for a client, and in it i have incorporated an automatically cross-fading background made of large photos.Wheneve they cross fade programatically my CPU gets WORKED!

I am using

Code:
if (this.photo1.imageholder1._alpha<100-this.fadeSpeed) {
this.photo1.imageholder1._alpha += this.fadeSpeed;
}

as the fading command. Is it just a characteristic of flash that it HATES to do ALPHA changes?

View 6 Replies







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