HELP PLEASE using open dialog in dx scripts

I am trying to create an mp3 player alarm clock widget but i dont know how to use an open dialog box in the dx develeper.

I have this: -

desktopx.Object("ObjectName").States("StateName").Sound = system.FileOpenDialog("Wake Up Tune?","","C:\My Music","MP3 Files|*.mp3,0").FileName

and have tried this: -

desktopx.Object("ObjectName").States("StateName").Sound = system.FileOpenDialog("Wake Up Tune?","","C:\My Music","MP3 Files|*.mp3,0")

but both give me this error mesage: -

"Wrong number of arguments or invalid property assignment: 'system.FileOpenDialog'"

any help would be much apreciated
4,296 views 1 replies
Reply #1 Top
Might be a little late but, I don't think you need to use system.FileOpenDialog to set the sound of another object. Just put the full path to the music you want. The state, however, must be renamed if your using a default state. For some reason I couldn't set the sound by script for mouse over, mouse away, etc.

desktopx.Object("ObjectName").States("StateName").sound = "C:\My Music\mysong.mp3"