This content has been marked as final. Show 6 replies
on mouseUp me
CDAudioDrive = ""
cdAppPath = ""
WMPath = "c:\program files\Windows Media Player\wmplayer.exe"
if baFileExists(WMPath) then
cdAppPath = QUOTE & WMPath & QUOTE & " " & "/Device:AudioCD"
cdAppPath = baReadRegString( "AudioCD\Shell\Play\Command\", "", "Error", "HKEY_CLASSES_ROOT" )
Thank you KRMult; I've been trying to use this script but it doesn't works. I'm not a director expert (obviously) and I'm just using it to publish my flash movie on the data session of my e-CD, so I'm not familiar with lingo.
I looked for the global CDAudioDrive and cdAppPath functions but I don't know what to do with those (no topics on the help with that syntax). And the script you wrote stops on the "if baFileExists" part in the debugger.
Can you please be specific about what should I do and how to use this script (and maybe where can I read about CDAudioDrive and cdAppPath).
I'm using this script, which opens media player, but I don't know if it will really work or what kind of error will I get:
on mouseUp me
open("C:\Program Files\Windows Media Player\wmplayer.exe")
That script will work perfectly as long as the person playing the
program has wmplayer.exe in that exact path that you specified. If the
person, like myself, does not have Windows installed on the c:\ drive (I
have it on the d:\ drive), then there will probably be no error and
Media Player will not launch.
how can I fix that ? Actually I tried this script in my projector and the audio session doesn't play: I have to manually open my CD drive. So, the only thing I've accomplish with that script is to open wmp on a specific path ! any way to open the .cda files from the same drive the projector is in ?
You will need to use an xtra like BuddyAPI. With that, you can use the
command baOpenFile which will automatically open any file with the
program that it is associated with. If your computer has the .cda file
type associated with Windows Media Player, then this command will open
an audio file in the same folder as the Director movie: