Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-12-2004, 12:39 PM
Junior Member
 
Join Date: Apr 2004
Posts: 8
Default Opening Pdfs

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
Reply With Quote
  #2 (permalink)  
Old 04-12-2004, 07:09 PM
Member
 
Join Date: Jan 2003
Posts: 56
Default Re:Opening Pdfs

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");
}
And basically test to make sure the link works, it's all in troubleshooting my friend. By the way, don't forget to change the "C:\windows\desktop\swfkit stuff\untitled project\" to your actual folder holding the SWFKit exported .exe

And 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
Reply With Quote
  #3 (permalink)  
Old 04-13-2004, 03:23 AM
Member
 
Join Date: Mar 2004
Posts: 44
Send a message via ICQ to anhedonic Send a message via MSN to anhedonic
Default Re:Opening Pdfs

check out the Shell object or maybe exec FSCommand
Reply With Quote
  #4 (permalink)  
Old 04-13-2004, 03:50 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Opening Pdfs

Thanks Adan, you're right.
An easier way to resolve the problem is to insert the following code into the "initialize" script
Code:
Application.setBasePath();
Reply With Quote
  #5 (permalink)  
Old 04-13-2004, 10:09 AM
Junior Member
 
Join Date: Apr 2004
Posts: 8
Default Re:Opening Pdfs

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");
}
to no avail - am I doing something really dumb?

Cheers - Yoonka
Reply With Quote
  #6 (permalink)  
Old 04-13-2004, 04:16 PM
Junior Member
 
Join Date: Apr 2004
Posts: 8
Default Re:Opening Pdfs

Thanx fellas - topcmm trick worked as soon as I figured where to put my script. Done b4 dealine!! ;D
Reply With Quote
  #7 (permalink)  
Old 04-13-2004, 06:02 PM
Junior Member
 
Join Date: Apr 2004
Posts: 8
Default Re:Opening Pdfs

ok - well it works fine for opening pdfs but the code:
Code:
Application.setBasePath();
seems to nulify my loadmovie actions on my Flash file... I really need to pack my movies (videox10) both for protection and to enable it to play the videos straight away... any ideas around that one?

Thanx

Yoonka.
Reply With Quote
  #8 (permalink)  
Old 04-13-2004, 06:22 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Opening Pdfs

You can add the movies and pdf files into the attachment list, then check the "pack attached files" option. In the "initialize" script, insert the code
Code:
Application.setBasePath("attachments");
Reply With Quote
  #9 (permalink)  
Old 04-13-2004, 06:33 PM
Junior Member
 
Join Date: Apr 2004
Posts: 8
Default Re:Opening Pdfs

Thx - still doesnt seem to work - do I attatch the movies to the Application setor or the Windows one, do I need to create a folder?? Either way still doesnt seem to work for me...

Thanx

Yoonka
Reply With Quote
  #10 (permalink)  
Old 04-13-2004, 06:42 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Opening Pdfs

Please send us a sample, we will show you how to make it work.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:01 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.