I am trying to add script to an image (q1a1f.jpg) using the message box and can't figure out where I am messing up. The first quote below is in theory what the script should look like for the image (q1a1f.jpg). The second quote below is what I am typing into the message box to get to the script in quote 1 (but it's not working) . I am getting this error "Script compile error: Error description: Expression: double binary operator"
global gPath
on mouseUp
set the PlayLoudness to 100
if the environment <> "mobile" then
put "aq1ctest.wav" into tSndPath
play tSndPath
else
put specialFolderPath("engine") into gPath
play audioClip (gPath &"/Audio/aq1ctest.wav")
end if
end mouseUp
Any help would be great!set the script of image "q1a1f.jpg" to “global gPath” & CR & “on mouseUp” & CR & “set the PlayLoudness to 100” & CR & “if the environment <> & quote & "mobile" & quote & then” & CR & “put & quote & "aq1ctest.wav" & quote & into tSndPath” & CR & “play tSndPath” & CR & “else” & CR & “put specialFolderPath(& quote & "engine" & quote &) into gPath” & CR & “play audioClip (gPath & & quote & "/Audio/aq1ctest.wav" & quote &) & CR & “end if” & CR & “end mouseUp”;
thanks!