2. Make sure that the last frame(note: its frame not keyframe) number is equal to the last frame of whole movie. This is to ensure that the following code works throughout the movie
3. Now click on the first frame of actions layer and press F9 to open Action Panel and write this code: