i hope i´m able to explain my little problem...
I´m still developing a "little" project under win and mac os... it works fine under both os but not the progress bar which i use while playing wav-files.
Code: Select all
on mousedown
if g_soundarray[g_sel_groupID_short]["antwort"]<>"" then //this checks if there is a wav existing
set the filename of player "p1" to g_soundarray[g_sel_groupID_short]["antwort"] //puts the path into the player
put ((the duration of player "p1"/the timeScale of player "p1")*100) into SpieldauerInSekunden
set the endValue of scrollbar "Zeit_bar1" to SpieldauerInSekunden
put SpieldauerInSekunden div 6000 & ":" into szeit // calculating wav-length (mm:ss)
if trunc((SpieldauerInSekunden/100) mod 60) < 10 then
put szeit & "0" & trunc((SpieldauerInSekunden/100) mod 60) into szeit
else
put szeit & trunc((SpieldauerInSekunden/100) mod 60) into szeit
end if
put szeit into field "Feld_ZeitAbspielen1" //put the wav-Length (mm:ss) into the Textfield
set the layer of the group "Abspielmenü" to top
put 0 into progress
set visible of group "Abspielmenü" to true //Abspielmenü sichtbar machen
start player "p1"
send "countUp" to me in 10 millisec
end mousedown
on countUp
put progress+1 into progress
set the thumbposition of scrollbar "Zeit_bar1" to progress
if progress < SpieldauerInSekunden then send "countUp" to me in 10 millisec
else
set the thumbposition of scrollbar "Zeit_bar" to 0
set the label of me to "Play"
put "" into field "Feld_ZeitAbspielen1"
set visible of group "Abspielmenü" to false //hide "Abspielmenü" (background+progress bar+field)
end if
end countUp
Is there anything different using progress bars under mac than windows?