|
|||
|
I have created a Flash Movie that uses
on (release) { getURL("PDFs/Consent Form.pdf", "_blank"); } to open PDFs... problem is that when I imported then export wih SWFKit (2) the links don't work. I use a similar code to open the Acrobat.exe with similar dissapointing results. Can anyone help me please. Deadline looming... Thanx in advance. Yoonka |
|
|||
|
Hi,
If you keep the links the same when importing and exporting with SWFKit 2, SWFKit shouldn't be changing the links as far as I know, it wouldn't do anything to the links. When you export and then run the .exe and click the button that opens "PDFs/Consent Form.pdf"... did you make sure that that folder exists relative to the .exe? E.g. if you build your SWFKit project here: C:\windows\desktop\swfkit stuff\untitled project\Your_EXE_here.exe Then have you made sure that the PDFs folder exists here: C:\windows\desktop\swfkit stuff\untitled project\PDFs\ As you can see the PDF folder should be relative to the exe, it is looking for it there, and the file in there. It could be as simple as that. If not, I suggest changing the geturl to: Code:
on (release) {
getURL("C:\windows\desktop\swfkit stuff\untitled project\PDFs\Consent Form.pdf", "_blank");
}
By the way, don't forget to change the "C:\windows\desktop\swfkit stuff\untitled project\" to your actual folder holding the SWFKit exported .exeAnd by the way, a suggestion, change the "Consent Form.pdf" to "Consent_Form.pdf", spaces might also cause problems sometimes, so change them to underscores. ![]() Good luck with your product, hope you meet your deadline |
|
|||
|
I like the idea of "initialize" script but am not sure what to include in the brackets! Sorry if I appear to be a bit of a dunce! Still learning SWFkit... tried
Code:
on (release) {
Shell.open("Adobe_Acrobat/rp505enu.exe");
}
Cheers - Yoonka |
|
|||
|
ok - well it works fine for opening pdfs but the code:
Code:
Application.setBasePath(); Thanx Yoonka. |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|