ruffle-rs / ruffle

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

Run app in Flex #441

Open eduardo12fox opened 4 years ago

eduardo12fox commented 4 years ago

Hello Guys, This solution run app make in Adobe Flex?

kmeisthax commented 4 years ago

Not yet. I just made a very preliminary PR #404 which adds very basic AVM2/AS3 support. It doesn't even support display objects yet, or even coercions and math. It will take several months or more before Flex works in Ruffle.

bmiller-melink commented 3 years ago

All, Has there been any movement on the Flex/AVM2 front? I've got a site that could be good for testing if you need/want one: http://energy.melinkcorp.com/melink/html/mpower/MPowerFlash.html

Herschel commented 3 years ago

Closing in favor of #1368.

Lord-McSweeney commented 1 year ago

This currently needs:

flash.events.PressAndTapGestureEvent
flash.events.TransformGestureEvent

After stubbing those, the error becomes:

Error dispatching `complete` event: TypeError: Error #1006: spark.components::Label is not a function of class global.
    at com.belltracy.ui::MPowerFlash/_MPowerFlash_Label1_i()
    at com.belltracy.ui::MPowerFlash/_MPowerFlash_Array1_c()
    at mx.core::DeferredInstanceFromFunction/getInstance()
    at spark.components::SkinnableContainer/createDeferredContent()
    at spark.components::SkinnableContainer/createContentIfNeeded()
    at spark.components::SkinnableContainer/createChildren()
    at mx.core::UIComponent/initialize()
    at spark.components::Application/initialize()
    at com.belltracy.ui::MPowerFlash/initialize()
    at mx.managers.systemClasses::ChildManager/childAdded()
    at mx.managers.systemClasses::ChildManager/initializeTopLevelWindow()
    at mx.managers::SystemManager/initializeTopLevelWindow()
    at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()
    at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()
    at flash.events::EventDispatcher/flash::events::EventDispatcher::dispatchEvent()
    at mx.preloaders::Preloader/timerHandler()
    at flash.events::EventDispatcher/flash::events::EventDispatcher::dispatchEvent()
    at flash.utils::Timer/onUpdate()
Lord-McSweeney commented 1 year ago

This now errors:

Error dispatching event EventObject(EventObject { type: "complete", class: flash.events::Event, ptr: 0x2a261b0 }) to handler FunctionObject(FunctionObject { ptr: 0xe831b0 }) : Error: The channel class 'mx.messaging.channels.AMFChannel' specified was not found.
    at mx.messaging.config::ServerConfig$/createChannel()
    at mx.messaging.config::ServerConfig$/getChannel()
    at com.belltracy.util::URLUtil$/get rootServerURI()
    at com.belltracy.util::URLUtil$cinit()
    at global$init() [TU=com/belltracy/util/URLUtil]
    [massive stack trace]
Lord-McSweeney commented 1 year ago

Still happening as of August 27.

Lord-McSweeney commented 9 months ago

This has been significantly improved and finishes loading (and renders some content), but now throws a different error:

Error dispatching event EventObject(EventObject { type: "result", class: mx.rpc.events::ResultEvent, ptr: 0x670d428 }) to handler FunctionObject(FunctionObject { ptr: 0x45052b8 }) : TypeError: Error #1009: Cannot access a property or method of a null object reference. (accessing field: toString)
    at com.anychart.utils::XMLUtils$/merge()
    at com.anychart.utils::XMLUtils$/merge()
    at com.anychart.styles::Style/mergeState()
    at com.anychart.styles::Style/deserialize()
    at com.anychart.elements::BaseElement/deserializeStyleFromNode()
    at com.anychart.seriesPlot.elements.markerElement::MarkerElement/deserializeGlobal()
    at com.anychart.seriesPlot.data.settings::GlobalSeriesSettings/deserializeMarkerElement()
    at com.anychart.seriesPlot.data.settings::GlobalSeriesSettings/deserializeElements()
    at com.anychart.seriesPlot::SeriesPlot/processSettings()
    at com.anychart.seriesPlot::SeriesPlot/getSeriesSettings()
    at com.anychart.seriesPlot::SeriesPlot/deserializeData()
    at com.anychart.seriesPlot::SeriesPlot/deserialize()
    at com.anychart::Chart/deserialize()
    at com.anychart.plot::PlotFactoryBase$/createPlot()
    at com.anychart.plot::PlotFactoryBase$/createSinglePlot()
    at com.anychart.plot::PlotFactory$/createSinglePlot()
    at com.anychart::AnyChart/createElement()
    at com.anychart.viewController::ChartView/doGenerateChart()
    at com.anychart.viewController::ChartView/generateChart()
    at com.anychart::AnyChart/processXML()
    at com.anychart.viewController::ChartView/setXMLData()
    at com.anychart::AnyChart/setXMLData()
    at com.anychart::AnyChartFlex/set anychartXML()
    at com.belltracy.remoting::AnyChartRestResultWrapper/restResult()
    at Function/call()
    at com.belltracy.remoting::AsyncCaller/handleAsyncResponse()
    at flash.events::EventDispatcher/flash::events::EventDispatcher::dispatchEvent()
    at HTTPService.as$35::HTTPOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
    at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()
    at mx.rpc::Responder/result()
    at mx.rpc::AsyncRequest/acknowledge()
    at DirectHTTPChannel.as$152::DirectHTTPMessageResponder/completeHandler()
Lord-McSweeney commented 3 months ago

For a while this has been mostly loading successfully, but, with some user input, panicking after loading:

panicked at core/src/avm2/globals/flash/display/shader_job.rs:80:26:
Missing value property: TypeError: Error #1009: Cannot access a property or method of a null object reference. (accessing field: concat)
    at flash.display::ShaderParameter/get value()
    at flash.display::DisplayObject/flash::display::DisplayObject::filters()
    at mx.core::UIComponent/set filters()
    at spark.effects.supportClasses::AnimateTransitionShaderInstance/animationStart()
    ...
eduardo12fox commented 3 months ago

Hi guys the ruffle running app in flex?

Em sáb., 25 de mai. de 2024, 21:03, Lord-McSweeney @.***> escreveu:

For a while this has been mostly loading successfully, but, with some user input, panicking after loading:

panicked at core/src/avm2/globals/flash/display/shader_job.rs:80:26: Missing value property: TypeError: Error #1009: Cannot access a property or method of a null object reference. (accessing field: concat) at flash.display::ShaderParameter/get value() at flash.display::DisplayObject/flash::display::DisplayObject::filters() at mx.core::UIComponent/set filters() at spark.effects.supportClasses::AnimateTransitionShaderInstance/animationStart() ...

— Reply to this email directly, view it on GitHub https://github.com/ruffle-rs/ruffle/issues/441#issuecomment-2131732036, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABN3VJ7BYWQR2MUES4DDGBDZEERF5AVCNFSM4LLDOZK2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMJTGE3TGMRQGM3A . You are receiving this because you authored the thread.Message ID: @.***>

Aaron1011 commented 2 months ago

SWF link: https://web.archive.org/web/20210903182700im_/http://energy.melinkcorp.com/melink/html/mpower/mpower-flash-1.0.3.swf