User Tag List

Results 1 to 3 of 3

Thread: Loosing focus in iframe (Keys do not work any longer)

  1. #1
    Clicker Multimedia Fusion 2 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleUnicode Add-on
    iamjot's Avatar
    Join Date
    Nov 2008
    Location
    Austria
    Posts
    712
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Loosing focus in iframe (Keys do not work any longer)

    Hi. I think there is a bug in the html5 exprter.
    My game is within an iframe. It is played with the ARROW KEYS. When I click outside the iframe and enter the game again - the keys DO NOT WORK any longer.
    Even if I use the window object and set the focus on again - the keys do not work and I can not controll my game character.
    Please help us .) Or is there maybe somthing within the iframe itself I can do?

  2. #2
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    MTCMusic's Avatar
    Join Date
    Jan 2007
    Location
    Montreal, Canada
    Posts
    359
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,
    This is not a bug, it's just the way the browsers switch the focus through apps. To help my users understand this, I added a <p/> tag at the end of the HTML telling the user to click in the grey area around the app to return to the app if the controls stop responding. This solution works ery well for me.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleUnicode Add-on
    iamjot's Avatar
    Join Date
    Nov 2008
    Location
    Austria
    Posts
    712
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thx MTCMusic. Thx for your answer but this will not solve my problem. The game has focus (or is in focus) - thats not the problem

    - My game can be controlled by mouse (click on button LEFT or RIGHT) and by keyboard (Arrow keys).

    - When I click outside the iframe and and then in the iframe (the game) again the mouse movement still works
    BUT the key movement does not work at all.

Similar Threads

  1. Replies: 2
    Last Post: 25th February 2014, 10:18 AM
  2. Loosing Focus
    By Jason in forum SWF/Flash Export Module Version 2.0
    Replies: 3
    Last Post: 5th October 2011, 07:27 PM
  3. Loosing focus
    By qenio in forum SWF/Flash Export Module Version 2.0
    Replies: 43
    Last Post: 4th June 2011, 07:55 AM
  4. Simulating Keys without window Focus
    By Dines in forum Extension Development
    Replies: 8
    Last Post: 10th April 2007, 02:54 PM
  5. Bug R243 - Alt keys no longer work in MMF2
    By joewski in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 26th January 2007, 08:24 PM

Posting Permissions

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