Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

fscommand in .as with arguments

Avatar of amedio
amedio asked on
Adobe Flash
7 Comments1 Solution1084 ViewsLast Modified:
Hi there....

So here is the deal. I am working with a projector in flash 8, the .exe file. Resides in folder "myproject".
I also have a GO.BAT file under myproject\fscommand with this code:
@echo
c:\i_viewer.exe %1
This exe file is Irfant Viewer. Just a simple viewer to see images. The %1 is the argument of the file I want to see.

Under myproject/images there are lots of images.

I also have a button that runs this actionscript within flash
var filename:String=.........
fscommand("Exec", "GO" add MbChr(9) add filename)

I have also tried "Go.bat " + filename //  "Go.bat_20" + filename..etc etc

nothing seems to work, unless the command is fscommand("Exec","Go.bat"). anything different that this, just does not do anything.

One more thing. The function that calls the button in under myproject/code/source/Functions.As and it is imported to the main fla file.

Any hints?
ASKER CERTIFIED SOLUTION
Avatar of CyanBlue
CyanBlueFlag of United States of America image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 7 Comments.
See Answers