Working on a project that requires a lot of audio and animated narrative, for example a game tutorial - play some audio instruction, then play an animation to highlight something visually, then play another piece of audio, etc.
The script component combined with PlaySound, PlayMovie, Sequence, Parallel, and CallFunction works brilliantly for all this stuff BUT there are some problems, namely that if the browser tab focus is lost (System.hidden set to false), sounds are automatically paused. While they normally resume when the game receives focus back, the sound's context within the flow of the Script component's execution can be lost, potentially leaving the game in a broken state.
Just done some further testing across different browsers and targets (html/flash) - in safari and firefox (osx) html builds work perfectly - sounds and animations are paused and resumed in line with browser focus, subsequent actions are executed - all is good. However, in Chrome HTML and Flash builds on all browsers Script execution does not resume if a PlaySound action is interrupted and, worst of all, in Chrome, a flash build does not pause or resume PlayMovie actions meaning.
It's a shame as the Script component provides such an elegant way of implementing functionality like this, which can otherwise get very complicated very quickly. Quite new to Flambe (but so far very impressed) - as I start to look into ways around this I'm wondering if anyone has come up against this or developed any workarounds or solutions to this problem, or has any thoughts on best ways to approach it?