A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: how 2 access flash in a dhtml layer?

  1. #1
    Junior Member
    Join Date
    Jun 2000
    Posts
    3

    Wink

    I'm just wondering if anyone has seen code out there to access flash in a dhtml layer. Ive been using the code examples on moock.org which work great but when I'm not having much luck when I try adding the layer reference.

    Thanks.

  2. #2
    Junior Member
    Join Date
    Jun 2000
    Posts
    3

    Let me answer my question

    Sorry if that last post didnt make any sense, I didnt have enough coffee in my system... With that let me answer my question in case anyone wants to know:

    function movieobject(thisLayer,thisMovie) {
    if (navigator.appName.indexOf ("Microsoft") !=-1) return window[thisMovie]
    else return eval('document.'+thisLayer+'.document.embeds["'+thisMovie+'"]');
    }


    This will return the flash plugin object for either netscape or IE. I dont know why the @#$@#$ I have to use the embed array which seems like a hack but its the only way I can get it to work. Let me know if you figure out a different way.

    -Nate

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center