ruffle-rs/ruffle

Html HREF buttons tied to actionscript functions are treated as external URLs.

Open

#23514 opened on Apr 23, 2026

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Rust (17,394 stars) (932 forks)batch import
A-avm1buggood first issue

Description

Describe the bug

In all of the Submachine games HD builds, the footer controls were replaced with text buttons to control fullscreen, music, and sound fx. These buttons are all implimented as via html href like the following: <A HREF="asFunction:toggle_music" TARGET="">music: on</A> When clicking on the button, Ruffle will attempt to open these functions in an external web browser instead of executing the referenced actionscript function.

Expected behavior

As demonstrated by the flash packaged HD builds: Clicking on the buttons in the footer should execute the referenced function, not open an external browser.

Content Location

Unfortunately, I can't link directly to an affected swf as this is paid content that's still up for sale. Any of the SWF builds in the release will exhibit this behavior however. https://mateuszskutnik.itch.io/submachine-collection

Affected platform

Desktop app

Operating system

Windows 11 24H2 26100.8246

Browser

No response

Additional information

The full html footer is as follows <P ALIGN="CENTER"><FONT FACE="Arial" SIZE="10" COLOR="#444444" LETTERSPACING="0" KERNING="0"><A HREF="asFunction:toggle_full_screen" TARGET="">fullscreen: off | </A><A HREF="asFunction:toggle_music" TARGET="">music: on</A><A HREF="asFunction:toggle_full_screen" TARGET=""> | </A><A HREF="asFunction:toggle_sfx" TARGET="">sound fx: on</A></FONT></P> Do note toggle_full_screen appearing twice seems to be a bug in the game, not Ruffle as its present in the flash builds as well.

Sidenote: While the web extension version does not exhibit the same behavior, these buttons are broken on it as well. It simply does nothing when clicking on them.

Contributor guide