editing audio loops.
Trang 1Customizing Templates:
Editing Audio Loops
EYELAND SI UDIO
Trang 2
!“+¡-«oraedia Flash MX - [mechano 0đla]
Fie Edt View Insert Modify Text Control Window Help
OSH SR #* Ra s nan:
v Từneline
€ ˆ [Ö
4) Sal} thị (-:|[zse [a IName
đ t.Meue:
+ | & main interface w 2, Graphics
[Ñ 3 Buttons
fB 4 images
` Manufacturing Em ‹:.
RC SÉ button 2
fi 6 Scroll Bar Component
ta 7, Gock Componert
age a |
The auclio file used for the audio loops in many of the templates are contained in a folder name “Sounds”, You can delete this file and replace it with another auclio fie if you want to use a different auclio loop for the template If you do this, be sure to set the Identifier as shown next
Trang 3
“ = ~~ Ð
\ a
¥ w *‹
EENOmSx
)ọ®#*%1ñ>w%x
+
«1.01 1edia Flash MX - [mechano_O.fla]
@) Elie Edt View Insert Modify Text Control Window Help
Oe il 6 Là & Ba œ xì C4 " W xLibrary - mechano 0(fla
v Từneline
Linkage Properties
URL:
Identifier: |muse Linkage: 7 Export for ActionScript
I Export for runtime sharing
[F Irreort for runtime sharing
T Export in first frame
IN
—D
The Identifier in the Linkage
Properties clialog box is pre-set to
"music", Notice also that the Export
in first frame option is unselected
in this example See the
“Troubleshooting Preloaders” tutorial
ml
> Properties
Trang 4
VẢ"
tA
OO
# #
In this example the aucho has
ct a been placed on the first frame |G 4, Ji =)
fy Q
——
xv
on
th“ >) Frame Tweere [None x] Soun# |tunk4_ =) @ _ Options jj} | <Frame Label Effect: |None 1 Edn | ®
Trang 5eit)
C ee I5
1edia Flash MX - [mechano_O.fla]
oj &
Be ek k6 Ả k& © &$ Ảk 6Ä & & & & À j& k {k.<.&< .& .& & & &eĂ aã
cas
Ø Actions °¢ alk oltbeon
L „ Í®J ,.lỆP |[100, |1§0, |200 289 .|229 |2#0 |400 |4#0 |500, ,
"„ Q
mm
The Sync setting for the aucho file is set for “Stop” so that it wil not play This
insures that the audio fie will load properly, However, we want the auclio to 5
| be controlled but the Music On and Music =
Off buttons and this is accomplished with |None x| _Edk |
Some simple ActionScript
NkHe Mone 8 Bit 23.5 s 324.3kB
Trang 6
!“e¡-«œ edia Flash MX - [mechano 0đla]
@ Fle Edt View Insert Modify Text Control window Help
BRoo MSO aE
Iools Oe 6h
One the first frame of the scene
that contains the template (Le, not
the scene for the preloacer) there is
some simple ActionScript that sets
up the audio to be controlled by the
i,
Actions ~ Frame
Music On and Music Off buttons,
The frst line sets up the sound
object The second ine essentialy
tells Flash to use the audio file that
has the Identifier “music” as the
aucho for the sound object If you
set a afferent Identifier name for
your aucho you must change the
name in this line as wel
p} Actions for Frame 1 of Layer Name Actions
mainypage = 1; //
mrysound.start(O0, 999);
£3cormmand (”allowscale”, “£alze");
fscommand("showmenu", "Lalse”);
flash intros page
4 >
| Line S of 7, Col 1
Tweere | None >) Soune | None =)
Effect: | None =] Edr
Sựe [Ever ~| Loop|U trmes
Trang 7!⁄+¡-«oraedia Flash MX -[mechano_ Ofla]
@ Ele Edt View Insert Modify Text Control Window Help
Notice that the specified Identifier name
7 Poo is in the attachSound argument and that @ % ia),
ay Qi: mysound attachSound ( Te” ?
on [in of, cae 3
8 [~ Named Anchor Sy Evers v Loog: [0 times @
Ø8
Trang 8!“¿¿-«œ edia Flash MX - [mechano 0đla]
Ƒ
Iools rs
À "
+ Timeline
The Music On and Music Off buttons are typically located in a movie dip called “Sound Control", This is a two frame movie dip that has the Music Off button on
the first frame and the Music On button on the second frame
This s a classic toggle set up When you click the Music
Off button the second frame of the Sound Control movie
clip & shown (the frame that contains the Music On button) Cicking on the Music On button returns you to the first frame of the Sound Control movie clip
Redes kes tas
> Properties
Trang 9
f“e¿-«or iedia Flash MX - [mechano -
x1
1
Iools ry
kh - + Timeline
~ Actions - Frame
stop();
_root.mysound.start (0, 999);
ActionScript on the first frame of fhe Sound Control movie cip tells
the sound object to start
playing
B2>
Ph > Properties
Trang 10
!“¿ ¡- «or n e dịa Flash MX - [mechano_ Ofla]
x1
L
Iools ry
~ Actions - Frame
kh " + Timeline le] Actions for Frame 2 of Layer Name actions
stop();
stopAllSounds();
B2>
Si > Properties
10