# Flash us all

**URL:** <https://forum.kirupa.com/t/flash-us-all/25267>\
**Category:** flash\
**Created:** [July 11, 2003, 12:49am UTC](https://forum.kirupa.com/t/flash-us-all/25267 "2003-07-11T00:49:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gutterbids](https://avatars.discourse-cdn.com/v4/letter/g/4491bb/32.png) [@gutterbids](https://forum.kirupa.com/u/gutterbids)\
**Post date:** [July 11, 2003, 12:49am UTC](https://forum.kirupa.com/t/flash-us-all/25267/1 "2003-07-11T00:49:57Z")

</div>

I have been trying to add the script to see if a user has flash installed, and if they do not they are sent to a different page, but the problem is that the I am using a perl script that calls the header of the page to be printed;

I want to add a section to the script but since its java, it will not allow the perl script to work… Here is what I wan to add,

```auto

if ( MM_FlashCanPlay ) {
window.location.replace("print $config{'header'}";);
} else{
window.location.replace("print $config{'header2'}";);
}

```

The original that javascript that tells which page to go to is attached since the forum would not allow me to add it here, unless I did something wrong with that.

ANY help from the FLASH people would be appeciated on this…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 12, 2003, 2:14pm UTC](https://forum.kirupa.com/t/flash-us-all/25267/2 "2003-07-12T14:14:05Z")

</div>

Dont tell me that no one here has a answer to this?

Anyone…:!:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 12, 2003, 3:44pm UTC](https://forum.kirupa.com/t/flash-us-all/25267/3 "2003-07-12T15:44:41Z")

</div>

you’re trying to add Perl to a Javascript function? You can’t do that…

[http://www.kirupa.com/developer/mx/detection.htm](http://www.kirupa.com/developer/mx/detection.htm)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 13, 2003, 12:24am UTC](https://forum.kirupa.com/t/flash-us-all/25267/4 "2003-07-13T00:24:39Z")

</div>

Yes I understand that, i was hoping there could be a perl solution… Without it the java entry is really useless as far as detection.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 13, 2003, 5:59am UTC](https://forum.kirupa.com/t/flash-us-all/25267/5 "2003-07-13T05:59:06Z")

</div>

well you need to use a language that is Client-side (javascript) so that the script can read the user’s files and get information about which version of the Flash plug is installed. A server-side script (like perl) can’t do that because it is executed on the server…
