ruffle-rs / ruffle

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

Away Builder - getFontMetrics missing from flash.text.engine.ElementFormat #17788

Open Fancy2209 opened 2 months ago

Fancy2209 commented 2 months ago

Describe the bug

Try to open the tool, and get this error

 Error dispatching event EventObject(EventObject { type: "enterFrame", class: flash.events::Event, ptr: 0x6d735e0 }) to handler FunctionObject(FunctionObject { ptr: 0x820af0, name: Ok("mx.managers::LayoutManager/doPhasedInstantiationCallback()") }) : ReferenceError: Error #1069: Property getFontMetrics not found on flash.text.engine.ElementFormat and there is no default value.
    at mx.core::FTETextField/composeText()
    at mx.core::FTETextField/validateNow()
    at mx.core::FTETextField/setTextFormat()
    at mx.core::UIFTETextField/validateNow()
    at spark.skins.spark::DefaultGridItemRenderer/updatePreferredSize()
    at spark.skins.spark::DefaultGridItemRenderer/validateNow()
    at spark.components.gridClasses::GridLayout/layoutItemRenderer()
    at spark.components.gridClasses::GridLayout/createTypicalItemRenderer()
    at spark.components.gridClasses::GridLayout/updateTypicalCellSizes()
    at spark.components.gridClasses::GridLayout/measure()
    at spark.components.supportClasses::GroupBase/measure()
    at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::measureSizes()
    at mx.core::UIComponent/validateSize()
    at spark.components::Group/validateSize()
    at mx.managers::LayoutManager/validateSize()
    at mx.managers::LayoutManager/doPhasedInstantiation()
    at mx.managers::LayoutManager/doPhasedInstantiationCallback()

Expected behavior

Tool would boot normally

Content Location

http://awaytools.com/awaybuilder/live-tool/

Affected platform

Browser's extension

Operating system

Windows 11

Browser

Mozilla Firefox 129.0.0.2

Additional information

No response

evilpie commented 2 months ago

We already have some issues for this. I have stubbed it at some point, but that just exposes problems deep in the MX code.