ruffle icon indicating copy to clipboard operation
ruffle copied to clipboard

Run app in Flex

Open eduardo12fox opened this issue 5 years ago • 10 comments

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

eduardo12fox avatar Mar 15 '20 15:03 eduardo12fox

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.

kmeisthax avatar Mar 15 '20 16:03 kmeisthax

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

bmiller-melink avatar Sep 25 '20 17:09 bmiller-melink

Closing in favor of #1368.

Herschel avatar Oct 23 '20 03:10 Herschel

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 avatar Apr 15 '23 02:04 Lord-McSweeney

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 avatar Aug 04 '23 06:08 Lord-McSweeney

Still happening as of August 27.

Lord-McSweeney avatar Aug 27 '23 19:08 Lord-McSweeney

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 avatar Nov 25 '23 23:11 Lord-McSweeney

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()
	...

Lord-McSweeney avatar May 26 '24 00:05 Lord-McSweeney

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: @.***>

eduardo12fox avatar May 26 '24 00:05 eduardo12fox

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

Aaron1011 avatar Jun 16 '24 23:06 Aaron1011

This is working perfectly now except for some TLF text being positioned incorrectly.

Lord-McSweeney avatar Aug 29 '25 22:08 Lord-McSweeney