I am resizing the height of a div using ExternallInterface.call based on the height of some dynamic components in my flash movie. I am also loading multiple images using the loader class. The javascript seems to block the loading of the images.
-If I load the images before the ExternallInterface.call I have no problems. However, if I use ExternallInterface.call before loading the images, the images don’t appear.
ACTIONSCRIPT:
var eiEnabled:Object = ExternalInterface.call(“changeDivHeight”, newDivHeight);
JAVASCRIPT IN HTML PAGE:
function changeDivHeight(windowHeight) {
document.getElementById(“flashContent”).style.height= windowHeight;
}
is this expected behavior? could anyone think of a workaround?
http://www.jaridworks.com/v2/selectorGrid.swf (works as expected)
http://www.jaridworks.com/v2 (images don’t load because javascript is fired)