HELP PLEASE using open dialog in dx scripts

Saturday, March 18, 2006 by SaiyanKing | Discussion: DesktopX Development

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
sViz
Reply #1 Thursday, November 9, 2006 3:38 PM
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"

Please login to comment and/or vote for this skin.

Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:

  • Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
  • Access to a great community, with a massive database of many, many areas of interest.
  • Access to contests & subscription offers like exclusive emails.
  • It's simple, and FREE!



web-wc01