Quantunet.com

My Account

Joins Us
Flash 8 Actionscript 2.0 Knowledgebase
Using The Arrow Keys II  

Download .fla

How to create following effect.


Actionscript

on(keyPress "<left>"){
this._x -= 10
}
on(keyPress "<right>"){
this._x += 10
}
on(keyPress "<up>"){
this._y -= 10
}
on(keyPress "<down>"){
this._y += 10
}


How The Actionscript Works

Note: Ball is treated as a button.

© 2008 Quantunet LLC All Rights Reserved | Intellectual Property | Terms of Use | Privacy
Home | About Quantunet | FAQ's | Contact Us