Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

linking to files from director

Status
Not open for further replies.

Cfunk69

Technical User
Mar 6, 2002
1
GB
I am having trouble linking to files from director movies. I can link to http ok using goToNetPage, but how do I link to a local file without specifying it's absolute filename?

I want to link to a file on a CD-ROM using a relative filename so that it doesn't matter which drive letter the user has it will always locate the file.

Thanks :)
 
Use the character @, which refers relatively to the dir that the projector is currently running. For instance, you want to access a file Y in a folder called Z. Your projector is on the CD rom root. Use open "@/Z/Y.dir"
 
archerofloaf:

Great information you provided, but where exactly does that code go? I am also creating a dual platform CD-ROM and simply need a projector file to find one Quicktime movie on the correct drive path on both PC & MAC when the user clicks a button. Right now it works great on my PC harddrive, but I will be using Nero burning software to create the Cd-ROM. Any help you can provide would be great.

Thanks!

Al
 
First, you need to write that code on the behavoir of the button that the user clicks.

For instance, if you have your projector on the root of your CD-rom and a folder called quickTime movies on the root level with a QuickTime file in it called thisMovie.mov, this is what you would want to use to open the file:

on mouseDown
open "@/quickTime movies/thisMovie.mov"
end
(although, I believe this code is incomplete to actually open the file outside, I just use this as an example, I was not sure what you meant by the projector finding the file. This i think should be enough to answer your question.)

The @ refers to the projector itself, so if its on the CD-ROM's root level then having
both your MAC and PC projectors are on the root, the code can be the same in both .dir movies and if refers to the same file.

Hope this helps you out.
 
Thanks! That answered it.

I also want to include a URL link to a great tutorial I found out there for Creating Hybrid CDs. Hope it helps:



Also, other software I found that I have yet to test is an application by the name of MacImage. MacImage is a utility to produce Macintosh hybrid (HFS/ISO 9660) CD-ROMs from your PC:


Good luck with everything!

Al
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top