Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Enthusiast Zone > Art & Graphic Design > Flash and CD Files

Flash and CD Files
Thread Tools
Junior Member
Join Date: Nov 2002
Status: Offline
Reply With Quote
Oct 21, 2003, 09:47 AM
 
Hi, I am trying to produce a CD with a load of PDF's on it and a Flash movie which is used to load these PDF's off the CD and into a Web Browser

I am using the getURL action in Flash but was wondering about how I would go about specifying the location of the PDF's because I don't want to hardcode the CD drive location for example:

getUrl("file:///E:/.....")

because then if someone had 2 hard drives the flash movie wouldn't load the PDFs.

Please help,
Wayne
     
Forum Regular
Join Date: Aug 2000
Location: Cali
Status: Offline
Reply With Quote
Oct 21, 2003, 02:20 PM
 
sounds like something someone might know in the Web Development forum.
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Oct 21, 2003, 02:29 PM
 
you don't need to specify the drive. you can just target the file the same as you would any other file.

it's been a while since i did this, but i seem to recall some weirdness when the cd was for a pc. check www.flashkit.com for more info; i know there's some on there somewhere
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
Forum Regular
Join Date: Aug 2003
Location: Honolulu, HI
Status: Offline
Reply With Quote
Oct 21, 2003, 04:17 PM
 
I believe you could use a relative URL tag and not an absolute tag.

Just like HTML.

Dont Do this:
getUrl("file://E:/pdfs/page1.pdf")
(because you don't know if other people will already have a E drive designated for the CD-ROM [obviously, you already know])

Do this:
getUrl("file://pdfs/page1.pdf")
Remove the E: and be sure everything works in Dreamweaver using Link Checker or make sure everything is in the same native folder.

It's a bit difficult to explain, but there are 2 ways to specify a file location: Absolute and Relative.

They act the way they sound, an Absolute File Location specifys the exact location (E:/pdfs/page1.pdf) <--- This file is located only on the E drive in the folder pdfs.

A relative file location assumes the file your looking for exists within the same folder. (pdfs/page1.pdf) <--- Without the E:// the computer (Mac/PC) assumes that the pdfs folder is nearby (within the same directory) and it doesn't matter what letter the drive is.

Hope this helps.
     
   
Thread Tools
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -5. The time now is 01:35 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2