# FS command

**URL:** <https://forum.kirupa.com/t/fs-command/16592>\
**Category:** flash\
**Created:** [March 26, 2003, 4:26pm UTC](https://forum.kirupa.com/t/fs-command/16592 "2003-03-26T16:26:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![olvado](https://avatars.discourse-cdn.com/v4/letter/o/eb8c5e/32.png) [@olvado](https://forum.kirupa.com/u/olvado)\
**Post date:** [March 26, 2003, 4:26pm UTC](https://forum.kirupa.com/t/fs-command/16592/1 "2003-03-26T16:26:07Z")

</div>

Does anyone know how to call upon Javascript functions from Flash using FS comand, here’s an example of it in action though I’m not looking to do anything quite as elaborate, I simply want to instruct the browser window that’s holding the flash file to close at a predetermined point on the timeline.

---

<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:** [March 26, 2003, 4:28pm UTC](https://forum.kirupa.com/t/fs-command/16592/2 "2003-03-26T16:28:23Z")

</div>

using getURL is easier and doesnt require the javascript code base to function

on(release){  
getURL(“java\*\*script:self.close();”)  
}

or any other javascript command.

---

<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:** [March 27, 2003, 11:17am UTC](https://forum.kirupa.com/t/fs-command/16592/3 "2003-03-27T11:17:15Z")

</div>

Worked a treat, I can’t believe I was attempting it the hard way without even trying the simply!

Thanks
