# Opening external files via flashMX (for an MX interface on CD ROM)

**URL:** <https://forum.kirupa.com/t/opening-external-files-via-flashmx-for-an-mx-interface-on-cd-rom/22044>\
**Category:** Uncategorized\
**Created:** [May 29, 2003, 2:24pm UTC](https://forum.kirupa.com/t/opening-external-files-via-flashmx-for-an-mx-interface-on-cd-rom/22044 "2003-05-29T14:24:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![future\_pilot](https://avatars.discourse-cdn.com/v4/letter/f/a587f6/32.png) [@future\_pilot](https://forum.kirupa.com/u/future_pilot)\
**Post date:** [May 29, 2003, 2:24pm UTC](https://forum.kirupa.com/t/opening-external-files-via-flashmx-for-an-mx-interface-on-cd-rom/22044/1 "2003-05-29T14:24:00Z")

</div>

Hello all, wondering if you can give me a hand;  
I am constructing my portfolio on CD ROM;  
On the ROM I have various formatted files (such as Acrobat, Quicktime and Powerpoint) that I would like to access via my simple Flash MX interface.  
As I can’t pull all of these into my swf, is there any ActionScript for my interface that can let me access these files?  
your help is greatly appreciated  
Cheers,  
future\_pilot

PS - I’m working through Mac OSX, if that makes a profound difference 🙂

---

<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:** [May 29, 2003, 2:51pm UTC](https://forum.kirupa.com/t/opening-external-files-via-flashmx-for-an-mx-interface-on-cd-rom/22044/2 "2003-05-29T14:51:16Z")

</div>

Write a small batch file to open them.

Use the exec command to execute the batch file.

---

<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:** [May 29, 2003, 2:54pm UTC](https://forum.kirupa.com/t/opening-external-files-via-flashmx-for-an-mx-interface-on-cd-rom/22044/3 "2003-05-29T14:54:28Z")

</div>

Use the attached zip file to see what I mean.

You can open that batch file in notepad to see how it works.

Use this AS code on your button

on (release) {  
fscommand (“exec”, “yourbatchfile.bat”);  
}

---

<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:** [May 29, 2003, 2:57pm UTC](https://forum.kirupa.com/t/opening-external-files-via-flashmx-for-an-mx-interface-on-cd-rom/22044/4 "2003-05-29T14:57:16Z")

</div>

opps forgot to attach the .zip file
