To know about important general concepts pertaining to Sound, To information on how Sound works in Flash. Please pay special attention to SYNC modes: Event, Start and Stream. 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, If you want to find free sound effect files and loops to use as a background sound go to: 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 can place actions and frame-labels INSIDE a Movie-clip-Timeline, just place them in an upper layer called ACTIONS. |
This week, you will program a button, placed on the Main timeline, to talk to the inside of a movieclip (targeting a movieclip) 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).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.
|
|