Hello Clickers.
I don't know if I've found a bug in the HTML5 exporter, or perhaps is a feature ?
Scenario: a simple frame with two active object on it. One is "good", the other is "bad". ( quite the same by the film "the good, the bad, the ugly". )
Jokes apart, the frame has a standard fade-in effect ( set in the frame property panel ). The two objects are created at runtime.
What happens:
- using "run this event once" and creating the two objects, it works in Windows-runtime but does not in HTML5, producing a JavaScript error ( see screenshot below)
- using "run this event once" and creating only the "good" object, works in both runtimes.
- using "Start of frame" by creating only the "bad" object, it does not work in HTML5.
- using "Start of frame" by creating the two objects, it works in both runtimes.
This quite puzzles me. What is wrong with the "bad" active object ?
I'm aware that there is a workaround to this, that is: delete the bad, create a new one. Problem solved.
However, I wanted to point this "issue" out. May be can get solved with some JavaScript "magic" ? I'm ready to test any patch
Attached is the test project "Html5-fade.mfa" . Simply activate one section at a time, and see what happens in html5, accordingly with the comments. Hit F12 on the browser to see the JavaScript error message.
Thank you for your attention and have a nice day,
Sergio.
Please login to see this attachment.