PDA

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. :)

oka_
03-15-2005, 07:29 PM
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