User Tag List

Results 1 to 10 of 10

Thread: Bug: Can't stop movement ever again once flash loses focus

  1. #1
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Burfelt's Avatar
    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    525
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Bug: Can't stop movement ever again once flash loses focus

    When I have a simple active with an 8-directions movement, I cannot seem to stop it's movement ever, if the flashwindow loses focus.

    Try moving the object with keys, while you click outside the flash window, then click in window to get focus again and you will see that no matter what you do to stop to object the movement seems to continue.

    http://www.burfelt.com/temp/movement/focus.html

    here is an MFA of the same problem:

    http://www.burfelt.com/temp/movement/Application.zip

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    It does not stop if you press the arrows again when back in the game?

  3. #3
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Burfelt's Avatar
    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    525
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    No, it doesn't stop for me?

    Can someone else try this and tell what happens for them?

  4. #4
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,824
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)
    I have the same problem

    Hold down arrow key
    Click outside the flash game (remove focus from the game)
    Stop holding the key
    Click back inside the flash game and push a different arrow key

    The other arrow keys will make the object stop - but not move the object in a new direction

    Once you lift the other arrow key -- the object moves again in the direction of the first arrow key without touching any key.

  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    And does it stop if you press, once back in the game, the first arrow key (it should)

  6. #6
    Clickteam Clickteam
    Olivier's Avatar
    Join Date
    Jun 2006
    Posts
    3,000
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)
    I confirm the problem. Maybe an additional event could solve this? Something like:
    Code:
    • Application doesn't have the focus
    OR
    • No key is pressed
    --> Stop movement

  7. #7
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,824
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)
    Yes if I push the same key it stops
    It just seems like when I push another key and let it up it should also stop -- not return to the direction of the first key.

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DelphaDesign's Avatar
    Join Date
    Jan 2013
    Location
    Arizona
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've noticed this happen also when you right click, bringing up them flash menu, while moving. I know for sure it happens with the 8 direction movement type.

  9. #9
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The cause of this is that flash uses separate event listeners, one for buttonDown, another for buttonUp. If buttonUp occurs when the application is out of focus, the event will not fire and flash will believe you are still holding the button down. Pressing the button again has no effect because flash thinks it is down, but when you release the button the buttonUp event is triggered and the object will stop moving.

  10. #10
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    What I can do, is set all keys in my buffer to 0 when the app looses focus.
    But if you keep the key down and come back it wont be detected. But this is less annoying than the previous behavior.

Similar Threads

  1. Won't stop the path movement
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 18th April 2013, 11:52 AM
  2. Flash application has Focus?
    By King_Cool in forum SWF/Flash Export Module Version 2.0
    Replies: 0
    Last Post: 29th May 2012, 01:52 PM
  3. BUG: Mouse inputs stop working if the app window loses focus in the debugger
    By mobichan in forum iOS Export Module Version 2.0
    Replies: 0
    Last Post: 3rd February 2012, 02:40 PM
  4. Movement Stop Greyed out
    By Renatos in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 9th August 2006, 08:11 AM

Posting Permissions

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