Need to know how to link a Flex button to a local .bat file

norcalty
norcalty used Ask the Experts™
on
I have a bunch of batch files to control network settings for my traveling users.  I wanted to create an easy to use interface for them to just push buttons when they want to change certain settings.  I have laid it out in Flex 3 Pro with buttons, instructions, etc.

I now want to put functionality on the buttons that essentially links a button to a batch file so it runs when they click it.  I will put the batch files in the same folder as the flex file and just set the page as a favorite in their browser.  

How do I put functionality on a button?  I have used Flash for stuff like this but I don't see the same functionality.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
	<mx:Script>
		<![CDATA[
			private function doClick():void
			{
				trace('click','do something here');
			}
		]]>
	</mx:Script>
	<mx:Button x="33" y="29" label="Button" click="doClick()"/>
</mx:Application>

Open in new window

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial