|
Flash has the ability to call JavaScript functions (or any external code, so long as the code it's calling can interface with Flash), which would allow this to work, but as you've stated that you can't edit the Flash file, this will likely be more problematic.
You could always embed the Flash file into another one, giving you some degree of support for what you want to do.
Using JavaScript timing wouldn't be an overly good idea as your Flash file may take longer for one person to download than another, meaning there's a relatively good chance of the timing going out of sync, meaning the JavaScript may execute before the file is finished playing.
JavaScript can also obtain Flash file information via TGetProperty, but I'm not sure how this works.
You'd need to use it to obtain the progress of the Flash file, meaning you'd be able to detect when the frame count for the movie and the current frame count are the same (meaning the file has played through).
This would require you to check a lot though, so it might do more harm than good unless you're willing to check every few seconds rather than in real time.
|