Created
November 22, 2008 20:47
-
-
Save johnlindquist/27937 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package | |
{ | |
import flash.events.MouseEvent; | |
import org.papervision3d.view.BasicView; | |
[SWF(width="640", height="480", backgroundColor="#000000", frameRate="60")] | |
public class InteractivityExample extends BasicView | |
{ | |
private var flipper:flipIcon; | |
public function InteractivityExample() | |
{ | |
flipper = new flipIcon(); | |
flipper.addEventListener(MouseEvent.CLICK, clickHandler); | |
addChild(flipper); | |
} | |
private function clickHandler(event:MouseEvent):void | |
{ | |
flipper.x += 10; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment