this time my goal is to create a stack which contains only three stacks but can use different arrays of Videos to process. That's why I'm always going from card 1 to 2 to 3 and back to card 1. After an Introduction one is supposed to see a Video, then rate it within a certain time limit and go on either by clicking a button or by the end of the counter. While everything seemed to work fine without the Counter and the Counter seems to work fine for counting as well, I always get an error message which tells me:
"Type Chunk: no such object
Object Trial1
Line put x into field "Counter.1"
Hint Counter.1"
I included the faulty code and attached the stack file. Can anybody help?
Code: Select all
global Videos
global Trialreihenfolge
global TrialreihenfolgeZeit
global Läufer
local filepath
On Preopencard
put specialFolderPath("desktop") & "/deliberation/" & Videos[Trialreihenfolge[Läufer]] into filepath
set the filename of player "Trial.1" to (filepath)
show player "Trial.1"
start player "Trial.1"
put "" into field "Counter.1"
end Preopencard
On playStopped
put the milliseconds into TrialreihenfolgeZeit[Läufer]
repeat with x = 0 to 10
wait for 1 second with messages
put x into field "Counter.1"
end repeat
end playStopped
James