Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 09-19-2002, 02:56 AM   #1
Rob
Registered User
 
Join Date: Jun 2001
Location: Australia
Posts: 2
Default 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
Rob is offline   Reply With Quote
Old 09-19-2002, 04:16 PM   #2
Rob
Registered User
 
Join Date: Jun 2001
Location: Australia
Posts: 2
Default

Here is what I've done so far.

No fancy AS just goto and play. Ultimately I want to make a piano that the user can use by clicking on the keys.

Anyone want to help and teach me along the way? I don't mean by making you do all the work but just help me get the algorithm right.

Thanks,

Rob
Attached Files
File Type: zip triads.zip (82.3 KB, 203 views)
Rob is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:05 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.