Video loop question

Dear all,
How to count the loop number of a playing video ?
I want to repeat the video for 3 times. How to stop it ?

thank you very much for your help and cooperation,

Look there, is similar than yours video library example

ok, thank you.
But is there any video property lik loopCount o similar ?
Time measure is not so precise …

thank you

I don’t think so …

if (myMovie.time() == myMovie.duration()) {

it colud be?
maybe putting a trigger…