ActionScript 1/2 :: Calling A Batch File From Projector?
Jun 26, 2009
I have been asking a fair number of questions here recently and have been very pleased with the responses, so here is one more for you. Hopefully I can get another solution. :]
I have a flash project acting like a menu and being published as an .exe (projector). In this file, I have a button with the following code:button1.onRelease=function(){fscommand("exec", "openfiles.bat");}
I have an fscommand folder (in the same directory as my flash file) which contains the openfiles.bat, with one line: start myfile.txt
myfile.txt is also located in the fscommand folder. When I simply click on this batch file and run it, the text file opens as it should. However, when I click the button in my flash file, a command prompt window flashes too quickly to see with some sort of error message. It says something about not finding a certain directory and defaulting to the windows directory. I'm assuming it cannot find either my batch file or my text file. I am under the impression that as long as everything is in the fscommand folder it should work properly.
I'm working on a cartoon series in the uk and we use flash, 3d and after effects. I'm building a little pipeline tool to help us compositors do your job (there's hundreds if not thousands of files to be comped for a great number of shows)anyhow, we use flash for the 2d animation and we need to extract pngs. Right now it's a process I can't streamline (ie compers still have to have flash opened to choose which layers to export manually) but I'd like to be able to open flash and launch a specific javascript file ('command')
I know you can run a .bat file through flash , but can you "load" a variable from a text box in flash ( for example a URL ) to a .bat , and then run the batch file ? have an input box in flash , enter a URL , and then , through a batch file , open this URL in multiple browsers.
I created a simple interface for our laptop users to use to call files to change internet settings. Most of the files are batch files but I have one .exe and two registry setting files that change proxy settings. I want buttons that will call each file when clicked. Seems simple but I have been trying to figure this out and I'm getting no where. I'm attaching my flash file. It's a flash cs4 file. Can I not attach the script to each button? For some reason I thought I used to do it this way but when I highlight it it says I cannot attach script to the object.
I have two seperate machines I work on. Is it possible to have a true fullscreen? It was possible in as2, but all examples I've seen on this forum haven't worked. I will not be using an accompanying html file, I will be publishing to exe.
I have this project that requires opening pdf's in acrobat reader that needs to be burned on a CD ROM as a self contained EXE. So I am designing this in flash with buttons that will open pdf's, then I'm exporting this as a swf and importing that into Director and then exporting it as an exe. Why you ask... it seems when I export the flash file as an exe, it needs flash player installed to open the exe. This project needs to be burned on a cd rom and as a stand alone player that will open pdf's in reader.
So my question; Is there an easier way to do this? and How? 2nd, what is the code to open a pdf file from a flash swf/projector in (A.) Acrobat reader or (B.) explorer.
If someone opens up a projector file on a cd, and I have a website open up on a click for example, can this work? Does it open in their default browser?
how to open pdf, swf file in flash 8 projector? i am using exec command which was used earlier in flash 8 but its only working for exe files after keeping the files in folder named fscommand....
I am creating a Flash projector to work on a CD for a client to distribute. There has to be a listing of their PDF's in the flash program, that when clicked, will open the actual PDF in a separate window. I found one comment in this site to use "GetURL", but found out it is ONLY for HTML. There was mention of setting up the FSCommand to open another application, such as a PDF file, but how? I have the files in the same directory and tried putting the file name in the "GetURL" (the PDF file), but just freezes when trying to open. Also, is there a way they can drag and drop the PDF files to the desktop, that has the listings of the PDF's and save to the hard drive?
I'm building a standalone projector which will be run locally without an internet connection. is it possible to be able to write variables to a text file on the computer?
I have a flash projector file (.exe) that I need to add Code Signing to it so it does not say 'Unknown Publisher' in Vista. I read that for CS3 there is no authenticode signing. Was this added in CS4? I just want to check before I go ahead and purchase a 3rd party app like Juggler. Any software to add authenticode signature to a CS4 flash projector file? Jugglor is pretty old (2007) and I would like to know if there are more recent apps to package and sign projector files.
The powers that be have decided a project I'm working on shouldn't go on a website after all, but needs to be on a CD for Windows users instead and of course I only have a couple of days to made the "relevant tweaks" as they call them.It needs to run directly from the CD so I presume AIR isn't a good option.I've got all of it working by publishing to a Windows Projector executable. The bit I'm stuck with is allowing users to click buttons to open various directories which will be on the CD. These are source files for following tutorials from the main part of the CD. I've tried playing around with the various options in the FileReference class (namely browse() and download()), but they seem to be set up for use online only.
im using Flash CS4 slide presentation to make a education CD. In the end of the slides i want to open a pdf file.How can i do it? Is it a east way to do it? I publish the project as a projector file. I tested to use GetURL but the file wont open. I have the pdf-filein the same folder as the projector exe-file.
I'm using the FileReference to download a file (using a relative path). If I test it on the .swf on the browser it works. If I compile a .exe projector the download doesn't works.
I have my swf, and within it is a button, when this button is clicked, would it be possible to load Notepad.exe?I am not looking to turn my swf into a projector file (think this would make it an .exe).If this is not possible from within AS3, are there any libraries anyone knows of which could handle this, or maybe even another solution to getting this done.The main thing is having an swf load a exe, not an exe loading an exe.
I have a Flash projector file which I would like to edit with Resource Hacker. I would simply like to change a few of the menu bar items (see below): Does anyone know if this is legal and will not hinder my ability to freely redistribute the file?
Can I create a "MAC" projector file that can use the shared object commands of the original .fla? It seems the projector does not use the shared object commands on the mac side but does if I create a windows projector. I am looking to create an autorun hybrid (Mac and PC) with shared object functionality.
I`ve been trying to load a swf file in a windows projector file. However, when I preview the project in the swf format it works perfectly, but if I preview it as a windows projector file, nothign happens. It doens`t load the external swf file.[code]...
I know there is a way to make the flash movie play full screen when publishing as a projector? The only method I know of is by adding code to an HTML page, but since this is a projector file that will be played on CD, I'm at loss.
Also, a tad unrelated to the ActionScript forum, but any info on what can be done for the projector file to autorun?
m creating this flash file, and want to launch Firefox (c:/program iles/mozilla/firefox.exe)how the do i create a button and have it link to this?i googled it and realized that i can't call up an exe file through the web....but i got no problem with my final product being a projector file (.exe)i found this code...but for some reason it's not working for me
on (release) { fscommand("exec", "program filesmozilla firefoxfirefox.exe"); }
I have some problem opening a words document via flash projector.Here the code i use
on (release) { getURL("doc/unit1/LP.doc", "_blank"); }
It WORKS prefectly on my computer. Opening up the doc file in words and in the foreground.But i recieve feedback that sometime it doesn't open up in the foreground, and sometime, it open up in Internet explorer instead.
how do i open an WINDOW without tool bar, status bar and scroll bar. from an EXE project...file in which there is a button after pressing that button a window should open with all the above specification......
It is possible through an swf in an html...but through exe file ...its difficult.
Here is the exact error I receive: Error creating Flash projector file. Be sure that Flash is installed correctly and that the destination file is not locked or on a locked drive.I am able to produce an exe but not the app.
I have:
Flash Player 10 debugger version Mac OSX Flash CS3
I'm using Flash MX, AS 2, Projector 6, working on a PC. I saved two versions of my project -- one .exe for Windows and one .hqx for Mac. The .exe works fine when burned onto a CD. When opening the .hqx from a CD on a Mac, I got a message that the file is on a locked volume. I discovered that the reason for this is that an .hqx is essentially a zipped file which has to be extracted, and when a file is extracted, the unzipped files are written onto the same location as the original. When the original files are on a CD, Stuffit (Mac's zip extractor program) can't write onto that location. [So if anyone at Adobe looks at these forum posts, let me say that I think its absolutely ridiculous that the Mac version of Flash's projector files have to be extracted in order to be viewed!]
To get around this problem, I saved the .hqx on my PC, put it on a portable hard drive and brought it over to a Mac (because Stuffit for PC converts it into an .exe for PC), and unzipped it. When I'd test it on the portable hard drive or on a USB drive, the extracted file would work. When I'd bring it back over to the PC and burn a CD with both versions on it, and then test that CD on the Mac, it wouldn't work.
I am trying to make a flash player 10.1 projector file (both .app and .exe) and I am having some issues when I go fullscreen.This was originally a web project, and everything works okay online (or even locally when I click on my .html file). However when I make an .app projector file, and play it, some (not all) of my buttons stop working on fullscreen mode).I seem to be having problems with any buttons that have an alpha Tween (I am using TweenLite/TweenMax) applied to them on the MOUSE_OVER event.Buttons with Blur tweens work in both fullscreen and normal screen mode.