M
M
mark_slepkov2016-03-01 13:27:53
Classmates
mark_slepkov, 2016-03-01 13:27:53

How to fix flash animation in app for classmates?

Hello. For the first time I encountered the integration of JS and Flash and I can not understand what is the reason for the bug.
So, given:
1) Applications for OK written using BackboneJS + MarionetteJS
2) Flash animation is used in some places, which is connected using swfobject
3) Test address where the latest version of the application is available
4) Address in OK, by going to which the latest is available application version launched in iFrame
Problem:
We go to the test address dev4.xxxxxxxxx.ru, start the animation, the animation works out the callback, we smoothly hide the animation using the callback and delete all unnecessary objects. Rejoice (early).
We go into the application through OK, do the same steps and see that the animation is over, and the callback did not work i.imgur.com/hzCQ9FD.png and we have a button to restart the animation. After 10 seconds, the callback still works, but it's too late.
Please help me, I'm a complete teapot in flash.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
te11ur, 2016-03-11
@te11ur

This is not a bug, but another flash security policy. I met such a "bug" for small videos that were loaded into an iframe, a plate with the "play" button appears on top and the animation works with brakes or even stops. The problem occurs when: you open the game window in a social network (for example, ok), it opens its iframe (for example, site1.com), and the flash drive in resources (for example, static.site1.com or site2.com). Or, your domain and social network domain is https, and the flash drive is pulled from http.
I don’t know exactly how to fix your problem, but I decided that I started loading the flash drive from the same domain as my iframe and with the same protocol (https).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question