When using Buddy to launch external files, I've always used a 3 step approach.
First, find the user's doc viewer with: App = baFindApp("doc") Then, string the app path and the doc path together, converting the paths to short file names: myFile = the moviePath & "myworddocument.doc" appFile = baShortFileName(App) && baShortFileName(myFile) Then, open the file in the correct app: baRunProgram(appFile, "normal", false) Error checking at each step, of course. I've used this method with pdf, xls, wmv, doc, and ppt successfully. Should work with any windows file type. Bob > Hi Bassam, > > I don't have my Director documentation in front of me at the > moment, but I believe it's this: > Result = baOpenFile(fullPathToFile, "Normal") > -- returns a numeric value of whether or not it worked. > > That line of code needs the *full* path to the file name, and > it opens the app based on the associated file extension. The > "Normal" opens the app how it's normally opened, i.e., > minimized, maximized. > > It should be working, can you post the line of code? > > - MM > > Hi Mendelson > I download Buddy API but I'm not able to open word file from > director I can open txt file by baOpenFile() can you tyell me > to open word file or excel from director using Buddy API. > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders