October 24, 200718 yr Newbies Hello. I'm an absolute newbie to scriptwriting but I need to fix one problem with a database. It's a search db for a sound effects library. when one finds what he wants in it and clicks on the track he found the track is being played in media player. The problem is that it only plays .wav files. I need to make it play .mp3 as well. So I found this script in my .fm7 file (it's OPEN URL category in Edit Script window) GetAsText ( Hollywood_Edge_SFX_Win::Path to soundfiles ) & "/" & GetAsText ( Hollywood_Edge_SFX_Win::Set Code ) & "/" & GetAsText ( Hollywood_Edge_SFX_Win::Disc ) & "/" & GetAsText ( Hollywood_Edge_SFX_Win::Disc ) & "-" & GetAsText ( Hollywood_Edge_SFX_Win::Track ) & ".wav" Is it possible to edit it so that it would play .mp3 as well as .wav? Thanks very much in advance. Eugene. Edited October 25, 200718 yr by Guest
October 25, 200718 yr Author Newbies Yes, I have. But in that case it only plays .mp3. I need to be able to play both .wav and .mp3 file types. I think some line has to be added to the script but I have no idea what it should be. Please help someone! Thanks. Edited October 25, 200718 yr by Guest
October 25, 200718 yr If you know the file is an mp3 or wav, just use 2 scripts or a if in one script. One for mp3, one for wav. Shawn
October 25, 200718 yr Author Newbies Thanks for the tip, Shawn! You see, the problem is that I've no idea how to do scripts, really. I tried duplicating it and changed .wav to .mp3 in the clone script but it didn't work. I'll try your advice of course but I'm not sure I'll do it right. I need an example, please! If someone could edit the script I posted that'd be awesome. Cheers. PS. there are some unwanted spaces appeared in the script after I posted it to the forum like here: P ath to soundfiles. There should't be any spaces.
Create an account or sign in to comment