View Full Version : Object Orientated Movement
Sammo
January 16th, 2007, 02:59 PM
I was wondering what the best practice for moving a movieclip with the arrow keys was when trying to be as object orientated as possible.
I have a Hero class that is linked to a hero movieclip.
TheCanadian
January 16th, 2007, 03:44 PM
Either use onEnterFrame or add each instance as a Key listener in the constructor and use onKeyDown or onKeyUp. It would be best to give it a private attribute so that people can't change the functionality in the FLA.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.