-
Can I use a variable with keypress? on (keyPress "var")
I have a simple menu that I have assigned keys to. Problem is if I want to change the keys I have to manually edit the buttons in a few instances.
So I want to use a variable for the "keypress" and assign them in the first frame so that any changes can be made once in this location.
Is it possible to use a variable like the following?
on (keyPress "variable") {
gotoAndPlay("Scene1",1);
}
I've tried this but it may be my syntax is incorrect or it can't be done this way. I'm using AS2.0.
Thanks.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|