Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 02-25-2004, 07:51 AM   #1
exwyzee
Registered User
 
Join Date: Feb 2004
Location: Blightly
Posts: 3
Post Newbie question - opening PDF's on CD-Rom

Hi all

I'm having trouble opening PDF files from CD-Rom. At the minute I have a Flash file presentation, that when run, works and opens the desired PDF files (from HD)

However, when I come to embed this Flash file in HTML (I launch this HTML file via autorun), the PDF files won't open.

I'm a bit of a numtpy when it comes to coding (but I'm learning ), this is how it's set at the mo:

on (press) {
getURL("../PDF/the_basics/Enforcement.pdf");
}


Is there a code for '_root' or path name for CD-Rom searching? You know, a bit of code that will always look on the CD-Rom? I dunno, is it summit like ../folder/pdf/myfile.pdf or do the slashes need to be '..\name\etc.pdf?

Please 'elp!!
exwyzee is offline   Reply With Quote
Old 02-25-2004, 10:18 AM   #2
Ruben
Me
 
Ruben's Avatar
 
Join Date: Jul 2002
Location: Netherlands, Europe
Posts: 3,512
Send a message via MSN to Ruben Send a message via Skype™ to Ruben
Default

Well, the first this I would do is try exporting the fla to a exe instead of an swf and open the exe with the autorun-thing, it might work.

If it doesn't you might wanna try to set the absolute path-name instead of the relative [so "D:/somefolder/somemovie.swf" instead of "somemovie.swf"].

Tell me if it works...

In fact: tell me if it doesn't

Good luck - Ruben
__________________
.
Originally Posted by MichaelxxOA
"He sounded like he knew which words he was going to use before he knew what he was going to say. I hate that shit."
Ruben is offline   Reply With Quote
Old 02-25-2004, 03:48 PM   #3
exwyzee
Registered User
 
Join Date: Feb 2004
Location: Blightly
Posts: 3
Default

Cheers Ruben

I'll give that a go when I'm nearer the completion time. At the mo, I'm concentrat'n on getting the hierarchy in place - big chunk 'O work I'll tell ya. I've got a 'test CD-Rom day' next week, so I'll keep all results posted here. Cheers anyway dude!

Lee
exwyzee is offline   Reply With Quote
Old 02-26-2004, 03:41 AM   #4
Ruben
Me
 
Ruben's Avatar
 
Join Date: Jul 2002
Location: Netherlands, Europe
Posts: 3,512
Send a message via MSN to Ruben Send a message via Skype™ to Ruben
Default

Good luck with the cd, I'll keep on reading

- Ruben
__________________
.
Originally Posted by MichaelxxOA
"He sounded like he knew which words he was going to use before he knew what he was going to say. I hate that shit."
Ruben is offline   Reply With Quote
Old 02-26-2004, 08:15 AM   #5
exwyzee
Registered User
 
Join Date: Feb 2004
Location: Blightly
Posts: 3
Default

Hi All

Well, this little issue, not being able to open PDF files via CD-Rom was bugging me 2day, so, you'll be glad to here, I've been doin some R+D today.

RESULTS!!! (o-yeah-baby)

On mah presentation, I have 7 or 8 sub-topics which in turn open pdf files, so I decided to give each sub-topic a different path & I've found either of these 2 work:
on (press) {
getURL("./PDF/the_basics/Demolition.pdf");
}


or...
on (press) {
getURL("PDF/the_basics/Enforcement.pdf");
}


Just in case, I tried my autorun CD-Rom on 2 other PC's (eliminating the possibility of accessing the PDF's on mah HD)
& it worked. BUT!!! I had to make my .swf file into an .exe as it wasn't working as an .swf file. Schweet...

Last edited by exwyzee; 02-26-2004 at 08:20 AM.
exwyzee is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off

Forum Jump


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

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.