Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-21-2006, 03:06 PM
Junior Member
 
Join Date: Feb 2006
Posts: 1
Default Please Help about FFish script

Hello,

I am a flash designer, I don't know a lot about programmation.
I need Help about to execute a .BAT file. And using the FFish script to hide this .bat executed window.

I read the documentation, an triad so many times with FFish script... and it is not working, may be I did something wrong. Anyhow I need help.

The task is the following:
-in flash I made a button with the action:

on (release) {
fscommand("Exec", "files\\exechtml.bat");}


An this works. But, I need to hide this exechtml.bat window when it's executing, I don't want to see this window. So I used FFish script.
The FFish script is not working, and I read the documentation. So I made the following:

I put on the button in flash:
on (release) {
fscommand("Exec", "Shell.run(files\\exechtml.bat[, 0])");}


Schow_flags Value [, 0] for to Hide the window...

And wehn I publish to swf, than to exe with SWFkit express 2.2 r2,
an wehn I click on the button, nothing happends, It is not working.
Why? ???

Please If somebody can help me? about this "FFish script" to hide the exechtml.bat window when it is executing.
Or provide me an example, so I can fix this...

This would be very grateful.

Bob
Reply With Quote
  #2 (permalink)  
Old 02-22-2006, 11:53 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Please Help about FFish script

Where is the .bat file?
If in the same folder of the exe file, please try
Code:
on (release) {
fscommand("ffish_eval", 
"Shell.run('\"' + getAppDir() + 'files\\exechtml.bat\", 0');");
}
or if it is in the attachment list, please try
Code:
on (release) {
fscommand("ffish_eval", 
"Shell.run('\"' + getAdditionalFile('files\\exechtml.bat') + '\", 0');");
}
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:15 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.