Difference between revisions of "Flash Sound and Volume"

esse quam videri
Jump to: navigation, search
m (Text replacement - "syntaxhighlight lang="csharp" line="1" " to "syntaxhighlight lang="csharp"")
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
[[Category:Sound for Interaction]]
 
[[Category:Sound for Interaction]]
 
[[Category:Tutorial]]
 
[[Category:Tutorial]]
 +
[[Category:Sound]]
 +
[[Category:Flash]]
 
==Import Audio file into flash==
 
==Import Audio file into flash==
 
*[[Flash Sound and Volume part 2]]
 
*[[Flash Sound and Volume part 2]]
Line 30: Line 32:
 
type
 
type
  
<csharp>
+
<syntaxhighlight lang="csharp">
 
mySound = new Sound();                  //New sound object called mySound
 
mySound = new Sound();                  //New sound object called mySound
 
mySound.attachSound("StringBender");    //set mySound = to the named instance in the library
 
mySound.attachSound("StringBender");    //set mySound = to the named instance in the library
 
mySound.start(0,1); //Play the sound once
 
mySound.start(0,1); //Play the sound once
</csharp>
+
</syntaxhighlight>
  
 
[[Image:FlashVol_1stActionScript.png]]
 
[[Image:FlashVol_1stActionScript.png]]

Latest revision as of 03:23, 9 February 2016

Import Audio file into flash


Make a new flash document

FlashVol NewDocument.png

Import Sound file to Library

FlashVol Import.png

Select the audio file you want to import

FlashVol SelectAudioFile.png

Right click on the file in the library and select Linkage

FlashVol Linkage.png

Name check the boxes and name the Link

FlashVol LinkageName.png

Press f9 or Window/Actions to open the actionscript editor in the first frame

type

mySound = new Sound();                  //New sound object called mySound
mySound.attachSound("StringBender");    //set mySound = to the named instance in the library
mySound.start(0,1);			//Play the sound once

FlashVol 1stActionScript.png

Press ctr/enter to test you movie you should hear the sound we imported play once

Flash Sound and Volume part 2