OK...this is off the top of my head, but it should work

This is done through code, but follow me through the process first...

1.) Locate the file you want using the FileIO Xtra
2.) Import it into the cast (either embed or link - your choice)

OK, the code...assume this is attached to a button.

on mouseUp
    objFileIO = new(xtra "fileio") -- Create an instance of FileIO Xtra
    myFileName = displayOpen(objFileIO)

    if myFileName = void then exit -- exit if the cancel button was pressed

    importFileInto member "my sound", myFileName
end

This will embed the file into the cast. If you want the file to be linked,
replace the importFileInto line with

member("my sound").fileName = myFileName



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to