Artifacts when moving object with arrow keys.
Hi all
hope this is the right place to post this question.
I want to to write simple arkanoid game in Flash (AC3). I've managed to write code that moves my paddle with arrow keys. The code looks like this:
function OnNewFrame(event:Event):void
if (input.IsLeftHeld)
if (paddle.x > 0)
paddle.x -= 10;
else
if (input.IsRightHeld)
if (paddle.x < stage.stageWidth - paddle.width)
paddle.x += 10;
It works but the result is ugly. The animation is not fluent, there are times when paddle stops for a moment . Also when speed of translation is high (here it is 10) you can see that paddle is flickering at the ends, it looks like single buffering problem. You can see both of those effects here: http://www.flash-game-design.com/flash-tutorials/movOb.html , hovewer flickering is less visible due to small translation amount.
How to fix this? How can i enable double buffering (or maybe it is enabled by default)? Any help will be appreciated.
P.S. sorry for bad english
Thanks for samples, this is very kind ; p
Hovewer you are doing everything almost exactly as I'am doing. Tou are using mySymbol.x++ which means your translation speed is 1. Also I'am aware that rising frame rate will result in smoother animations, but this is not the point. So once again, my flash applications suffer from two problems:
1) Animations are not smooth. You can see this crealrly in here: http://www.kirupa.com/developer/actionscript/hittest.htm , go back to the very bottom of the page, there is an animation window, look at the smallest circle. It looks like its blinking.
2) Moving symbols with arrow keys with the method i've presnted in the first post (the same method that infeter uses ). Moved symbol is randomly stopping for the very (very very) short amount of time. You can easily spot this in infeter sample.
Many sample applications i've seen suffer from those issues. and nobody seems to see the problem, so maybe I am delusional? ; p
cheers and thank for help
Similar Messages
-
Can't move an object with arrow keys - CS3
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.
Does anyone have a solution for this? (I've tried rebooting; tried copying all the layers into a new file - no help.)Now, working in the same file, I just clicked on a stroke and it changed the stroke from a smooth curve to angular lines.
I suspect this file is corrupt. Any thoughts on how to salvage the weeks of work that have gone into it? Every version of this file has the same issues.
Thanks for any help. -
Hello,
How would I click on one of the circles I've created and move them using the arrow keys. The circles move just fine with the drag of the mouse but now I want to use the arrow keys. Can somebody help me please? I would really appreciate the assistance.
Michael
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class DragBallPanel extends JPanel implements MouseListener, MouseMotionListener, KeyListener
private static final int BALL_DIAMETER = 50; // Diameter of ball
private static final int BALL_DIAMETER2 = 50;
//--- instance variables
/** Ball coords. Changed by mouse listeners. Used by paintComponent. */
private int _ballX = 50; // x coord - set from drag
private int _ballY = 50; // y coord - set from drag
private int x2 = 200; // starting x coord for 2nd ball
private int y2 = 200; //starting y coord for 2nd ball
private int x3 = 75;
private int y3 = 150;
/** Position in ball of mouse press to make dragging look better. */
private int _dragFromX = 0; // pressed this far inside ball's
private int _dragFromY = 0; // bounding box.
private int xInsideBall = 0; //coordinates of where the mouse is pressed inside second ball
private int yInsideBall = 0; //is pressed inside second ball
private int x3InsideBall = 0; //coordinates of where the mouse is pressed inside second ball
private int y3InsideBall = 0; //is pressed inside second ball
/** true means mouse was pressed in ball and still in panel.*/
private boolean _canDrag = false;
private boolean _canDrag2 = false;
private boolean _canDrag3 = false;
/** Constructor sets size, colors, and adds mouse listeners.*/
public DragBallPanel()
setPreferredSize(new Dimension(400, 400));
setBackground(Color.ORANGE);
setForeground(Color.BLUE);
//--- Add the mouse listeners.
this.addMouseListener(this);
this.addMouseMotionListener(this);
}//endconstructor
/** Ball is drawn at the last recorded mouse listener coordinates. */
public void paintComponent(Graphics g)
super.paintComponent(g); // Required for background.
g.fillOval(_ballX, ballY, BALLDIAMETER, BALL_DIAMETER);
g.setColor(Color.RED);
g.fillOval(x2, y2, BALL_DIAMETER2, BALL_DIAMETER2);
g.setColor(Color.BLACK);
g.fillOval(x3, y3, BALL_DIAMETER2, BALL_DIAMETER2);
}//end paintComponent
public void mousePressed(MouseEvent e)
int x = e.getX(); // Save the x coord of the click
int y = e.getY(); // Save the y coord of the click
if (x >= ballX && x <= (ballX + BALL_DIAMETER)
&& y >= ballY && y <= (ballY + BALL_DIAMETER))
_canDrag = true;
dragFromX = x - ballX; // how far from left
dragFromY = y - ballY; // how far from top
else
_canDrag = false;
//clicked on 2nd ball
if(x >= x2 && x <= (x2 + BALL_DIAMETER2)
&& y >= y2 && y <= (y2 + BALL_DIAMETER2) )
_canDrag2 = true;
xInsideBall = x - x2;
yInsideBall = y - y2;
else
_canDrag2 = false;
if(x >= x3 && x <= (x3 + BALL_DIAMETER2)
&& y >= y3 && y <= (y3 + BALL_DIAMETER2) )
_canDrag3 = true;
x3InsideBall = x - x3;
y3InsideBall = y - y3;
else
_canDrag3 = false;
}//end mousePressed
public void mouseDragged(MouseEvent e)
// True only if button was pressed inside ball.
//--- Ball pos from mouse and original click displacement
if (_canDrag)
ballX = e.getX() - dragFromX;
ballY = e.getY() - dragFromY;
//--- Don't move the ball off the screen sides
ballX = Math.max(ballX, 0);
ballX = Math.min(ballX, getWidth() - BALL_DIAMETER);
//--- Don't move the ball off top or bottom
ballY = Math.max(ballY, 0);
ballY = Math.min(ballY, getHeight() - BALL_DIAMETER);
this.repaint(); // Repaint because position changed.
if (_canDrag2)
x2 = e.getX() - xInsideBall;
y2 = e.getY() - yInsideBall;
x2 = Math.max(x2, 0);
x2 = Math.min(x2, getWidth() - BALL_DIAMETER2);
y2 = Math.max(y2, 0);
y2 = Math.min(y2, getHeight() - BALL_DIAMETER2);
this.repaint(); // Repaint because position changed.
if (_canDrag3)
x3 = e.getX() - x3InsideBall;
y3 = e.getY() - y3InsideBall;
x3 = Math.max(x3, 0);
x3 = Math.min(x3, getWidth() - BALL_DIAMETER2);
y3 = Math.max(y3, 0);
y3 = Math.min(y3, getHeight() - BALL_DIAMETER2);
this.repaint(); // Repaint because position changed.
}//end mouseDragged
public void keyPressed(KeyEvent ke)
//int x = e.getX(); // Save the x coord of the click
//int y = e.getY(); // Save the y coord of the click
int dx = 10;
switch (ke.getKeyCode())
case KeyEvent.VK_LEFT: // move x coordinate left
_ballX -= dx;
ballX = Math.max(ballX, 0);
break;
case KeyEvent.VK_RIGHT: // move x coordinate right
_ballX += dx;
ballX = Math.min(ballX, getWidth() - BALL_DIAMETER);
this.repaint();
public void mouseMoved (MouseEvent e) {} // ignore these events
public void mouseEntered (MouseEvent e) {} // ignore these events
public void mouseClicked (MouseEvent e) {} // ignore these events
public void mouseReleased(MouseEvent e) {} // ignore these events
public void mouseExited (MouseEvent e) {} // ignore these events
public void keyReleased (KeyEvent ke) {} // ignore this junk
public void keyTyped (KeyEvent ke) {} // ignore this junk
}//endclass DragBallPanelA couple of notes:
- That code did not add the keyListener to anything.
- At the moment (in the altered code below), only the blue circle moves, and only left/right. It is left as an exercise to the OP to 'take it from there'.
- It only took four more lines of code to turn that code into an SSCCE*, which will generally get more help.
- Please use code indentation, and the code formatting delimiters, when posting code. It makes code a lot easier to read and understand.
* The SSCCE is described at..
<http://www.physci.org/codes/sscce.html>
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class DragBallPanel extends JPanel
implements MouseListener, MouseMotionListener, KeyListener
private static final int BALL_DIAMETER = 50; // Diameter of ball
private static final int BALL_DIAMETER2 = 50;
//--- instance variables
/** Ball coords. Changed by mouse listeners. Used by paintComponent. */
private int _ballX = 50; // x coord - set from drag
private int _ballY = 50; // y coord - set from drag
private int x2 = 200; // starting x coord for 2nd ball
private int y2 = 200; //starting y coord for 2nd ball
private int x3 = 75;
private int y3 = 150;
/** Position in ball of mouse press to make dragging look better. */
private int _dragFromX = 0; // pressed this far inside ball's
private int _dragFromY = 0; // bounding box.
private int xInsideBall = 0; //coordinates of where the mouse is pressed inside second ball
private int yInsideBall = 0; //is pressed inside second ball
private int x3InsideBall = 0; //coordinates of where the mouse is pressed inside second ball
private int y3InsideBall = 0; //is pressed inside second ball
/** true means mouse was pressed in ball and still in panel.*/
private boolean _canDrag = false;
private boolean _canDrag2 = false;
private boolean _canDrag3 = false;
/** Constructor sets size, colors, and adds mouse listeners.*/
public DragBallPanel()
setPreferredSize(new Dimension(400, 400));
setBackground(Color.ORANGE);
setForeground(Color.BLUE);
//--- Add the mouse listeners.
this.addMouseListener(this);
this.addMouseMotionListener(this);
// add the keylistener!
this.addKeyListener(this);
// make sure the panel is focusable
setFocusable(true);
}//endconstructor
/** Ball is drawn at the last recorded mouse listener coordinates. */
public void paintComponent(Graphics g)
super.paintComponent(g); // Required for background.
g.fillOval(_ballX, _ballY, BALL_DIAMETER, BALL_DIAMETER);
g.setColor(Color.RED);
g.fillOval(x2, y2, BALL_DIAMETER2, BALL_DIAMETER2);
g.setColor(Color.BLACK);
g.fillOval(x3, y3, BALL_DIAMETER2, BALL_DIAMETER2);
}//end paintComponent
public void mousePressed(MouseEvent e)
int x = e.getX(); // Save the x coord of the click
int y = e.getY(); // Save the y coord of the click
if (x >= _ballX && x <= (_ballX + BALL_DIAMETER)
&& y >= _ballY && y <= (_ballY + BALL_DIAMETER))
_canDrag = true;
_dragFromX = x - _ballX; // how far from left
_dragFromY = y - _ballY; // how far from top
else
_canDrag = false;
//clicked on 2nd ball
if(x >= x2 && x <= (x2 + BALL_DIAMETER2)
&& y >= y2 && y <= (y2 + BALL_DIAMETER2) )
_canDrag2 = true;
xInsideBall = x - x2;
yInsideBall = y - y2;
else
_canDrag2 = false;
if(x >= x3 && x <= (x3 + BALL_DIAMETER2)
&& y >= y3 && y <= (y3 + BALL_DIAMETER2) )
_canDrag3 = true;
x3InsideBall = x - x3;
y3InsideBall = y - y3;
else
_canDrag3 = false;
}//end mousePressed
public void mouseDragged(MouseEvent e)
// True only if button was pressed inside ball.
//--- Ball pos from mouse and original click displacement
if (_canDrag)
_ballX = e.getX() - _dragFromX;
_ballY = e.getY() - _dragFromY;
//--- Don't move the ball off the screen sides
_ballX = Math.max(_ballX, 0);
_ballX = Math.min(_ballX, getWidth() - BALL_DIAMETER);
//--- Don't move the ball off top or bottom
_ballY = Math.max(_ballY, 0);
_ballY = Math.min(_ballY, getHeight() - BALL_DIAMETER);
this.repaint(); // Repaint because position changed.
if (_canDrag2)
x2 = e.getX() - xInsideBall;
y2 = e.getY() - yInsideBall;
x2 = Math.max(x2, 0);
x2 = Math.min(x2, getWidth() - BALL_DIAMETER2);
y2 = Math.max(y2, 0);
y2 = Math.min(y2, getHeight() - BALL_DIAMETER2);
this.repaint(); // Repaint because position changed.
if (_canDrag3)
x3 = e.getX() - x3InsideBall;
y3 = e.getY() - y3InsideBall;
x3 = Math.max(x3, 0);
x3 = Math.min(x3, getWidth() - BALL_DIAMETER2);
y3 = Math.max(y3, 0);
y3 = Math.min(y3, getHeight() - BALL_DIAMETER2);
this.repaint(); // Repaint because position changed.
}//end mouseDragged
public void keyPressed(KeyEvent ke)
System.out.println("key PRESSED");
//int x = e.getX(); // Save the x coord of the click
//int y = e.getY(); // Save the y coord of the click
int dx = 10;
switch (ke.getKeyCode())
case KeyEvent.VK_LEFT: // move x coordinate left
_ballX -= dx;
_ballX = Math.max(_ballX, 0);
break;
case KeyEvent.VK_RIGHT: // move x coordinate right
_ballX += dx;
_ballX = Math.min(_ballX, getWidth() - BALL_DIAMETER);
this.repaint();
public void mouseMoved (MouseEvent e) {} // ignore these events
public void mouseEntered (MouseEvent e) {} // ignore these events
public void mouseClicked (MouseEvent e) {} // ignore these events
public void mouseReleased(MouseEvent e) {} // ignore these events
public void mouseExited (MouseEvent e) {} // ignore these events
public void keyReleased (KeyEvent ke) {} // ignore this junk
public void keyTyped (KeyEvent ke) {} // ignore this junk
/** Add a main(), to make this an SSCCE. */
public static void main(String[] args) {
DragBallPanel dbp = new DragBallPanel();
JOptionPane.showMessageDialog(null, dbp);
}//endclass DragBallPanel -
I can no longer move an object with arrow keys
Pretty sure I have inadvertently disabled the option to select an object and move it with the arrow keys on my keyboard, but cannot figure out what I did - or how to enable that option again.
Illustrator CC
27" iMAC late 2013
OS 10.9.5Found the answer in another thread. Somehow my keyboard increment was changed to a measurement so small (.00002") that I couldn't see the object move, nor did the X & Y coordinates change. I did not change this preference to .00002", but it is now fixed.
-
Moving Sprite with arrow keys, simultaneous directions
Hi everyone.
I'm trying to create a small arcade style game, you control a
small ship, shoot at incoming targets, try to dogde their shots,
etc. I'm working on the ship's movement right now, using the arrow
keys to control it. Getting it to move one direction at a time is
easy, but sometimes I need to move it diagonally, otherwise I think
gameplay will suffer considerably.
I have tried several things but I never seem to be able to
tell Flash that two keys are being pressed simultaneously. Can
anyone tell me how I might achieve this?
Thank you.This format should allow detection of multiple keys at once:
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed);
function keyPressed(ev:KeyboardEvent):void {
var pressedKey:uint = ev.keyCode;
if(pressedKey == Keyboard.LEFT) {
leftDown = true;
if(pressedKey == Keyboard.RIGHT) {
rightDown = true;
if(pressedKey == Keyboard.UP) {
upDown = true;
if(pressedKey == Keyboard.DOWN) {
downDown = true;
ship.addEventListener(Event.EnterFrame, moveShip);
} -
Keynote Crashes When I Move Objects With Arrow Keys
Subject explains it all.
This happens on both my 2.4GHZ Intel iMac and G4 powerbook.
Machines are running OS 10.5.2 and Keynote 2.0.2
I've bought both Leopard and Keynote and installed all the software from the CDs.
Message was edited by: linus.spindriftThe advice I would take from the last post would be used only to isolate the issue as it might relate to a system wide issue or a user specific issue. In other words, can we determine Keynote's behavior as being related to your home account and those files in your folder or the System (OS) level files? Read on please…
If, after creating a new user account and logging into and Keynote continues to behave the same way, then potentially there is file outside your homefolder responsible for this. The file in question would, I'm sure you would agree, be a file related to Keynote's functionality and is accessed while Keynote is in use.
When Keynote is attempting to follow your instructions it may be accessing a file that it relies on.
A program which you can download to troubleshoot the issue is called appzapper, you can visit the developer's site here: http://appzapper.com/
My suggestion would be to download this little app. Install it>drag and drop Keynote onto AppZapper. AppZapper will do its' best to find files relevant to the Keynote application and give you an opportunity to trash them.
If you are curious as to the files AppZapper associates with Keynote, copy the name of those files and do a Google search to find out more about those files.
In most cases the list of files, AppZapper associates are harmless if trashed, just make sure Keynote is not open while doing this or Keynote may sort of ask itself what is going on and behave oddly, a quit and relaunch should fix that if you forget to quit Keynote.
Good target files that AppZapper might find are what are known as .plist files, plist as in PropertyList. .plist files typically store application preferences. So if you have ever gone to the preferences for Keynote in this case and modified the settings that .plist file would have stored those changes you set. If you move the .plist files to the trash, Keynote, upon a relaunch will say to itself, oh look, my .plist files are missing and simply regenerate those .plist files.
The point here is if the .plist files were corrupt and Keynote was accessing those file(s) it would try to read the file and say to itself, hey I don't know how to read this and in this case, shut itself down.
AppZapper may find more than just .plist files, investigate any files you feel hesitant to trash using your our old friend Google to learn about what it is you are going to trash.
In most cases what AppZapper finds is safe enough to trash, just be sure to close Keynote before running this to keep Keynote from running into any unexpected surprises. It would be like yanking candy from a child's hand - that wouldn't be too nice.
Finally if the issue persists, using DVD1 that came bundled with your mac, you should be able to install the bundled software only.
Reinstalling Keynote or iLife should also be considered as a solution.
An entire OS purchase or OS re-installation is definitely overkill and not an elegant solution, not to mention the downtime.
The solution I am proposing hopefully makes common sense to you and gives you an overview in terms of understanding that there are files other than the application file related to any application's overall function.
AppZapper is a small download and may help you locate that stubborn file causing you grief.
That being said, creating a new user account on your mac and logging into it to isolate issues as being system wide or user specific is indeed the way to go to isolate issues in those terms.
Keep us posted.
Message was edited by: santoscork
Message was edited by: santoscork -
Moving anchor point with arrow keys crashes Photoshop CC
Hey guys,
I've recently run into this bug many times while working with shapes. Don't really know what initiates it but it's super annoying as it crashes the PS CC completely without possiblity of recovering the unsaved files.
The bug appears while working with shapes after file is saved and reopened. Because I use to design pixel-perfect UIs, I work with arrow keys a lot to be sure every pixel is in the right place. So after selecting one or more anchor points of shape and hitting any arrow key (to move it by pixel), photoshop immediately crashes with this super-long description of bug: http://justpaste.it/ccshapecrash
Dunno why but this occurs very often when handling 1px-thin rectangles.
Is it only me or has anybody else experienced this as well? Any idea what exactly is causing it or what might be wrong with my config?
Never seen that kind of error in Photoshop before. It completely destroys my everyday workflowI have exactly the same problem and I don't have any solution. I was tried to update the latest video drivers - nothing! Tried to update Photoshop which updates fixes bugs - nothing! The problem continues.
My OS is Windows 8 64bit, video card Nvidia GT 630. For the case, my Photoshop 32x works better (faster) than the 64x. Why is that ? I hope to have a solution. -
I am having a problem moving across cells in Microsoft Excel. When I use the arrow keys, the sheet moves, instead of moving to the next cell. Would anyone have any thoughts on this, please?
Hi,
Did you find a way to solve your problem ? We have exactly the same for one application and we are using the same version of HFM : 11.1.2.1.
This problem is only about webforms. We can correctly input data through Data Grids or Client 32.
Thank you in advance for your answer. -
How to change the presets in pop-up menus (CS6 or CR 7, example Photo Filter) with arrow keys an see at the same time the changes on the photo?
It worked under Windows, now I use OS 10.8 and have to apply a preset with a click or Return button but after that the pop-up menu close so I have to open it once again to change a preset. Please help. Thank you!The filter panel is a shortcut for the content panel and it only effects the content of that window. So if you have a folder it will only see this as a folder and not with its content. (a Stack behaves about the same, being different in only counting the first file in the filter panel criteria but not what is in the stack itself)
You have a view work arounds, first is use menu view / show items from subfolders (this can take some time especially if you have not used caching before on this content) and this builds visible thumbs for all content and that can be used for filtering.
Or use the find command (Edit / find) and inhere specify the source and fill in the criteria include subfolders and this will give you the correct result.
When you create a smart collection the find command also pops up given you the same opportunity to get the results in a collection, but since a collection is only a bunch of aliases referring to the originals you might be a bit careful with editing and deleting. -
After zooming in on an object using arrow keys to nudge, it crashes most of the time
After zooming in on an object, using arrow keys to nudge, it crashes most of the time.
Versions:
Illustrator CS6, latest update
Mac OS X 10.9.4
FontAgent Pro 6.2
Troubleshooting I've tried
-trashed all related Illus. preferences
-updated the only plug-in being used (FontAgent Pro), to the latest
-disabled all but absolutely necessary fonts
-repaired both system and user permissions
-quit all other apps, so that only Illus. running.
-fonts verified
Was never a problem until a couple weeks ago, so the obvious question is "what changed?". The two things we changed in the time period that the crashing started, is we replaced a balky external drive with a new one, and started our TimeMachine backups over again. And #2, we updated to the latest CS6 versions (due to other quirky issues).
One odd thing to point out...perhaps is "normal", but in the crash reports, it's reporting that Illustrator is 16.0.0, but "About Illustrator" shows that it's 16.2.2.
Everything else running fine on this iMac -- no reason to suspect it's the operating system.
Has anyone run into this bug? If so, what have you done to fix this?
I've not seen anything like this mentioned in Adobe's update change logs or their troubleshooting info.-> go to View Menu -> Toolbars -> select "Navigation Toolbar"
-> go to View Menu -> Zoom -> click "Reset"
-> go to View Menu -> Page Style -> select "Basic Page Style"
-> go Tools Menu -> Clear Recent History -> Time range to clear: select EVERYTHING -> click Details (small arrow) button -> place Checkmarks on ALL Options -> click "Clear Now"
-> go to Help Menu -> select "Restart with Add-ons Disabled"
Firefox will close then it will open up with just basic Firefox. Now
-> go to Tools Menu -> Add-ons -> Extensions section -> REMOVE any Unwanted/Suspicious Extension (add-ons) -> Restart Firefox
You can enable the Trustworthy Add-ons later. Check and tell if its working. -
Acrobat X Pro 10.1.12 Mac
Yosemite OS X 10.10.1
Acrobat now crashes when attempting to use arrow keys to navigate. This is true on both MacBook Pro 15 retina and Mac Pro.I ended up upgrading to Acrobat XI. This works, but Adobe is up to its old tricks changing the interface from what we're used to using. They now have decided to hide all the tools. You have to delve deep into the program to find the tools, then set up your own tool menus. Lord help you finding a tool that you use too occasionally to put on a custom menu.
Adobe has been doing this for years now. In Photoshop of olden days, it was simple to set up a brush, say, that you used frequently. Quite a few updates ago they made that vastly more difficult. And they've replaced words with happy little icons, that are not at all intuitive to use. I challenge you, too, to look at the icon for the airbrush and tell me whether it is on or off. (Sorry, this is mainly about Photoshop, but what they've done to the latest Acrobat is just as bad.)
Of course, their ultimate cuteness in making things difficult for the user is their essential abandonment of a Help system. You can't do a simple look-up of a function -- you have to go to an internet site and sort through a bunch of forums and user comments to get any information.
JEEZ Adobe! -
Move picture box with arrow keys
Hi,
I have already gotten my picturebox to move either up, down, right or left when I press my arrow keys.
My problem is that I cannot make it to move for example up and right at the same time (diagonal), can somebody help me to do that?
I also want it to move more smoothly, and I don't want to need to hold my arrow keys down for two seconds before they start to move rapidly like I have to do now.
Would appreciate any help! Thank you!
(Sorry for my bad English, I'm Norwegian)
Here is my code so far:
Private Sub Map_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
If e.KeyCode = Keys.Up Then
PictureBox1.Location = New Point(PictureBox1.Location.X, PictureBox1.Location.Y - 5)
ElseIf e.KeyCode = Keys.Down Then
PictureBox1.Location = New Point(PictureBox1.Location.X, PictureBox1.Location.Y + 5)
ElseIf e.KeyCode = Keys.Left Then
PictureBox1.Location = New Point(PictureBox1.Location.X - 5, PictureBox1.Location.Y)
ElseIf e.KeyCode = Keys.Right Then
PictureBox1.Location = New Point(PictureBox1.Location.X + 5, PictureBox1.Location.Y)
End if
And I have these:
Private Sub btnPlay_PreviewKeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.PreviewKeyDownEventArgs) Handles btnPlay.PreviewKeyDown
Select Case e.KeyCode
Case Keys.Left, Keys.Up, Keys.Right, Keys.Down
e.IsInputKey = True
End Select
End SubHere's some other code I normally use now for key events on a Form since it is global. So if any controls are on the form which can get focus this works anyhow.
Protected Overrides Function ProcessCmdKey(ByRef msg As Message, ByVal keyData As Keys) As Boolean
If keyData.ToString = "Left" Then
PictureBox1.Location = New Point(PictureBox1.Left - 5, PictureBox1.Top)
ElseIf keyData.ToString = "Left, Control" Then
PictureBox1.Location = New Point(PictureBox1.Left - 5, PictureBox1.Top - 5)
ElseIf keyData.ToString = "Left, Alt" Then
PictureBox1.Location = New Point(PictureBox1.Left - 5, PictureBox1.Top + 5)
ElseIf keyData.ToString = "Right" Then
PictureBox1.Location = New Point(PictureBox1.Left + 5, PictureBox1.Top)
ElseIf keyData.ToString = "Right, Control" Then
PictureBox1.Location = New Point(PictureBox1.Left + 5, PictureBox1.Top - 5)
ElseIf keyData.ToString = "Right, Alt" Then
PictureBox1.Location = New Point(PictureBox1.Left + 5, PictureBox1.Top + 5)
ElseIf keyData.ToString = "Up" Then
PictureBox1.Location = New Point(PictureBox1.Left, PictureBox1.Top - 5)
ElseIf keyData.ToString = "Down" Then
PictureBox1.Location = New Point(PictureBox1.Left, PictureBox1.Top + 5)
End If
Return Nothing
End Function
La vida loca -
Crash when moving objects...
I have a HUGE problem... in fact I have had lots of problems with Illustrator... but this is anoying.
At least 10 times a day the program just crashes when moving objects... some time text, some time pictures, sometime lines.
Every time i submit a CRASH report with the details... but really I think they are TRASH reports, I mean I have NEVER get an answer, update or ANYTHING from ADOBE.
Last week I almost lost my job because of the ineficiency of the program, the thing is that I used to work with Corel and I was the one who tooked the desicion to change to Illustrator, so I spend the money on an entire suite,GOD!!
My question is simple, it may sound bad, but honestly Can I get my money back? Does anyone have heard about someone getting just so frustrated with the suite like me?
I love PS, I work just fine with DW, but Illustrator and Adobe support is killing me and leaving me without job.
Daniel Vazquez my name...
619-671-0100 x 273 my phone, just in case that a miracle occurs and someone from Adobe can help me.!!!Ok, here I am after the crash number 8 of today, one more time moving objects in a document...
Answering your question about the system I have... here it is.
The system...
Intel(R) Core(TM) Dual Quad CPU
Q8300 @ 2.50 Ghz.
4 Gb RAM
Running on
Microsoft Windows XP
Professional x64 Edition
Version 2003
Service Pack 2
Video Card
NVIDIA GeForce 8400 GS
The program
Adobe Illustrator CS4 out of a box with Creative Web Suite.
And the info out of illustrator menu>System Info is as follows.
Thanks.
System info (from illustator Help)
Components:
ACE 2008/08/27-18:10:41 53.355610 53.355610
Adobe Linguisitc Library 4.0.0
AdobeLM 3.0.11.10077 (BuildVersion: 53.352460; BuildDate: Tue Jul 29 2008 16:47:08) 53.352460
FLEXnet Publisher (32 bit)
Adobe Owl 2008/08/12-18:12:12 2.0.69 53.353913
Adobe Owl Canvas 2.0.69 53.353913
PDFL 2008/07/29-20:24:25 53.199969 53.199969
Adobe Product Improvement Program 1.0.0.220
AdobePSL 53.497547_11.497538 53.497547_11.497538
Adobe Updater Library 6.0.0.1452 (BuildVersion: 52.338651; BuildDate: Wed Apr 16 2008 19:28:20) 52.338651
Adobe XMP Core 4.2.2 53.351735
Adobe XMP Files 4.2.2 53.351735
Adobe XMP Script 4.2.2 53.351735
Adobe CAPS 2,0,99,0 2.135373
Adobe EPIC 3.0.1.10077 (BuildVersion: 53.352460; BuildDate: Tue Jul 29 2008 16:47:08) 53.352460
Adobe EPIC EULA 3.0.1.10077 (BuildVersion: 53.352460; BuildDate: Tue Jul 29 2008 16:47:08) 53.352460
AFL 1.0
AFlamingo 2008/07/09-11:28:44 53.350580 53.350580
AGM 2008/08/27-18:10:41 53.355610 53.355610
AdobeHelp Dynamic Link Library 1, 3, 11, 0
AIPort 1.0 23.68434
AMTLib 2.0.1.10077 (BuildVersion: 53.352460; BuildDate: Tue Jul 29 2008 16:47:08) 53.352460
AMTServices 2.0.1.10077 (BuildVersion: 53.352460; BuildDate: Tue Jul 29 2008 16:47:08) 53.352460
ARE 2008/08/27-18:10:41 53.355610 53.355610
Adobe Illustrator 1.0
AsnEndUser Dynamic Link Library 1, 6, 0, 8
Unknown Name
AXE8SharedExpat 2008/06/11-20:19:53 NFR 53.348206 53.348206
AXEDOMCore 2008/06/11-20:19:53 53.348206 53.348206
AXSLE 3.3 1.242790
BIB 2008/08/27-18:10:41 53.355610 53.355610
BIBUtils 2008/08/27-18:10:41 53.355610 53.355610
CoolType 2008/08/27-18:10:41 53.355610 53.355610
AdobeCrashReporter 3.0.20080806
ExtendScript 2008/07/28-19:31:09 53.352300 53.352300
Adobe XMP FileInfo 4.2.2 53.351735
FilterPort 1.1 52.
FLEXnet Publisher (32 bit)
Microsoft® Windows® Operating System 5.2.6001.22319
International Components for Unicode 2008/03/20-16:33:10 Build gtlib_1.1 CL#7223
International Components for Unicode 3, 4, 0, 0
International Components for Unicode 2008/03/20-16:33:10 Build gtlib_1.1 CL#7223
International Components for Unicode 2008/03/20-16:33:10 Build gtlib_1.1 CL#7223
International Components for Unicode 3, 4, 0, 0
International Components for Unicode 2008/03/20-16:33:10 Build gtlib_1.1 CL#7223
JP2KLib 2008/06/11-20:19:53 53.100857 53.100857
Intel(r) C Compiler, Intel(r) C++ Compiler, Intel(r) Fortran Compiler 10.0
LogSession 2, 0, 0, 611
Transport Dynamic Link Library 2, 0, 0, 1211
Transport Dynamic Link Library 2, 0, 0, 716
LogUtils 1, 0, 0, 06052006
MPS 2008/07/07-10:33:04 53.350311 53.350311
Microsoft (R) Visual C++ 6.00.8168.0
Microsoft® Visual Studio .NET 7.10.3077.0
Microsoft® Visual Studio® 2005 8.00.50727.4053
Microsoft® Visual Studio .NET 7.10.3052.4
Microsoft® Visual Studio® 2005 8.00.50727.4053
Microsoft® Visual C++ 2.10.000
Microsoft® Visual C++ 4.00.5270
PDFPort 2008/08/20-20:15:08 53.354855 53.354855
Adobe PDFSettings 1.04
Adobe Photoshop CS4 CS4
Adobe(R) CSXS PlugPlug Standard Dll (32 bit) 1.0.0.71
Registration 2.0.1.10077 (BuildVersion: 53.352460; BuildDate: Tue Jul 29 2008 16:47:08) 53.352460
Adobe India Sangam Core Code 2008/07/17-10:11:31 53.102428 53.102428
Adobe India SangamML Import from Sangam 2008/07/17-10:11:31 53.102428 53.102428
ScCore 2008/07/28-19:31:09 53.352300 53.352300
Microsoft® Windows® Operating System 6.00.2600.0000
SVGExport 6, 0, 0, 305507 1.305507
SVGRE 6, 0, 0, 305507 1.305507
WRServices Friday May 30 2008 7:18:42 Build 0.7713 0.7713
ATE
OS: Windows
Version: 5.2
System Architecture: x86
Built-In Memory: 4084 MB
User Name: Daniel Vazquez
Serial Number: 9228870813575442
Application Folder:
C:\Program Files (x86)\Adobe\Adobe Illustrator CS4\Support Files\
Primary Scratch Folder:
C:\Documents and Settings\dvazquez\Local Settings\Temp\
Secondary Scratch Folder:
Plug-ins:
Live Menu Item
Adobe AI Application Plugin
Control Groups
Color Conversion
Composite Fonts
New Cache Plugin
AdobeLicenseManager
ZStringTable
Window Menu
Main Filters
Main File Formats
File Format Place EPS
AI File Format
Debug Menu
SLO Text Tool
Mesh Object
Document Window Plugin
Sweet Pea 2 Adapter Plugin
ADM Plugin
ASLib
AdobeActionManager
AILocalized Resources Plugin
FrameworkS
Art Converters v2
FlattenTransparency
FO Conversion Suite
Pathfinder Suite
PDF Suite
BRS Pencil Tool
Rasterize 8
AdobeSlicingPlugin
AdobeActionPalette
AdobeBrushMgr
Adobe Color Harmony Plugin
Control Palette Plugin
Adobe Deform Plugin
AdobeLayerPalette
Adobe Planar Edit Plugin
AdobePaintStyle
PathConstruction Suite
AdobeSwatch_
AdobeToolSelector
Adobe Tracing Object
Adobe Variables Palette
Adobe Custom Workspace
AdobeDiffusionRaster
SvgFileFormat
Snapomatic
Adobe Geometry Suite
Flatten Suite
ShapeConstruction Suite
ExpandS
AI Save For Web
SWFExport
Photoshop Plugin Adapter Targa
Photoshop Plugin Adapter PNG
Photoshop Plugin Adapter Pixar
Photoshop Plugin Adapter PCX
Photoshop Plugin Adapter BMP
Photoshop Plugin Adapter Unsharp Mask...
Photoshop Plugin Adapter Smart Blur...
Photoshop Plugin Adapter Radial Blur...
Photoshop Plugin Adapter Pointillize...
Photoshop Plugin Adapter NTSC Colors
Photoshop Plugin Adapter Mezzotint...
Photoshop Plugin Adapter Gaussian Blur...
Photoshop Plugin Adapter De-Interlace...
Photoshop Plugin Adapter Crystallize...
Photoshop Plugin Adapter Color Halftone...
Photoshop Plugin Adapter Filter Gallery...
Photoshop Plugin Adapter Colored Pencil...
Photoshop Plugin Adapter Cutout...
Photoshop Plugin Adapter Dry Brush...
Photoshop Plugin Adapter Film Grain...
Photoshop Plugin Adapter Fresco...
Photoshop Plugin Adapter Neon Glow...
Photoshop Plugin Adapter Paint Daubs...
Photoshop Plugin Adapter Palette Knife...
Photoshop Plugin Adapter Plastic Wrap...
Photoshop Plugin Adapter Poster Edges...
Photoshop Plugin Adapter Rough Pastels...
Photoshop Plugin Adapter Smudge Stick...
Photoshop Plugin Adapter Sponge...
Photoshop Plugin Adapter Underpainting...
Photoshop Plugin Adapter Watercolor...
Photoshop Plugin Adapter Accented Edges...
Photoshop Plugin Adapter Angled Strokes...
Photoshop Plugin Adapter Crosshatch...
Photoshop Plugin Adapter Dark Strokes...
Photoshop Plugin Adapter Ink Outlines...
Photoshop Plugin Adapter Spatter...
Photoshop Plugin Adapter Sprayed Strokes...
Photoshop Plugin Adapter Sumi-e...
Photoshop Plugin Adapter Diffuse Glow...
Photoshop Plugin Adapter Glass...
Photoshop Plugin Adapter Ocean Ripple...
Photoshop Plugin Adapter Bas Relief...
Photoshop Plugin Adapter Chalk && Charcoal...
Photoshop Plugin Adapter Charcoal...
Photoshop Plugin Adapter Chrome...
Photoshop Plugin Adapter Cont^e Crayon...
Photoshop Plugin Adapter Graphic Pen...
Photoshop Plugin Adapter Halftone Pattern...
Photoshop Plugin Adapter Note Paper...
Photoshop Plugin Adapter Photocopy...
Photoshop Plugin Adapter Plaster...
Photoshop Plugin Adapter Reticulation...
Photoshop Plugin Adapter Stamp...
Photoshop Plugin Adapter Torn Edges...
Photoshop Plugin Adapter Water Paper...
Photoshop Plugin Adapter Glowing Edges...
Photoshop Plugin Adapter Craquelure...
Photoshop Plugin Adapter Grain...
Photoshop Plugin Adapter Mosaic Tiles...
Photoshop Plugin Adapter Patchwork...
Photoshop Plugin Adapter Stained Glass...
Photoshop Plugin Adapter Texturizer...
Twirl v2
AdobeBuiltInToolbox
Adobe Symbolism
Simplify
ShapeTool
Segment Tools
Adobe Scatter Brush Tool
Reshape Tool
Magic Wand
Liquify
Lasso
Knife Tool
Adobe Flare Plugin
AdobeTextDropper
Adobe Eraser Tool
Adobe Crop Tool
Adobe Calligraphic Brush Tool
BoundingBox
AdobeArtBrushTool
Advanced Select
Smart Punctuation
TxtColumns
Spell Check Dictionary
Spell Check UI
Find Replace UI
TextFindFont
TypeCase
Adobe PSD File Import
Adobe PSD File Export
Photoshop Adapter
TIFF File Format
TextExport
AISangamMapper
PNG File Format
MPSParser
MPSExport
MPSCommon
Mojikumi UI
JPEG2K Plugin
JPEG Plugin
GIF89a Plugin
FXG UI
FXG
FreeHand Import Plugin
Adobe DXFDWG Format
ZigZag v2
Scribble v2
TextWrap Dlg
ShapeEffects v2
Adobe Scribble Fill
Saturate
Round v2
Roughen v2
Punk v2
AdobePathfinderPalette
Overprint
OffsetPath v2
AI Object Mosaic Plug-in
MaskHelper v2
Inverse
FuzzyEffect v2
Distort v2
Find
Expand
DropShadow
TrimMark v2
Colors
Cleanup
Adjust
AddArrowHeads v2
Add Anchor Points
Adobe Welcome Screen
AdobeTransparencyEditor
AdobeTransformObjects
Transform v2
Adobe Tracing UI
Adobe Symbol Palette Plugin
SVG Filter Effect v2
Stroke Offset v2
Services
SeparationPreviewPlugin
Scripts Menu
ScriptingSupport
Print Plugin
AdobeNavigator
Adobe Path Blends
AdobeLinkPalette
Kinsoku Dlg
KBSC Plugin
GradientMeshPlugin
Flattening Preview
FileClipboardPreference
DocInfo
Character and Paragraph Styles
Asset Management
Adobe Art Style Plugin
Adobe App Bar Controls Host
Alternate Glyph Palette
AdobeAlignObjects
3D v2
PDF File Format
ADMEveParser Plugin -
Before when I pressed the arrow key to navigate up and down the screen it would do it gradually. After I up graded to the current version it now skips down to the very bottom of the page.
You may have switched on [http://kb.mozillazine.org/accessibility.browsewithcaret caret browsing].<br />
You can press press F7 (on Mac: fn + F7) to toggle caret browsing on/off.<br />
See http://kb.mozillazine.org/Scrolling_with_arrow_keys_no_longer_works
* Tools > Options > Advanced : General: Accessibility: [ ] "Always use the cursor keys to navigate within pages" -
when I try and open a tab that is the same as the page I'm currently on it closes it self. Not when I type the full address, but when I use the arrow keys to select the url and press enter. I just don't like typing in the same address 5 times, when the older Firefox worked.
Hi
AutoPunch enabled? Command click in the bottom half of the Bar Ruler to turn it off
CCT
Maybe you are looking for
-
Hi Experts, Users' are having performance issues when SRM Portal is being opened to approve a SC. Our BASIS team have analyzed execution times in the transaction STAD and have identified that HTTP remote execution time is high (53 seconds). Please re
-
Hi Experts, In our company, the BW server is located in China, but Korea data is also merged in our system. We provided different query for China and Korea user. But when we run Korea query report, the default Encoding is Chinese, and even if we chan
-
Can I use my PBook as a display only?
Hi, I was wondering if anyone can help me out please? I have a PBook 667 (Gbit) which is slow as can be. My Powermac, however, is a Dual 450 with more RAM, and is lots faster. I've tried tons of was of speeding up the PBook, and I can't afford any mo
-
I am making a sign for sign writing. The overall size is 2400mmx1800mm. so its quiet big. But When I go to put a drop shadow behind it it comes up with this - " The combination of artwork size & resolution exceeds the maximum that can be rasterized"
-
Change account username and home folder issue
Hello guys, Apple store re-installed Yosemite v10.10 on my MBA early 2014 (128gb, 4gb) I wanted to change the account username and the home folder name after installation however I think I did it the wrong way to start with Step1 I went into System P