On 11/28/05, Jeff <[EMAIL PROTECTED]> wrote: > I'm have trouble finding a good cross-browser script that gets a > reference to a flash movie object. > > Here's what I have right now: > > function thisMovie(movieName) { > > if (typeof(window.document[movieName]) != 'undefined') { > return window.document[movieName]; > } else if (typeof(document.getElementById(movieName)) != > 'undefined') { > return document.getElementById(movieName); > } else if (typeof(window[movieName]) != 'undefined') { > return window[movieName]; > } > } >
What problems are you having with this script exactly? What browsers/platforms doesn't it work on? -David R _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders