hi,
here is an example from me:
var Body_Memo:NotesRichTextItem = memo.createRichTextItem("Body")
Body_Memo.appendText("…..")
Body_Memo.addNewLine(2);
Body_Memo.appendText("Link:")
//GET THE SERVER NAME TO APPEND IN THE DOC URL
var serverName:NotesName = session.createName(db.getServer());
var strReplace = db;
strReplace = @ReplaceSubstring(strReplace,"\\","/");
//URL Construction using the Universal ID of the document
var url:String = "http://"+serverName.getCommon()+"/"+strReplace+"/"+"xpKOM.xsp?documentId="+@Text(docID) +"&action=editDocument"
Body_Memo.addNewLine();
Body_Memo.appendText(url)
hope it helps you...
Arno