Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type Coercion from Sprite to Bitmap failed #19083

Open
JimenezLi opened this issue Dec 28, 2024 · 1 comment
Open

Type Coercion from Sprite to Bitmap failed #19083

JimenezLi opened this issue Dec 28, 2024 · 1 comment
Labels
A-avm2 Area: AVM2 (ActionScript 3) bug Something isn't working

Comments

@JimenezLi
Copy link

Describe the bug

When clicking puzzle slices, the game throws an error:

ERROR ruffle_core::avm2::events: Error dispatching event EventObject(EventObject { type: "mouseDown", class: flash.events::MouseEvent,s: flash.events::MouseEvent, ptr: 0x239a162cfd0 }) to handler FunctionObject(FunctionObject { ptr: 0x23999ffffc0, name: Ok("Level/puzzError #1034: Type Coercion fleClick()") }) : TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::Sprite@00000000000 to flash.display.Bitmap.
        at Level/puzzleClick()

Expected behavior

The puzzle slices should be dragged normally.
Image

Content Location

com.arcadevoid.jigcircle.swf.zip

Affected platform

Desktop app

Operating system

Windows 10

Browser

No response

Additional information

No response

@JimenezLi JimenezLi added the bug Something isn't working label Dec 28, 2024
@kjarosh kjarosh added the A-avm2 Area: AVM2 (ActionScript 3) label Dec 28, 2024
@Lord-McSweeney
Copy link
Collaborator

The SWF expects a getObjectsUnderPoint call to only return Bitmaps, but for some reason in Ruffle a Sprite is in the array

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-avm2 Area: AVM2 (ActionScript 3) bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants