ruffle-rs / ruffle

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

max and ruby speedy max you get the play botton and nothing happens #15657

Open markman12345 opened 7 months ago

markman12345 commented 7 months ago

Describe the bug

you hit the play button and nothing happens

Expected behavior

for the play button to work

Content Location

https://www.numuki.com/game/mr-speedy-max/

Affected platform

Browser's extension

Operating system

windows 11

Browser

microsoft edge

Additional information

No response

n0samu commented 7 months ago

The error is:

ERROR core/src/avm2/events.rs:428 Error dispatching event EventObject(EventObject { type: "click", class: flash.events::MouseEvent, ptr: 0x22871f0 }) to handler FunctionObject(FunctionObject { ptr: 0x6f35008, name: Ok("com.corus.speedyMax.screens::Landing/playClick()") }) : ReferenceError: Error #1069: Property getFontMetrics not found on flash.text.engine.ElementFormat and there is no default value.
    at flashx.textLayout.elements::FlowLeafElement/getComputedFontMetrics()
    at flashx.textLayout.compose::TextFlowLine/makeSelectionBlocks()
    at flashx.textLayout.compose::TextFlowLine/http://ns.adobe.com/textLayout/internal/2008::computePointSelectionRectangle()
    at flashx.textLayout.compose::TextFlowLine/http://ns.adobe.com/textLayout/internal/2008::selectionWillIntersectScrollRect()
    at flashx.textLayout.container::ContainerController/scrollToRange()
    at flashx.textLayout.edit::EditManager/finalizeDo()
    at flashx.textLayout.edit::EditManager/endCompositeOperation()
    at fl.text::TLFTextField/replaceText()
    at fl.text::TLFTextField/set text()
    at hoolib.utils::Copy/formatField()
    at com.corus.speedyMax.game.overlay::TutorialTrackStart/start()
    at com.corus.speedyMax.game::TutorialLevel/next()
    at com.corus.speedyMax.game::TutorialGame/newLevel()
    at com.corus.speedyMax.game::TutorialGame/newGame()
    at com.corus.speedyMax.screens::Tutorial()
    at com.corus.speedyMax.screens::Landing/playClick()