ruffle-rs / ruffle

A Flash Player emulator written in Rust
https://ruffle.rs
Other
15.66k stars 813 forks source link

`isConnected` AVM2 Error #12049

Open PastoTreering opened 1 year ago

PastoTreering commented 1 year ago

Describe the bug

In Deterministic Dungeon (AS3/AVM2) the "field journal" icon during a battle, when clicked, generates a console error (and the field journal does not open):

ERROR core/src/avm2/events.rs:419 Error dispatching event EventObject(EventObject { type: "click", class: flash.events::MouseEvent, ptr: 0x16a8a48 }) to handler FunctionObject(FunctionObject { ptr: 0x1a9cdc08 }) : TypeError: Error #1010: A term is undefined and has no properties. (accessing field: isConnected)

https://www.newgrounds.com/portal/view/674476

Screenshot 2023-07-14 at 8 29 01 AM

Expected behavior

When the field journal is clicked, there should be no error and the field journal should open.

Affected platform

Self-hosted version

Operating system

Mac OS, Windows OS

Browser

Chrome

Additional information

No response

Lord-McSweeney commented 1 year ago

This is actually due to the Armor Games AGI not loading, due to a CORS error. When I open the SWF in the Ruffle extension player page, it works fine.

lmcnearney commented 1 year ago

The CORS error should be fixed now for loading the AGI.