Ask a Question related to Macromedia Director Lingo, Design and Development.
-
billbones webforumsuser@macromedia.com #1
exporting files 2
I export some image cast members to the hard drive of the users maching using SharpImage extra. It does it automatically with no windows explorer to choose a location of the files. These are specified in the command.
Is there a way of finding out what the main drives are on the users machine.
or
Is there a way that I could use something to open the windows explorer and get the user to locate a directory they want to use to store the exported image files (perhaps they could actually save something else like a blank text file????). Once they have located the directory I would need to return the absolute path to that location to use in the command to save the images.
Any help thanks in advance. I'm on a deadline with this one so any help is very welcome. Thanks Bill Glance.
billbones webforumsuser@macromedia.com Guest
-
Exporting Font files
I have recently bought a new computer and re install Illustrator 9, but I am missing a font file that was installed a few years ago in Illustrator.... -
Exporting to PDF, large files
I'm a student and have started using In Design 2.0 in Windows XP to create dome documents for my assignments, which involve a lot of text and images.... -
Problem with Exporting .eps files
A client can't use the .eps-files I send him from Illustrator CS. He can see them but not in the vector form he needs to be able to edit them... -
Exporting/Saving as EPS files
Bloody program!! For some inexplicable reason, Freehand has decided to no longer allow me to save or export graphics as EPS files. It just comes up... -
FH10: exporting pdf files
I have a freehand 10 file. In this file, i used Tahoma font. But when i export this file in pdf format, on the pdf file characters like ò à é... -
johnAq webforumsuser@macromedia.com #2
Re: exporting files 2
You can use one of several xtras to display a file save dialog box
The most common ones are fileio, MUI (included in Director), fileXtra (free, third party) and Buddy API (2 functions free)
These all call up a standard system dialog for the user to select a location & filename path for you to use with your export code
hth
johnAq
----fileIO example code
on saveFile
myFileio = new(xtra "fileio")
saveFileName = myFileio.displaySave("Save File", "untitled")
if saveFileName = "" then
alert "No file name selected"
else
--save file code here
end if
end
johnAq webforumsuser@macromedia.com Guest
-
billbones webforumsuser@macromedia.com #3
Re: exporting files 2
Thanks for that...worked first time.
For anyone else who comes accross the problem heres the full code.
It saves a jpg or other bitmap file to disc using SharpExport Xtra but instead of saving automaticaly to disc where you specify in the hard code it opens a standard windows explorer window and lets the usr choose the location. The benefits of doing it this way are that it is free.
on Save_image_to_disc
myFileio = new(xtra "fileio")
saveFileName = myFileio.displaySave("Save File", "file_name")
tcn = saveFileName.char.count
saveFileName = saveFileName.char[1..(tcn - 4)] --taking off the .txt suffix whcih it will automatically add????!!!!!!
if saveFileName = "" then
alert "No file name selected"
else
xtraInst = new (xtra "SharpExport") -- Creating an Xtra instance:
result = xtraInst.exportJPG (member "Image_member", saveFileName & "_image.jpg", 70) end if
end
billbones webforumsuser@macromedia.com Guest



Reply With Quote

