You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 23, 2019. It is now read-only.
When trying to use JS to Flash communication using FABridge , FABridge doesn't find flash object.
Fix is described at http://www.timothyhuertas.com/blog/2010/11/30/fabridgejs-play-nice-with-chrome/
I'm not sure whether you need to update FABridge version or make this change in your version of FABridge. Your current latest version 1.5.1 contains flawed FABridge which doesn't find Chrome.
The text was updated successfully, but these errors were encountered:
Same code in Internet Explorer and Firefox works fine.
SOLVED:
Just go to: IFrameCommTest/bin-debug/bridge/FABridge.js and replace the FABridge__bridgeInitialized function with this code:
functionFABridge__bridgeInitialized(bridgeName){varsearchStr="bridgeName="+bridgeName;varflashInstanceWithBridge=null;varflashInstances=document.getElementsByTagName("object");//search object tagif(flashInstances.length==1){flashInstanceWithBridge=flashInstances[0];}else{for(vari=0;i<flashInstances.length;i++){varinst=flashInstances[i];varparams=inst.childNodes;varflash_found=false;for(varj=0;j<params.length;j++){varparam=params[j];if(param.nodeType==1&¶m.tagName.toLowerCase()=="param"){if(param["name"].toLowerCase()=="flashvars"&¶m["value"].indexOf(searchStr)>=0){flashInstanceWithBridge=inst;flash_found=true;break;}}}if(flash_found){break;}}}if(!flashInstanceWithBridge||!flashInstanceWithBridge["getRoot"]||!(typeof(flashInstanceWithBridge.getRoot)=="function"))//search embed tag if the object tag does not have the needed methods{flashInstanceWithBridge=null;flashInstances=document.getElementsByTagName("embed");if(flashInstances.length==1){flashInstanceWithBridge=flashInstances[0];}else{for(vari=0;i<flashInstances.length;i++){varinst=flashInstances[i];varflashVars=inst.attributes.getNamedItem("flashVars").nodeValue;if(flashVars.indexOf(searchStr)>=0){flashInstanceWithBridge=inst;}}}}if(flashInstanceWithBridge){FABridge.attachBridge(flashInstanceWithBridge,bridgeName);}returntrue;}
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When trying to use JS to Flash communication using FABridge , FABridge doesn't find flash object.
Fix is described at http://www.timothyhuertas.com/blog/2010/11/30/fabridgejs-play-nice-with-chrome/
I'm not sure whether you need to update FABridge version or make this change in your version of FABridge. Your current latest version 1.5.1 contains flawed FABridge which doesn't find Chrome.
The text was updated successfully, but these errors were encountered: