Where the "smile" pros at?

Hi i was wondering if someone can help. I wrote an apple script…

set username to the second word of (characters (offset of “Users” in path to ¬
preferences as string) through (length of (path to preferences as string)) of ¬
(path to preferences as string) as string)
set workgroup to “domain”
set temp to display dialog “Please enter your password” default answer""
set passwd to text returned of temp
tell application “Finder”
mount volume “smb://” & workgroup & “;” & username & “:” & passwd & “@” & “server_dns_name_here/” & username & “$”
end tell

This script works perfectly. Only one problem, when the user enters password on the screen, everyone can see it.
Now the problem is i can’t figure out how to get smile to execute commands threw its “Dialog box” feature. I can’t even get it to execute something simple like if a set an “OK” button to this script

tell application “Finder”
beep
end tell

any help would be greatly appreciated