P
phil.swenson
I have this function that returns an instance to a flash widget:
function getFlashInstance() {
if (navigator.appName.indexOf("Microsoft") != -1) {
return window[FLASH_MOVIE_NAME]
}
else {
return document[FLASH_MOVIE_NAME];
}
}
The problem is if my flash widget isn't loaded yet I get an undefined
object...
I have a function that gets called when the flash object is registered
(lineChartLoaded()). What I want is for the getFlashInstance to "wait"
until the lineChartLoaded function is called and then return the
object.
Also note that I really can't just trigger this whole thing off the
lineChartLoaded() function because there is server side state I'm
waiting on too.
Any suggestions?
function getFlashInstance() {
if (navigator.appName.indexOf("Microsoft") != -1) {
return window[FLASH_MOVIE_NAME]
}
else {
return document[FLASH_MOVIE_NAME];
}
}
The problem is if my flash widget isn't loaded yet I get an undefined
object...
I have a function that gets called when the flash object is registered
(lineChartLoaded()). What I want is for the getFlashInstance to "wait"
until the lineChartLoaded function is called and then return the
object.
Also note that I really can't just trigger this whole thing off the
lineChartLoaded() function because there is server side state I'm
waiting on too.
Any suggestions?