PDA

View Full Version : detect browser



jazzman121
May 21st, 2003, 08:56 AM
can someone please tell me how i can detect what the browser is in flash??? if its netscape i want to set a variable if its IE want to pass set another variable

Stephen
May 21st, 2003, 09:23 AM
you need to use javascript to detect the browser and then pass a parameter into the flash movie based upon what the javascript detects the browser to be. There are posts on here about passing variables into flash from javascript and you can get the browser detection code from loads of places on the web just type in browser detection and javascript into google.

Stephen
May 21st, 2003, 09:38 AM
http://www.macromedia.com/support/flash/ts/documents/java_script_comm.htm#jtfc

Or follow this url