Fscommand("exec".... substitute???
I feel like ahab chasing moby dick.
I am trying to create a flash projector program that sends
variables to an external program (which is priadoblender-compiled
php)
i thought fscommand("exec", userReg.exe + var1 + var2 + var3
+ var4) would work because of MX2004 let it happen, but I am now
working in flash 8 professional.
I know this doesn't work. I have read up and down.... forums,
blogs, white papers etc.
I am looking for a simple alternative to this problem. I
thought AFsaver might be the solution, but for the love of god, I
can't figure out the syntax and the documentation on afsaver is
slim to none.
is there some program that will allow me to just pass
variables to an external program that will work in flash 8?
the premise is basic.
1) have flash projector call a program , perhaps with
fscommand
2) pass variables to it, (any amount between 1-50 vars) the
speudocode example I have above would be ideal...
I don't know how simple this is to manufacture. but I believe
it would be simple enough to read the program name and parse out
the variables from a single string.
if AFsaver has a way to do this, that would be great too. I
would just need to know the syntax to make it work properly.
try third part tools like SWiSHstudio or Flash Jester or SWF
Studio. Also
look at free ones like the open source screenweaver. If all
you need is to
pass parameters to an exe, then you may not need the more
expensive third
party tools.
Jeckyl
Similar Messages
-
Fscommand "exec" doesn't work in Mac (Flash Player 10.1)
Hi All,
I am trying to launch an external application using fscommand in Mac ('fscommand' works fine on Windows). I have done following things to make it work:
Written an apple script to launch a pdf and saved it as "test.app"
I copied "test.app" to "fscommand" directory. (fscommand is a directory under 'flash projector.app')
Tried to launch the "test.app" using fscommand, as shown below:
fscommand("exec", "test.app");
But, my efforts went in vain. It did not work. I even tried to copy "fscommand" dir to "Flash Debugger Player.app/Contents/MacOS/", but still I can't make it work.
More Info:
Mac version: Mac OS X 10.6.2
Hardware: Intel Core duo 2
Flash Player Version: 10.1 (standalone projector)
Is it something I am missing or is it a bug in Flash Player 10.1? Does anybody could make it work; Please let me know!Praveen,
Im in the same boat. - Im trying to open a mac projector .app from inside another .app by using Fscommand "exec".
After reading this
http://www.morgadinho.org/2007/03/12/launching-an-app-with-fscommand-on-mac-os-x/
have created applescripts with .app extension inside Fscommand folder, but to no avail.
Have heard anything/ had any resolution yet?
james -
Hi everyone ;)
im creating a Flash Projector to use in a interactive cd.
I need to open .doc files
i try this:
on (release) {
fscommand ("exec", "test.doc");
i put the test.doc in a subfolder named fscommand on the root
of the
projector.
i try to put the .doc in the same folder of the projector
nothing happens
anyone knows what im doing wrong?
I use Flash 8
Ps.: Sorry my bad english... i'm from brazil
TksToKa wrote:
> Hi everyone ;)
>
> im creating a Flash Projector to use in a interactive
cd.
> I need to open .doc files
> i try this:
>
> on (release) {
> fscommand ("exec", "test.doc");
> }
>
> i put the test.doc in a subfolder named fscommand on the
root of the
> projector.
> i try to put the .doc in the same folder of the
projector
Unfortunately you can't do that. EXE is for executable type
of files only.
Such as EXE, COM or BAT, not doc, gif, rtf, jpg etc...
You could use BAT file to open it but that's not very neat
solution.
Another way would be with 3rd party tools.
Try Jstart. I have been using Jstart for many years now, very
reliable tool,
here is the url.
http://flashjester.com/?section=tricks_jtools_jstart
JStart will allow you to not only launch a program, but use
parameters to make
the program open files, perform special actions and just
about anything you can
use parameters for. You can also choose to launch files with
their default
associated program.
Another solution is provided by Rick Turoczy, it's pretty old
but it should
still work. Perhaps give it a try.
http://www.flashgeek.com/tutorials/07_launchapp_01.asp
Easy to use tool that allow you to launch basically anything
from the projector.
As long as there is system default application supporting
particle file.
Best Regards
Urami
Beauty is in the eye of the beer holder...
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
Fscommand exec on mac to open pdf works in a cs3 projector file but not in a cs5 projector file
Hi,
I could succesfully open a external pdf with the following command in Flash cs3 on a Mac:
fscommand("exec", "test.app");
test.app (inside an fscommand folder) is an apple script that opens the pdf inside the fscommand folder, to make it work I needed to copy the fscommand folder into the MacOs Folder of the Mac Projector File. The same steps don't seem to work with Flash cs5. I can't downgrade my cs5 project to cs3.
Is this problem a bug in Flash cs5?
Has anyone solved this problem?
Thank you.I had this same issue today - could not get a mac projector, FP 10, built in cs5, to run fscommand("exec", "test.app") no matter what I tried. I also couldn't find any definitive threads via google, so here's everything I know about fscommand("exec") for anyone who's looking.
I wanted to run a custom batch (.bat) file on windows and a custom applescript file on mac. I needed to restart a legacy, cross-platform kiosk application on a click (unfortunately could not use AIR).
On the Mac (Flash CS5) - First off - Flash CS5 on Mac did not work no matter what I tried
I also tried opening up the .app package contents and copying the fscommand folder into that, with no luck.
You have to create the projector in CS4 (I down-saved to CS4 and used my PC running CS4 to publish) and put the "callee" .app in a folder named fscommand alongside the projector.
I used these directions to create an .app of my applescript that restarts my projector: http://soapbox.lafayette.edu/node/517
Here's the applescript I wrote:
tell application "kiosk"
-- kill the "caller" app if running
quit
end tell
set myFile to (path to me)
tell application "Finder"
-- the delay wasn't needed in practice, but might be of help
-- delay 1
open application file "kiosk.app" of container of container of myFile
end tell
Now when I call
fscommand("exec", "restart.app");
on a mac, my kiosk restarts as expected.
For PC peeps, I used this awesomely simple solution on windows (Flash CS4)
http://www.northcode.com/blog.php/2007/08/07/Conquering-FSCommand-EXEC-Part-1-Proxy
I put two files in my fscommand folder (at the same directory level as my projector):
- restart.exe (proxy.exe from above link renamed)
- restart.bat
The .bat file simply has 1 line that starts my projector (in the parent folder):
..\kiosk.exe
I call
fscommand("exec", "restart.exe");
and then have a 1 second timeout to kill the first "caller" projector. I wrapped the function as it didn't seem to work otherwise:
setTimeout(function(){fscommand("quit");}, 1000);
Yes, this means that I have two instances of the kiosk running at the same time for about 1 second.
Apologies if my response was slightly off-topic, but I hope the info helps someone avoid losing a whole evening on a pressing deadline like me! -
Pass parameter with fscommand exec
Hi,
I am writing a text file with batch file and this batch file which is called from fscommand.
I need to pass a parameter from fscommand. Is is possible ?
Following is flash and batch file code.
Flash Source
import flash.events.Event;
bt.addEventListener(MouseEvent.CLICK,save);
function save(e:Event){
fscommand("EXEC","write.bat");
Batch file
ECHO This is my new text1 %1 > "temp.txt"
Thanks ------------------- AmitAs mentioned in one of your other posts you could use FileReference.save(...) this does require user interactive however and Flash Player 10.
Alternatively you could create a userId and save the data in an online database (but obviously this isn't local)
If you are using AIR you could create a local database
Otherwise I don't do not know of a way to achieve what you are after -
FullScreenTakeOver, fullscreen, and fscommand exec
I am not a programmer. I switched to CS3 for flv ease of
skins, but I'm finding AS3 to be extremely difficult to learn.
I have an .fla that I am publishing as a Mac projector and a
Windows projector. It took me 2 days just to learn the new way to
handle simple buttons and now the Mac projector is already acting
up on other simple commands. I haven't even had a chance to test
the Windows .exe because I can't get the Mac version to work. I'm
hoping the problems are the same so I only have to deal with this
once.
I'm at the point where I'm trying to get this to work:
//in first frame
fscommand("fullscreen", "true");
myvideo.fullScreenTakeOver = false;
//in different scene
myButton.addEventListener(MouseEvent.CLICK, openSyllabus);
function openSyllabus(event:MouseEvent) {
fscommand("exec", "syllabus.app");
seems simple enough right?
Here are the problems:
1. fullscreen is not actually fullscreen. It has a menu bar
the top of the window.
2. "myvideo" is an FLVPlayback component. It is contained in
an swf called "video.swf". video.swf is loaded into an mc in my
projectors main timeline called "videoSpot_mc" like this:
teleButton.addEventListener(MouseEvent.CLICK, newvid);
function newvid(event:MouseEvent) {
var loadit = new Loader();
addChild(loadit);
loadit.load(new URLRequest("video.swf"));
videoSpot_mc.addEventListener(MouseEvent.MOUSE_DOWN, newvid);
But when video.swf loads into videoSpot_mc it goes to a black
screen despite having "myvideo.fullScreenTakeOver = false;" in
frame one of the main timeline. I tried it in frame 1 of
"video.swf" timeline, too and it just made the movie freeze. What's
wrong here?
3. fscommand is not opening "syllabus.app" which is a simple
application that in turn opens "syllabus.pdf".
I am working on a Mac OS 10.4.10 publishing from Flash CS3
v.9.0.3 in AS3.
What am I doing wrong??? I really need these answers fast or
I will probably lose this client. Thanks in advance.Thanks, but it needs to be a hybrid cd. If only the windows
version works then its useless.
I got the fullScreenTakeOver = false; to work. I also found
out that if you put
fscommand("fullscreen", "true") in the first frame and then
fscommand("fullscreen", "false") in the second frame and then
fscommand("fullscreen", "true") in the third frame, then the menu
bar will go away like it used to by just putting it in the first
frame.
The fscommand("exec", "myapp.app") never worked. I searched
every forum on the web and found only more people with the same
problem. I ended up switching back to AS2 Flash Player 8 and
created fullscreen video and other effects myself through AS2.
fscommands all worked swell. No issues.
I find Flash 9 and AS3 to be bad product "advancements" and
am happy I used the trial version before paying out the money for a
product with so many flaws and setbacks. -
Hello everybody,
I know similar questions have been many times asked on this forum, and I've read them and tried the diffrent solutions proposed, without attaining my goal.
My goal is to launch a software some_software.exe with an executable projector created with Flash in ActionScript 3.
The software some_software.exe must absolutely be in a sub-subfolder compared to the position of the projector launcher.
I've tried many things I read on this forum and others, like :
fscommand("exec","Products/some_software/some_software.exe")
or
fscommand("exec","./Products/some_software/some_software.exe")
or
fscommand("exec",".//Products/some_software/some_software.exe")
I know very well that it is said in Flash MX CS3's help file that the executable to launch some_software.exe must be in a fscommand folder.
I have tried :
fscommand("exec","Products/some_software/fscommand/some_software.exe")
with no more success.
I have also tried to launch some_software.exe in a sub-sub-folder from a batch file .bat.
During my direct tests while launching the batch file, this one containing :
@ echo off
start Products/some_software/some_software/some_software.exe
exit
The batch file worked fine, even with paths in the subfolders very deep.
But when I launch the .bat file indirectly, with the Flash projector, in which I wrote :
fscommand("exec","batch_file.bat")
the batch file seems to open very briefly the black MS-DOS subscreen, this subscreen disappearing immediately, and some_software.exe was never launched !
Did anyone have the same problem ? Were you able to make it work ?
If it's the case, many thanks by advance if you can show me a solution to my problems, or, even better, if you can propose the sources of your solution compressed in a .zip file !
Many thanks for your help,
Rolandhttp://forums.adobe.com/thread/60643?tstart=0
-
Hi,
Why fscommand exec don't run on Flash CS3 ???
What's the way now to launch an application with the
projection ?
thanks
JPno response of Adobe
just say to be impossible ? -
Fscommand exec foldername with space
Hi,
I'm trying to use fscommand exec with a relative path and the
folder name has a space in it.it 's not working.ANy idea how it'll
work.
fscommand("exec", ".\\folder space\\xyz.exe"); //do not work
fscommand("exec", ".\\folderspace\\xyz.exe"); //works if I
create a folder without space .no response of Adobe
just say to be impossible ? -
[AS] fscommand "exec"
Estoy ejecutando en un botónde flash la siguiente
accion:
on(release){
fscommand("exec","archivo.bat");
Y el archivo.bat (que esta dentro del directorio fscommand)
contiene lo
siguiente:
start subdirectorio\archivo.exe
Pues el problema es que parece que me lo ejecute pues aparece
la ventana de
msdos pero no lo hace.
Que es lo que sucede? Lo he hecho de esta manera para crear
subdirectorios
en la carpeta fscommand para poder ejecutar.
GraciasParece ser que el flash cs3 por seguridad no interpreta bien
las rutas del
bat... en cambio con flash8 va ok... cosas de la
tecnología :-S supongo que
ya aparecerá alguna solución con el cs3 sino mal
vamos.
"Luciano A. Ferrer" <[email protected]>
escribió en el mensaje
news:fcosd6$ov8$[email protected]..
> "Markus" <[email protected]_no_spam> escribió
en el mensaje
> news:fcorhc$nsc$[email protected]..
>> He probado de sacar el start pero entonces no
ejecuta nada... tengo
>> windows 2000
>
>
http://www.google.com.ar/search?q=fscommand+exec+windows+2000
>
> que tengas una buena lectura :)
>
>
>
>> "Luciano A. Ferrer"
<[email protected]> escribió en el mensaje
>> news:fcoql0$msj$[email protected]..
>>> ----- Original Message -----
>>> From: "Markus" <[email protected]_no_spam>
>>> Newsgroups: macromedia.general.espana
>>> Sent: Monday, September 17, 2007 4:18 PM
>>> Subject: [AS] fscommand "exec"
>>>
>>>
>>>> Estoy ejecutando en un botónde flash la
siguiente accion:
>>>> on(release){
>>>> fscommand("exec","archivo.bat");
>>>> }
>>>> Y el archivo.bat (que esta dentro del
directorio fscommand) contiene lo
>>>> siguiente:
>>>> start subdirectorio\archivo.exe
>>>>
>>>> Pues el problema es que parece que me lo
ejecute pues aparece la
>>>> ventana de msdos pero no lo hace.
>>>> Que es lo que sucede? Lo he hecho de esta
manera para crear
>>>> subdirectorios en la carpeta fscommand para
poder ejecutar.
>>>> Gracias
>>>
>>> Probá sacar el start, según tengo
entendido es para windows viejos
>>>
>>>
>>> Por otro lado, alguién sabe cómo
conseguir algo similar a esto pero para
>>> una
>>> MAC?
>>>
>>> Saludos!
>>> Luciano
>>>
>>>
>>
>>
>
> -
Fscommand("exec", "some.exe -nextparametr");
I have this code:
fscommand("exec", "loader.exe");
and i want to have next parametr:
fscommand("exec", "lader.exe -nextparametr");
Is it possible? Please help
PS: sorry, my english is bad (I'm from CZ);Yes its possible using FlashJester JStart
http://jstart.flashjester.com
Look at this example
http://www.flashjester.com/index.php?section=faq&cPath=28_41#176
Regards
FlashJester Support Team
e. - [email protected]
w. -
http://www.flashjester.com
There is a very fine line between "hobby" and
"mental illness." -
Fscommand.exec on linux
Hi All,
Have anyone tried to use fscommand on Linux ? It works fine
on windows, but doesn't work at all on Linux.Hi thelinuxer,
Can you please file a bug with the relevant details?
Thanks,
Swaroop -
Exec fscommand doesn't work ?!
Hi !
By pressing a button in my flash project I have to launch
another application. The .exe file is located in a different
directory, called Vademekum, on the same CD. I somehow cannot find
the right combination for this to happen. Can anybody help. I used
the script below:
on (release) {
fscommand("exec", "Vademekum.exe");
Instead of Vademekum.exe in the second quote I also used
these combinations:
Vademekum/Vademekum.exe
../Vademekum/Vademekum.exe
..\\Vademekum\\Vademekum.exe
..\Vademekum\Vademekum.exe
What am I doing wrong. Thanks in advance. Bfscommand functionality in CS3 has been a problem for quite
some time, yet there isn't much on the forums about it. Here is a
link to another thread that might be interesting:
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15&catid=194&threadid =1264958&highlight_key=y&keyword1=fscommand
I haven't tried the fix at the bottom, but it explains what
happens when CS3 Flash tries to execute fscommand. -
Dear All,
I have problem about fscommand.
I have 3 modules flash in .swf file. first module is menu
frame, program and guide. I create execute file for program.swf and
menu.swf, now I have file flash:
menu.exe
program.exe
guide.exe
File 'program' and 'guide' I save in /fscommand/
I hope can load/exec file "program.exe" from file "menu.exe"
(its work)
and I hope can load/exec file "guide.exe" from file
"program.exe." (it isn't work)
From frame menu (button to execute program) I already create
command for execute file, actionscript 2.0:
fscommand("exec", "program.exe"); its run properly. but when
I load/exec "guide.exe" from program.exe (AS 2.0 :
fscommand("exec", "guide.exe"); ) isn't work, I dont know why.
I have create sub folder and copy paste to
"../fscommand/fscommand/guide.exe. its also not run. looks like
freeze then fail.
I need help about my problems.
thanks a lot
regards
herawanHI
You maybe want to look at this example we did, it may help
you
http://www.flashjester.com/?section=faq&cPath=28_41#202
Regards
FlashJester Support Team
e. - [email protected]
w. - www.flashjester.com
"This has been one of the most impressive and thoroughly
pleasant
experiences of customer support I have ever come across -
astounding!"
Director - hedgeapple -
Fscommand() to open a pdf from cd folder...
hi,
need to open a pdf thats inside a cd:
but this doesn't work!?
on (release)
fscommand("exec", "DOWNLOADS\Elefante.pdf");
the DOWNLOAD folder is on the CD rootIndioDoido wrote:
> hi,
> need to open a pdf thats inside a cd:
> but this doesn't work!?
> on (release)
> {
> fscommand("exec", "DOWNLOADS\Elefante.pdf");
> }
> the DOWNLOAD folder is on the CD root
Wish it was that easy :) First of all, FS command CAN'T refer
to any folder so
the DOWNLOADS concept is out.
All the content has to be store in FSCOMMAND folder, it's
flash security feature.
Secondly, that action does not open anything except
executable file.
That's where the name comes from "EXEC", so you can only use
exe, com, bat etc...
You could use BAT file to open pdf but it will prompt the
ugly DOS window even tho
if you set the ECHOE off, something we can't control, pity
because bat is a easy
solution but not so neat if you make commercial work.
Clean solutions are available only with 3rd party tools.
For many years I have been using Flash Jester tool call
JStart. Works like charm
all the way, no extra pop up DOS windows.
http://flashjester.com/?section=tricks_jtools_jstart
JStart will allow you to not only launch a program, but use
parameters to make the
program open files, perform special actions and just about
anything you can use
parameters for. You can also choose to launch files with
their default associated
program.
Another solution is provided by Rick Turoczy, it's pretty old
but it should still
work. Perhaps give it a try.
http://www.flashgeek.com/tutorials/07_launchapp_01.asp
Easy to use tool that allow you to launch basically anything
from the projector.
As long as there is system default application supporting
particle file.
Best Regards
Urami
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami>
Maybe you are looking for
-
Problem while 're-posting' a cancelle Invoice with Exchange Rate Difference
Hi Gurus, We are facing a problem while re-posting an Invoice with Exchange Rate Difference. I say re-posting because this invoice was previously posted and reversed on the same date. Here is the scenario along with the relevant postings: 1) G/R is p
-
Quantity Tolerance limit for goods receipt
Hello Friends, We are working on the stock transport order scenario, and the steps are as below 1. Stock Transport Order 2. Outbound Delivery 3. Post Goods Issue 4. Inbound Delivery 5. Goods Receipt In our scenario, we were not maintaining any price
-
PP CC 2014.0.1 (WIN) very unstable for unknown reasons
hey folks, running on a: - HP Z820 - 96GB RAM - Nvidia Quadro 6000 - 16TB RAID SAS - windows 7 proffessional since the 14.0.1 update i've noticed that PP is not responding properly. takes ages to load up the media, several crashes for no apparent rea
-
Opening a Archival UNIX Executable file
I am currently using Maverick 10.9.2 . I am trying to open an archive file amd folder. The problem is that when I download the file, it appears as unix executable file and it cannot be opened. I have read in past posts that if the file does not have
-
SAP ECC account in more than 1 sales org replication in SAP C4C
Hi, What would be the best way to replicate SAP ECC accounts in more than 1 sales orgs (different account owners & so) to SAP C4C.. I don't think C4C allows assigning accounts to more than 1 sales orgs due to only one owner. With Regards, Rahul Mukhe