-
Error message help
HI, can anyone help me? I am new to using AS3, so I have a feeling that this will be an easily solved problem. I'm trying to play an flv. when I press the number 1 key.
The code I have used is:
sunvid.flvPlayer.stop();
var ispaused = 0;
stage.addEventListener(KeyboardEvent.KEY_UP, playfile);
function playfile(e:KeyboardEvent):void {
if (e.keyCode==Keyboard.(1) ){
sunvid.flvPlayer.gotoAndPlay(2);
}
}
the code apparently contains no errors but I keep getting this error message and I have no idea how to fix it!
TypeError: Error #1123: Filter operator not supported on type class flash.ui.Keyboard.
Any advice would be greatly appreciated!
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
|