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

Run app in Flex #441

Open
eduardo12fox opened this issue Mar 15, 2020 · 10 comments
Open

Run app in Flex #441

eduardo12fox opened this issue Mar 15, 2020 · 10 comments
Labels
avm2 AVM2 (ActionScript 3.0) issues bug Something isn't working flex Issues relating to Adobe Flex unimplemented Issues for functionality that hasn't been implemented yet

Comments

@eduardo12fox
Copy link

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

@kmeisthax
Copy link
Member

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.

@Herschel Herschel added avm2 AVM2 (ActionScript 3.0) issues flex Issues relating to Adobe Flex labels Mar 16, 2020
@bmiller-melink
Copy link

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
Copy link
Member

Closing in favor of #1368.

@Lord-McSweeney
Copy link
Collaborator

Lord-McSweeney commented Apr 15, 2023

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 Lord-McSweeney added bug Something isn't working unimplemented Issues for functionality that hasn't been implemented yet labels May 25, 2023
@Lord-McSweeney
Copy link
Collaborator

Lord-McSweeney commented Aug 4, 2023

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
Copy link
Collaborator

Still happening as of August 27.

@Lord-McSweeney
Copy link
Collaborator

Lord-McSweeney commented Nov 25, 2023

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
Copy link
Collaborator

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
Copy link
Author

eduardo12fox commented May 26, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
avm2 AVM2 (ActionScript 3.0) issues bug Something isn't working flex Issues relating to Adobe Flex unimplemented Issues for functionality that hasn't been implemented yet
Projects
None yet
Development

No branches or pull requests

6 participants