Pausing Sounds | 1 2 3 | continued:

4:

Ok, now we're going to "spread" our sound/music over the timeline.

 

Depending on the length of your sound, right-click a keyframe on the timeline and select "Insert Keyframe".
Notice Fig 5, my music almost ends by the 190th keyframe. what we want is having the whole sound clip be played in flash, so we have to make sure we don't "insert keyframe" before the sound/music ends.

 

Go back to the first frame, righ-click it and select Actions. Add a stop (); action to it.
The reason why we left that single keframe and added a stop action to it is because we don't want flash to play our music once the file is loaded, we want to control it and play it only when the "play" button is pressed.

 


5:

That's what your timeline should look like.

  • click on "Scene 1" as shown in Fig 6 to go back to the main stage.

Only 3 more steps are left and you're going to be able to pause your music in flash :)

 

 

 


6:

Ok that looks good. We're back to the main stage, now we're going to place our Movie Clip that holds our music on the stage.

  • Go to Windows>Library and drag the "mymusic" movie clip to the stage, as shown in Fig 7.
  • Click on the keyframe of the "sound" layer. You'll notice a little circle on the stage with a little "+" sign, that's the movie clip that we dragged. If you double click that, u'll be taken to it, you don't have to do that now, if you do, make sure you get back to scene 1 for the following step.


7:

Now we're going to add an "Instance Name" to our movie clip, this name will be used as a target to play and pause the movie clip.

  • Click once on the little "+" sign as shown above and go to to the Properties panel.
  • Name the movie clip "mymusic" as show in Fig 8.

Good work, the following page is the last one, we're going to add actions to buttons.

 

Fig 5

 

 

 

 

 

 

 


Fig 6

 

Fig 7

 

 

 

 

 

 

 

 

 

Fig 8

 

1 | 2 | 3 | Next

   
Main | Tutorials | BestFlash | Goodies | Forums | Portfolio | Contact Us
   
 
AEvision Tutorials 2.1 - All rights reserved AEvision Designs 2002-2007
 
 
Icons provided by iconpacks.com