Skip to content

Instantly share code, notes, and snippets.

@johnlindquist
Created November 22, 2008 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnlindquist/27937 to your computer and use it in GitHub Desktop.
Save johnlindquist/27937 to your computer and use it in GitHub Desktop.
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