i want to open pdf file in flash movie area so i have read some queries in this forum regarding this topic but i want to know that HOW I CAN MAKE BATCH FILE (.bat) OF A PDF FILE (.pdf) ????
I NEED IT URGENTLY PLZ SOMEONE HELP ME OUT
Thanxxxx in advance
Regards
Last edited by luckyriz; 07-17-2005 at 04:19 AM.
Reason: there r some spelling mistakes
there all the guys talking that first made the batch file of pdf then call it by
FSCOMMAND
But i dont know how to make Batch file
So Please help me out
regards
fscommand can only be used with flash projector files, and remember, when you use fscommand, the files must be in a folder under the flash projector file called "fscommand", the best wya to do this is not to batch the file but top write a small visual basic file that uses shellexecute to open the pdf, thats how i did it for one of my projects
ok, what you need to do, is for your button, use the code
Code:
on (release) {
fscommand ("exec", "openpdf.exe");
}
then, you need to get yourself a copy of visual basic, and then in that you need to open a new porject, standard exe, double click on the form, which is like the main thing on the screen so it goes to the code, then put this there
Code:
Call Shell("URL OF FILE ON COMPUTER")
End
then on the form options on the right, you need to find form visibility and turn it to false. then export this file as opendpdf.exe and place it in a folder called "FScommand" that is in the same directory as your flash projector file.
your other option is to use a .bat file. to do this you open notepad and type the following:
Code:
@echo off
start pdfname.pdf
exit
then click save as and save it as what ever, say openpdf.bat, and there you have that, place that file in the "FScommand" folder, along with your pdf and the flash projector above that folder, and it will open it. if you use the bat just change your flash button from openpdf.exe to openpdf.bat
Thanx for ur help
the process of batch file is not working i send a file check it.
and the first thing through visual basic i cant understand that r u talking that i need a visual basic software and do all this in that???
or the option of visual basic is in flash also ???
waiting for reply
Regards
this works except....
on(release){
getURL("mypdf.pdf", "_blank");
}
when I click the button, it opens the window that gives the user the opportunity to save, but it opens this 'option' window 3 times when I'm only clicking the button once. Any idea why this is happening??
i want to open pdf file in flash movie area so i have read some queries in this forum regarding this topic but i want to know that HOW I CAN MAKE BATCH FILE (.bat) OF A PDF FILE (.pdf) ????
I NEED IT URGENTLY PLZ SOMEONE HELP ME OUT
Thanxxxx in advance
Regards
Ok.. this is a very common problem that we encountered, in order for you ot open the PDF files in a flash is by creating Link, Here's a good resource that might help you. http://www.flashkit.com/board/showth...ght=protection
May this work out in Flash: on(release){getURL("mypdf.pdf", "_blank");}. But, I insist on Converting PDF to Flash through software way if you don't mind. I recommend a free online converter PDF to Flash Converter, Click "Free convert now" button at this page.
Last edited by MarcosCoon; 11-03-2010 at 04:34 AM.