This content has been marked as final. Show 5 replies
As far as getting the dialog box to choose the file, you could use an
xtra like BuddyAPI
It has a command baGetFilename() that will give you the dialog box and
let the user choose a file.
Once you have the filename that you want, you can make a new #bitmap
member and set the filename of it to the new one. If you want the file
to be imported into the cast instead of linked, you would then make
another bitmap and copy the image of the linked one into it.
Here is the basics. You will need to adjust things to work however you
want them to. You may want to copy the .image into another member.
newFile= baGetFilename( "open", the moviePath, "", "", 0, "Choose a
file", false, -1, -1 )
There are other xtras that can do it as well. DirectImage may be easier
with it's imageLoadFromFile() and imageSaveToMember() methods.
Thanks for the reply much appreciated. The only way to do this is to add in an xtra to director there is no built-in method?
There is no "built-in" method, though you can use the FileIO xtra and
its displayOpen() method, though Buddy API offers far more control.
FileIO Xtra is practically 'built in'. You can use it to get a filePath like this:
filePath =(xtra("FileIO").new()).DisplaySave("Save", "foo.txt")
FileXtra4 gives you the best of both worlds; it's completely free and it's more feature rich like buddyAPI.
the documentation is pretty clear on how to use the xtra and it's methods.