-
targeting a PDF using a button in Flash?
Hi,
I'm designing a small (simple) interface for a CDROM in Flash. I've added a number of buttons which I want to target some PDFs on the same CD. My question is: how do I do this? I've tried using the action script of load URL with little success. Any pointers?
Kind regards
Darren Shore
-
Registered User
hi,
Welcome to FlashKit.
You have two options:
using getURL(), which is the quick way:
code:
getURL("FSCOMMAND/myPDF.pdf"); // the .pdf is inside a folder called FSCOMMAND
but this may open the browser first, and load the .pdf in the browser.
or using Northcode's proxy, to open a .pdf file, which is probably the best way.
-
i think this is the only way
some days before i have this problem too. but now i have solution.
first of all make batch file of any pdf or word doc file.
ENTER this code in notepad:
@ECHO OFF
filename.extension
EXIT
OR
start filename.extension
then save as mypdf.bat
here filename is ur pdf or word document file name and there extension e.g one.pdf or one.doc
now place this file with pdf or word doc file in folder named "fscommand"
in flash write a code on button
on (release){
fscommand ("exec","mypdf.bat");
}
and make projector file (.exe) of this flash movie
now remember both ur fscommand folder and ur projector are on same place.
run the projector and click on button
then u will see that u r successful
for further detail see this link
http://www.flashkit.com/board/showth...3&page=3&pp=20
in this page i have attached a example file.
-
Registered User
luckyriz,
As far as I can remember that solution opens an ugly DOS prompt, at least on windows xp, that's why Northcode's proxy is much better.
Once again, I can't remember whether it even works on MAC or not....
-
But when u use
start filename.pdf
then dos box will open for a moment only
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|