Skip to content

Instantly share code, notes, and snippets.

@johnlindquist
Created November 22, 2008 21:25
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/27943 to your computer and use it in GitHub Desktop.
Save johnlindquist/27943 to your computer and use it in GitHub Desktop.
package
{
import flash.display.Sprite;
import flash.events.MouseEvent;
[SWF(width="640", height="480", backgroundColor="#000000", frameRate="60")]
public class InteractivityExample extends Sprite
{
private var rightArrow:rightIcon;
public function InteractivityExample()
{
rightArrow = new rightIcon();
rightArrow.addEventListener(MouseEvent.CLICK, clickHandler);
addChild(rightArrow);
}
private function clickHandler(event:MouseEvent):void
{
rightArrow.x += 10;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment