When embedding a flash object, is there a way to determine when it is fully loaded?
This is my main question, but for anyone interested in the details:
I am using the ( DOMWindow ) jQuery plugin. For those unfamiliar, this is a basic overlay that seems to be centered on the page, primarily the rest of the content, which is darkened.
Inside DOMWindow I have embedded a YouTube video. The markup used to embed the video is introduced by AJAX.
DOMWindow has a built-in download schedule, but the problem I encountered is that the AJAX GET request is completed almost instantly, and within 3-5 seconds I get stuck looking at the white rectangle, waiting for the YouTube video to download.
If I could figure out how to determine when it finished loading, I could code a more elegant loading scheme (using an animated counter) inside DOMWindow.
source
share