1. Computing & Technology

Discuss in my forum

Flash Animation 26: Flash for Web Design: Video Playback

By , About.com Guide

Play Button
Flash Animation 26: Flash for Web Design: Video Playback
Ready to finally get those playback controls set up? Then let's start with the Play button, as it's one of the easiest and covers ground that we've trod before. Right-click on your Play button and select Actions; you're going to insert a simple gotoAndPlay command inside an on (release) to tell the movie clip to advance beyond frame one (the one with the stop on it preventing further playback) to frame two, so that it can play as normal from that point:

on (release) {
doorknobpage.gotoAndPlay (2) ;
}

You'll notice that I placed the name of my movie clip instance before the gotoAndPlay command, separated by a period; remember, this tells Flash just which object that that command is supposed to be enacted upon.

©2012 About.com. All rights reserved.

A part of The New York Times Company.