Tuesday, May 12, 2009

Build Your Own Guitar With Flash

Most guitars have only 6 strings.








Adobe Flash is a comprehensive visual design program capable of making animations, websites, programs and games. Building a guitar in Adobe Flash requires a basic knowledge of the program's functionality. The guitar will play a recording of the 6 strings of the guitar when the user clicks on that string. This is achieved by linking the image of the string with a sound clip of that string.


Instructions


1. Locate a photo of a guitar. This will serve as the background of the flash document.


2. Open a new Adobe Flash document. Set the resolution of the document to that of the photo of the guitar.


3. Download or record 6 different audio files of each of the strings of the guitar; high E, B, G, D,A , low E.


4. Import the image into Flash and set it as the background.


5. Create 6 lines over the existing strings of the guitar using the "Line" Tool. Make sure the size of the strings is thick enough for the end user to click on. Right click on each line and click "Convert To Symbol" and select "Button."


6. Import the 6 guitar string audio clips.


7. Link each clip to the action of clicking on the guitar string. The closest to the ground is high E (string 1,) next is B (string 2,) followed by G (string 3,) then D (string 4,) then A (string 5) and finally low E the top string (string 6.) Click on the lowest string's (high E) symbol in scene then click the "Action" window and copy this code:


"on (release) {


kirupaSound = new Sound(this);


kirupaSound.attachSound("SOUNDFILE");








kirupaSound.start(0, 99);"


Replace "SOUNDFILE" with the path to the high E audio file in the library. Repeat this process with each subsequent string.

Tags: Adobe Flash, strings guitar, guitar string, photo guitar, string then