I am going to be loading a swf into a div tag when the user initiates some action. The div tag's id is container
, the embedded swf's tag id will be swf_content
. I want to be able to set a variable to that swf_content
tag when it is loaded. So something like:
$("#swf_content").ready(function() {
SWF = $("#swf_content").get(0);
})
What is the best way to do this, assuming it won't be loaded until some arbitrary user action?