Frustrating FireFox bug with ExtnernalInterface – resolved

Looks like I had a problem with my JavaScript. I need to add:
var swfDiv = document.getElementById(‘swfDiv’);

Checks out now in FireFox 3.5 mac, FireFox PC (version?), IE 8 on the pc.

<script type="text/javascript">
        function putFlashOnTop() {
                var swfDiv = document.getElementById('swfDiv');
                swfDiv.style.zIndex=3;
    }
       function putFlashOnBottom() {
                var swfDiv = document.getElementById('swfDiv');
                swfDiv.style.zIndex=1;
    }
</script>

The original problem laid out here

Source file for this little test are here:

Thank you to Nikolai of FlashCodersNY

This entry was posted in code and tagged , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • Rocket Number 9

    Rocket 9 is the personal and professional online presence of Flash developer and citizen Mike Connor. Cloud Swing, Inc. is our software development shop.