#1
  1. PHP Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2002
    Location
    England
    Posts
    163
    Rep Power
    13

    flash and keyboard keys


    I'm very new to flash but am getting a good grasp of it freom the help i have received from here and other places.

    I am wondering if i'm on a main movie and a certain key stroke are enter, if i can get it to do an action.

    For example, if i press CTRL+Shift and F6 all at once, it will flash a light or something.

    Is there any cool code to catch key strokes like that.

    Thanks

  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2002
    Posts
    26
    Rep Power
    0
    Hi Andy

    http://www.macromedia.com/support/fl...yobject02.html

    Check out the Macromedia.com redesign too!
  4. #3
  5. PHP Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2002
    Location
    England
    Posts
    163
    Rep Power
    13
    Thanks,



    this is the code i came up with and it works:

    Code:
    if (key.isDown(Key.CONTROL) && key.isDown(Key.SHIFT))
    {
    	if(Key.getCode() == 117)
    	{
    		txt = "Yeh";
    	}
    }
    Cheers Again

IMN logo majestic logo threadwatch logo seochat tools logo