SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: getting a key

  1. #1
    SitePoint Enthusiast
    Join Date
    May 2003
    Location
    Canada
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    getting a key

    sorry i know very little about action script but how do i get it so when i press a certain key it will go to the scene provided.

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    on (keyPress [key])

    Replace [key] with whatever key you want logged.

    Here's an article/tutorial about it:
    http://www.informit.com/isapi/produc...t/articlex.asp

  3. #3
    SitePoint Enthusiast
    Join Date
    May 2003
    Location
    Canada
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    on (keyPress ["right"]){
    gotoAndPlay("2","16");
    }

    stop();

    what am I doing wrong here?

  4. #4
    SitePoint Enthusiast
    Join Date
    May 2003
    Location
    Canada
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ahh sorry i found what it was


Bookmarks

Posting Permissions

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