SWF In PDF - KeyListener?

Oct 2, 2009

I have a SWF with a keyListener that I am using to toggle the visibility of a movie clip.This works great when I play the SWF in the FlashPlayer.exe.When the SWF is placed into a PDF, the mouse events all work great, but the keyListener no longer works

View 1 Replies


Similar Posts:


ActionScript 2.0 :: FlipBook - KeyListener Not Going Away

Apr 12, 2011

I have a flipbook that I'm making and I'm having some problems getting rid of a certain keyListener... Here's the dealio.. This is the trouble-maker script that's on frame 3:

stop();
Key.removeListener(keyListener_n)
keyListener_np = new Object();
var repeatTest;
keyListener_np.onKeyDown = function(){
[Code] .....

View 1 Replies

Actionscript 2.0 :: KeyListener Is Not Working At Fullscreen In Browser

Nov 20, 2009

i m just making a game for multiple questions, now i want to give some short key to select objective questions like a for 1st object nd b of 2nd object nd enter for submit . Here the sample of code which i used:-

Code: Select allvar keyListener:Object = new Object();
keyListener.onKeyDown = function() {
switch (Key.getCode()) {

[Code].....

Now when i use a,b,c,d keys in normal window of browser that time it's work properly but when i used fullscreen window of browser that time it's not working.

View 2 Replies

ActionScript 2.0 :: [Flash8] Keylistener On Multiple Keys

May 22, 2007

I got a little problem on a simple code: There are 5 Mcs on stage named Key1 to Key5. I got a listener on keyboard that put the mc alpha to 40 if you press the key of the mc (1 - 5), and turn the alpha to 100 if key isn't pressed

Code:
var keyListener:Object = new Object();
keyListener.onKeyDown = function() {
if (Key.isDown(49))key1._alpha=40;

[Code]....

The problem is that it works perfectly if you press a key at time, but it don't work if you press the 5 keys simultaneously , (make strange things :'1' to '4' pressed works, but '3' to '5' make the 5th mc as un-pressed) Is there a fine way to test if the 3 simultaneous keys (char '3' to '5') are pressed ?

View 2 Replies

ActionScript 3.0 :: Adding KeyListener To Stage Via Object 2 Depths Below

Mar 9, 2010

I want to add a key listener to my stage, but from an object 2 depths below the stage. How would I do this? I thought about adding the listener from my doc class, but the listener function is in the object that is two depths below the stage, which would mean I would have to pass the key values to the next movie clip, then when that one is loaded, pass it to the one with the listener function. It seems very complicated, is there an easier way which keeps with the principle of OOP?

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved