Help with my Piano
I'm new to flash but am average with Javascript.
I've made a 2 octave piano using buttons that contain the key images plus their sampled sounds.
I have a 1 frame movie containing 24 movies (one for each note).
I want 2 comboBoxes and a push button:
Combobox 1 - holds letter names A-G
ComboBox 2 - holds chord type Major, Minor etc.
PushButton: Set to onClick
I was thinking that I would approach the code from frame 1 something like this.
if ((combobox1.getValue() == C) && (combobox2.getValue() == Major))
{
_root.Cmusic_note.play
_root.Emusic_note.play
_root.Gmusic_note.play
}
Could someone please help me through this project. I'm a music teacher and would love to get this working. I have tried for tweo days but really need some Action Script syntax help.
Thanks,
Rob
|