Flash lit pas GetElementId sur FIREFOX
Salut à tous,
J'ai utilisé External interface pour appeler un javascript qui efface mon DIV de ma page HTML, ça marche très, mais sur Explorer seulement pas sur firefox... quand je clique sur mon bouton il ferme le broswer de firefox.
CODE JavaScript
Code:
1 2 3 4 5 6
| <script language="javascript">
function CacheTout()
{
document.getElementById('mondiv').parentNode.removeChild(document.getElementById('mondiv'));
}
</script> |
Dans le BODY
Code:
1 2 3
| <div id="mondiv" style="position:absolute; left:0px; top:0px; width:394px; height:193px;">
<object>...</object>
</div> |
CODE Flash
Code:
1 2 3 4 5
| import flash.external.*;
skip.onRelease = function(){
ExternalInterface.call("CacheTout");
}
stop(); |
On dirait que FLASH ne comprend pas getElementById... Y a t-il une solution?
Merci!
Jzeel