# \[plz help!\] XML menu items calling functions for fscommand woes

**URL:** https://forum.kirupa.com/t/plz-help-xml-menu-items-calling-functions-for-fscommand-woes/269820
**Category:** flash
**Created:** [September 2, 2008, 2:23am UTC](https://forum.kirupa.com/t/plz-help-xml-menu-items-calling-functions-for-fscommand-woes/269820 "2008-09-02T02:23:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gl0tch](https://avatars.discourse-cdn.com/v4/letter/g/51bf81/32.png) [@gl0tch](https://forum.kirupa.com/u/gl0tch)
#### Post date: [September 2, 2008, 2:23am UTC](https://forum.kirupa.com/t/plz-help-xml-menu-items-calling-functions-for-fscommand-woes/269820/1 "2008-09-02T02:23:42Z")

</div>

Hello friends,

I’m building a CDRom based projector/interactive to be loaded on a Windows PC. I’m using an XML driven menu that has several items that are intended to link to (and open) PDFs. Unfortunately, when I test the projector, the PDFs do not open at all.

Here’s my code:

**XML:**

```auto
<item title="Download PDF 1" function = "pdf1()" /></item>

<item title="Download PDF 2" function = "pdf2()" /></item>

<item title="Download PDF 3" function = "pdf3()" /></item>

```

**AS2:**

```auto
stop();
function pdf1(){ 
     fscommand("exec","pdf1.bat");
} 

function pdf2(){ 
     fscommand("exec","pdf2.bat");
} 

function pdf3(){ 
     fscommand("exec","pdf3.bat");
}

```

**.bat:**

```auto
start ../content/pdfs/whatever_PDF_name.pdf

```

Can anyone tell me what I should do to get this to work, or what I am doing wrong? This is a slightly urgent problem that requires my immediate attention. I’m really stuck and frustrated and would appreciate all the help you can lend.

Thank you,

-g
