Eric, Take a look at keyPressed(123) for the left arrow, and keyPressed(124) for the right arrow. 125 is Down, and 126 is Up just in case.
Brian Robbins [EMAIL PROTECTED] Senior Software Engineer, CleverMedia http://clevermedia.com/ <http://clevermedia.com/> > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of eric terry > Sent: Friday, October 05, 2001 12:18 PM > To: [EMAIL PROTECTED] > Subject: <lingo-l> use of arrow keys > > > I currently have code where I use the mouse to move a > sprite across the stage: > > if the mouseH > 0 and the mouseH < stagewidth then > > sprite(mySprite).locH = the mouseH -- move sprite > to mouseH > > end if > > > Is there a way to use the arrow keys to do this? > Regards, > Eric > > __________________________________________________ > Do You Yahoo!? > NEW from Yahoo! GeoCities - quick and easy web site hosting, just > $8.95/month. > http://geocities.yahoo.com/ps/info1 > > [To remove yourself from this list, or to change to digest mode, go to > http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list, > email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]) > Lingo-L is for learning and helping with programming Lingo. Thanks!] > > [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]) Lingo-L is for learning and helping with programming Lingo. Thanks!]
