Go to Content
Columbia College Chicago
IAM Wiki: Flash Sound and Volume
Flash Sound and Volume

Import Audio file into flash


Make a new flash document

Image:FlashVol_NewDocument.png

Import Sound file to Library

Image:FlashVol_Import.png

Select the audio file you want to import

Image:FlashVol_SelectAudioFile.png

Right click on the file in the library and select Linkage

Image:FlashVol_Linkage.png

Name check the boxes and name the Link

Image: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

Image: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

This page was last modified on 4 August 2008, at 20:53. This page has been accessed 1,457 times. About IAMMediaWiki Powered by MediaWiki