Skip to content

Inaccurate behavior with AVM1 text input focusing #23182

@ChrisCPI

Description

@ChrisCPI

Describe the bug

In Ruffle, with an AVM1 movie, when you click anywhere while a text input is currently focused, then it will unfocus. In Flash Player, this not (always) the case.

Expected behavior

In a standalone AVM1 movie, this behavior is SWF version dependent. On version 9 and above, clicking anywhere (except for another select-able text) does not unfocus the text input. When the version is below 9, then clicking anywhere outside the text input should unfocus it.

But then it gets weird with mixed AVM: When the AVM1 movie is loaded into AVM2, clicking on anywhere except for an AVM1 button will unfocus the text input. The version of the AVM1 movie does not matter in this case.

Also, some notes about this behavior in mixed AVM:
When an AVM2 text input is focused on, clicking an AVM1 button will still prevent the focus from being reset. Also in this case, clicking the AVM1 button will still fire the mouseFocusChange event with null as the relatedObject. However, since the focus hasn't actually reset, clicking the AVM1 button repeatedly will fire the event every time for as long as the text input is in focus.

Content Location

A simple test, where a button is covering the entire stage, and a text input is on top:

avm1_textinput_focus.swf.zip

Affected platform

Desktop app

Operating system

macOS Tahoe 26

Browser

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-avm1Area: AVM1 (ActionScript 1 & 2)bugSomething isn't workinginputIssues relating to user input in Flash contentmixed-avmMixing AVM1 and AVM2

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions