Results 1 to 9 of 9

Thread: Stop Browser Scrolling On Arrow Keys

  1. #1

    Stop Browser Scrolling On Arrow Keys

    Hello,

    I am trying to stop the browser from scrolling when using the arrow keys within flash. It makes it impossible to play the game if the browser is always scrolling up and down when your using the arrow keys to play the game. Ive searched around but google seems to think I want a scrollbar in flash... Is there a keyascii = 0 or something?

    Thanks
    PsuFan

  2. #2
    Quote Originally Posted by PsuFan View Post
    I am trying to stop the browser from scrolling when using the arrow keys within flash.
    The way SWF animations should work, is that you need to click them in order to "activate" them.

    Once you activate them, any keyboard presses you do will be ignored by the browser, and sent directly to the SWF.

    It should do this right out of the box. Perhaps its the way you are embedding it?
    Blog article of the month: Why My One Line 'if' Statements Are Unusual
    Twitter: @IQAndreas
    GitHub: IQAndreas

  3. #3
    I like IE, but I think its a bug of IE 7. You can look at the embedding though, I think Dreamweaver created it.

    Code:
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="600" height="400" id="FlashID" title="Chips">
          <param name="movie" value="swf/Chips24.swf?user=1" />
          <param name="quality" value="high" />
          <param name="wmode" value="opaque" />
          <param name="swfversion" value="6.0.65.0" />
          <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you donít want users to see the prompt. -->
          <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
          <!--[if !IE]>-->
          <object data="swf/Chips24.swf?user=1" type="application/x-shockwave-flash" width="600" height="400">
            <!--<![endif]-->
            <param name="quality" value="high" />
            <param name="wmode" value="opaque" />
            <param name="swfversion" value="6.0.65.0" />
            <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
            <div>
              <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
              <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/d...ash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
            </div>
            <!--[if !IE]>-->
          </object>
          <!--<![endif]-->
        </object>

  4. #4

    i have same isssue

    welll i have same problem and no idea how to fix it ! any solution ?

  5. #5
    Quote Originally Posted by IqAndreas View Post
    The way SWF animations should work, is that you need to click them in order to "activate" them.

    Once you activate them, any keyboard presses you do will be ignored by the browser, and sent directly to the SWF.

    It should do this right out of the box. Perhaps its the way you are embedding it?
    I don't see any reason why this doesn't work. For example, as I'm typing in this box, if I push up or down, it doesn't scroll the page. Would you mind giving us a link to an example page?

  6. #6
    an example:
    http://www.getkidfun.com/games/flash...e%20in%20Space

    no problem in FF, but I do have the problem with IE 8.

    All you have to do is use the arrow keys to play the game - as soon as you press the down arrow, the browser should scroll down, thus moving the game off screen!

  7. #7
    Just to let you know in Safari on the mac it works right. Pressing the keys when inside the game doesn't do scrolling.

  8. #8

    thanks

    good to know.
    so it is only a problem in IE, figures.

    any ideas? is it a problem in the flash object definition maybe?

  9. #9
    any soultion for this? I am having the same issue. It works fine in Chrome, Firefox, however it is scrolling in internet explorer. I saw somewhere it has to do with focus...Not sure.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012