SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict pentium10's Avatar
    Join Date
    Apr 2004
    Location
    Transilvania
    Posts
    208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    flash on focus get keypressed

    Hello,

    I have this code:

    HTML Code:
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="550" height="400" 
    onmouseover="startCount('2021')"  onmouseout="stopCount('2021')" onkeypress="countkeypress();">
    <param name="movie" value="http://www.gamestocash.com/swf/f-877.swf">
    <param name="quality" value="high">
    <param name="menu" value="true">
    <embed width="550" height="400" src="http://www.gamestocash.com/swf/f-877.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
    </object>
    you will notice the onkeypress="countkeypress();" event
    it doesn't fire? why?
    how can I count the keystrokes with javascript when the flash movie is focused?
    please help me, it's urgent

    Thank you,
    Pentium10
    Rype :: book, do, charge, collect,
    track time, track expenses and invoice easily on the go.
    Available on Mac, Win, iPhone, WinMobile.
    http://www.rypenow.com

  2. #2
    SitePoint Wizard
    Join Date
    Nov 2004
    Location
    Nelson BC
    Posts
    2,310
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This might be why:
    Events are sent directly to the OBJECT element. If the event is returned by the embedded object, it bubbles accordingly. If the event is not returned, it does not bubble.
    from
    http://msdn.microsoft.com/library/de...cts/object.asp


Bookmarks

Posting Permissions

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