Groups | Blog | Home
all groups > flash actionscript > december 2006 >

flash actionscript : Shift + click on a button


joemama7570
12/20/2006 8:01:27 PM
I am just trying to set up a button where if you hold down the "Shift" key and
click it, it will take you to a specific frame. I tried a few ideas like:
onKeyDown = function() {
if(Key.isDown(Key.SHIFT)){
gotoAndPlay (2);
}
}
But thats not working. Any ideas would be greatly appreciated.
myIP
12/20/2006 10:45:02 PM
'myButton_mc' is the instance name of the mc.

myButton_mc.onPress = function()
{
if(Key.isDown(Key.SHIFT))
{
trace("The ShiftKey is down.");
//gotoAndPlay (2);
}
AddThis Social Bookmark Button