View Full Version : open a folder and close the projector
fleedoggy
03-15-2005, 07:14 PM
Probably a stupid question, but asking anyways.
I am making a flash ad to put on a disc and hand out to customers at my place of employment. It has the ad, and the whole time the ads going it obviously has a "skip intro" button. I was wondering if there is a way for the button to close the entire flash movie and open a different folder on the disc. So basically when they hit the "skip intro" button the movies gone and the, lets call it "Menus", folder is open and the customer is looking at the files inside the "Menus" folder. Any help would be greatly apriciated.
Thanks,
Oh and uh . . . if anyone could tell me maybe how to make the flash movie auto execute from the disc when the disc is put into the cd-rom drive . . . assuming autoplay is on. :)
Hey, to do this you should export your flash movie as a Windows Projector exe to go on the CD.
You can close the projector using the command
fscommand("quit");
but before you do that you'll want to open the folder from the cd.
I don't know the best way to do this, but you can probably create a batch file and run that from flash before you close it. Try googling around about opening folders from a batch file.
To autorun the flash movie, create a file called AUTORUN.INF and place it on the base directory of your CD. Just make a text file and enter into it:
[autorun]
open=YourFlashProjector.exe
Icon=your_icon.ico //this is optional
Name=The Title of your Movie //this is optional
then rename it to AUTORUN.INF.
-oka
fleedoggy
03-15-2005, 09:16 PM
thank you! worked like charm with the projector :D
fleedoggy
03-16-2005, 12:32 AM
I have a flash ad that I turned into a windows projector file on a cd with an autorun.inf file to make it autoexecute when the disc is put in the cd-rom. I turned it into a windows projector so I could use the fscommand("quit") function so that the "skip intro" button would close down the movie.
Simple:
on(release){
fscommand("quit");
}
Now the problem I am facing is that I cannot figure out what I need to put into that "skip intro" button that will work with the fscommand function that will not only close the windows projector, but open a folder on that same disc.
I/E:
click the "skip intro" button and now the movie is closed and I am looking at folder "d:/menus/"
any help would be greatly appriciated . . thank you for looking.
-Jerry
esplin9466
06-29-2009, 08:59 PM
You might be able to use the following code to open the folder:
on (release){
fscommand("exec", "explorer D:\Menus");
fscommand("quit");
}
However, the quit functions didn't work for me and I didn't test the folder opener. :)
esplin9466
06-29-2009, 11:18 PM
If you run a batch file from a drive, it usually will start the command prompt in that drive, fortunately. If you run the following program, the Flash projector will run, and then the folder will open.
FlashIntro.exe
explorer Folder
After FlashIntro.exe finishes, the command prompt will open Windows Explorer with the folder called Folder. You now can modify the autorun file to run the batch program. :o
[autorun]
open=autorun.bat
Icon=FlashIntro.exe, 0
Name=This text here will appear on the right click menu.
northcode
06-30-2009, 02:32 AM
This will open explorer to the root of the drive the EXE is launched from (AS2 obviously). From This you should be able to figure out how to open any folder on the CD ;)
var drv = _url.substr(8,1);
getURL(drv+":"):
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.