A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: ASCII code for Left Mouse Button?

  1. #1
    Member
    Join Date
    Sep 2006
    Posts
    64

    ASCII code for Left Mouse Button?

    What is the ASCII code, if any, for the left mouse button?
    I want my character to shoot, without having to use:
    onClipEvent(enterFrame) {
    if(key.isDown(key.CONTROL)) {
    this.gotoandstop("gunfire");
    }

    It works fine, but it is a graveyard of boring.

    I finally got my character to run and rotate properly, and now I just want to use the mouse button to make the character shoot.

    Can anyone help?

  2. #2
    Member
    Join Date
    Sep 2006
    Posts
    64
    Ah:

    onClipEvent(mouseDown) {
    blah
    }

    Thanks anyway.
    Last edited by Person99; 03-04-2007 at 05:59 PM. Reason: Because I can

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center