Pages about Sound
in your help-site.

To know about important general concepts pertaining to Sound,
http://soma.sbcc.edu/users/Ajarabo/F_online/sound3.htm

To information on how Sound works in Flash. Please pay special attention to SYNC modes: Event, Start and Stream.
http://soma.sbcc.edu/users/Ajarabo/F_online/sound.htm

What is an mp3 file, how to edit sound and compress it as an mp3 with Audacity, and how to compress into mp3 format with Itunes,
http://soma.sbcc.edu/users/Ajarabo/F_online/sound2.htm

If you want to find free sound effect files and loops to use as a background sound go to:
http://www.flashkit.com

Consult my Flash help-website for information on how to use flashkit and basic sound information.http://soma.sbcc.edu/users/Ajarabo/F_online/sounds_over_web.htm


This week we are going discover the power of Movie-clip symbols.
We will use movieclips to organize the content of our project, this means that animation will not longer be present on the main Timeline.( Main timelines cleam up to clarify interactivity)

Animation, series of images, slideshows, sounds... will be ALL organized INSIDE movieclips.
You will doubleclick them on Stage to see how they look together with other elements, and you will test them by exporting the movie into an swf(space bar_shift is the shortcut to test a movie).

We can place actions and frame-labels INSIDE a Movie-clip-Timeline, just place them in an upper layer called ACTIONS.
You also can place buttons inside a Movie-clip symbol.



This week, you will program a button, placed on the Main timeline, to talk to the inside of a movieclip (targeting a movieclip)
There is a second possibility for targeting, and that is a button INSIDE a movieclip, that needs to pass information to the MAIN timeline.


I added a file that would illustrate this case-scenario. Here is an explanation. This might not apply to this week's assignment, but somebody could need it for their Final Project.

Targeting the main timeline from a button inside a movieclip

This other case scenario is also very important: how do you talk to a "parent timeline".

You can talk to a timeline just above, or you can talk to the main timeline of the flash project, also called the root.

I added a file called "test_talkUp_AS3.fla". In this example, you see how to you send a message to the main timeline from a button placed inside a movieclip.

 

Movieclip(root)

When you want a button placed INSIDE the movieclip to "talk" to the main timeline, you will have to refer somehow to the main Timeline in the dot syntax.

We will use a "MovieClip Constructor", a piece of code that helps flash to pinpoint who are we trying to call.

To refer to the root we will say:
MovieClip(root). what-the-main-timeline-has-to-do

MovieClip(root).gotoAndPlay(3);

If we wanted to talk to a timeline just above the one we are scripting from, we can also work with the parent concept. The code would then be,

MovieClip(parent). what-the-timeline-one-step-up-has-to-do

MovieClip(parent).gotoAndStop(10);

In this case, because the timeline above is also the root, both ways of coding work.

Look on your right and you will see that, in my file example, the code is in a function that is being called by a button.

If you wanted the code to be attached to a frame, you could also do it.
You would then only write the code I wrote above attached to a keyframe and it would work as soon as the playhead entered that frame of the movieclip.