Code:
audioFile = Dialog.FileBrowse(true, "Open File", _DesktopFolder, "Audio Files (.ogg, .wav, .aif, .aiff, .raw )|*.ogg;*.wav;*.aif;*.aiff;*.raw;*.mp3;*.mp4;|", "", "", false, true); if (audioFile[1] ~= "CANCEL") then Audio.Load(CHANNEL_BACKGROUND, audioFile[1], true, false); end sPath = Audio.GetFilename(CHANNEL_BACKGROUND); tParts = String.SplitPath(sPath); Label.SetText("Label15", tParts.Filename .. tParts.Extension);
Comment