I want to make text slide accross the screen when my page loads up. Is there an onload function so that when my page loads up it will play the animation?

youdon’t need any action, just put a clip in the 1st frame with the sliding text in it, with a stop on _root, clip will play and main timeline stops; to restart it, just put a in the last frame of your clip…?