<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-10753074</id><updated>2011-04-21T11:42:06.546-07:00</updated><title type='text'>actionscript flash piano</title><subtitle type='html'>to play the piano, pass your mouse over the keys
&lt;br&gt;OR read on and learn how to make this in Flash with Actionscript 2</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://actionscriptflashpiano.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10753074/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://actionscriptflashpiano.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>flashPiano</name><uri>http://www.blogger.com/profile/15080753663758813929</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-10753074.post-115145133657539572</id><published>2006-06-27T16:35:00.000-07:00</published><updated>2006-06-27T16:35:36.600-07:00</updated><title type='text'>NEW - Free sound-effects WAV files</title><content type='html'>Update:  &amp;nbsp; I am making available 15 sets of public-domain whacky sound-effects...&lt;br /&gt;Check 'em out over at: &lt;a href="http://www.starzhead.com/soundeffects/soundtutorial.html"&gt;www.starzhead.com/soundeffects/soundtutorial.html&lt;/a&gt;&lt;br /&gt;And, if you have Flash7, take a look at the new tutorial I wrote on how to make these mouse-over and drag-and-drop sound-effect players...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10753074-115145133657539572?l=actionscriptflashpiano.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10753074/posts/default/115145133657539572'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10753074/posts/default/115145133657539572'/><link rel='alternate' type='text/html' href='http://actionscriptflashpiano.blogspot.com/2006/06/new-free-sound-effects-wav-files.html' title='NEW - Free sound-effects WAV files'/><author><name>flashPiano</name><uri>http://www.blogger.com/profile/15080753663758813929</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-10753074.post-110806682981003006</id><published>2005-03-27T13:18:00.000-08:00</published><updated>2005-02-15T19:37:46.220-08:00</updated><title type='text'>ACTIONSCRIPT FLASH PIANO</title><content type='html'>&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; &lt;b&gt;MOUSE-OVER OR CLICK TO HEAR NOTE&lt;/b&gt;&lt;br /&gt;[ this plays once on mouse-over and three times on mouse-press ]&lt;br /&gt;&lt;embed src="http://www.starzhead.com/flashpiano/aspiano03.swf" quality="high" bgcolor="#ccccff" width="141" height="90" name="aspianosound" align="middle" /&gt;&lt;br /&gt;&lt;/embed&gt;&lt;br /&gt;&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; &lt;b&gt;READ ON: learn how to make this  with Actionscript2 in FLASH7&lt;/b&gt;&lt;br /&gt;&lt;img src="http://www.starzhead.com/flashpiano/Screen17778.gif" /&gt;&lt;br /&gt;screen 17778 &amp;nbsp; &lt;b&gt;set-up timeline layers:&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; Make a background any color except white: &amp;nbsp; width=141 &amp;nbsp; height=90. &lt;br /&gt;&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; Make 2 layers; interface and actions.  &lt;br /&gt;&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; Make both 5 frames long by selecting frame 5 and hitting [ F-6 ].&lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.starzhead.com/flashpiano/Screen17779.gif" /&gt;&lt;br /&gt;screen 17779 &amp;nbsp; &lt;b&gt;draw the whitekey&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; Select Rectangle, no-stroke, and White for your whitekey, then draw out a rough rectangle.&lt;br /&gt;&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; Open the Info Panel [ Ctrl + I ], and set exact size to: &amp;nbsp; width=15 &amp;nbsp; height=80 &lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.starzhead.com/flashpiano/Screen17780.gif" /&gt;&lt;br /&gt;screen 17780 &amp;nbsp; &lt;b&gt;convert whitekey into a Button Symbol&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; With whitekey still selected, hit [ F-8 ], which opens Convert to Symbol screen.&lt;br /&gt;&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; The name of the Symbol isn't important, but make sure to select "Button" for "Behavior".  &lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.starzhead.com/flashpiano/Screen17781.gif" /&gt;&lt;br /&gt;screen 17781  &amp;nbsp; &lt;b&gt;delete Symbol from stage&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; Deleting what you've just made may sound a bit strange, but that is how Symbols are placed in the Library.  &amp;nbsp; You're just deleting the whitekey from the stage, not the project. &lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.starzhead.com/flashpiano/Screen17782.gif" /&gt;&lt;br /&gt;screen 17782  &amp;nbsp; &lt;b&gt;draw the blackkey&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; Draw this strokeless blackkey the same way you did the strokeless whitekey.  &amp;nbsp; It's size is: &amp;nbsp; width=8 &amp;nbsp; height=40.  &amp;nbsp; It is not a solid black, but the "first gray" &amp;nbsp; [ #999999 ].&lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.starzhead.com/flashpiano/Screen17784.gif" /&gt;&lt;br /&gt;screen 17784  &amp;nbsp; &lt;b&gt;convert into symbol&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; Press [ F-8 ] to Convert to Symbol the same way you did for whitekey.&lt;br /&gt;Name it if you wish, but again, make sure to select "Button" for "Behavior".  &lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.starzhead.com/flashpiano/Screen17785.gif" /&gt;&lt;br /&gt;screen 17785 &amp;nbsp; &lt;b&gt;delete Symbol from stage&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; And again, hit [ Delete ] on Keyboard to place Symbol in Library. &lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.starzhead.com/flashpiano/Screen17787.gif" /&gt;&lt;br /&gt;screen 17787 &amp;nbsp; &lt;b&gt;the Library&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; And just to prove that you didn't lose your keys, here they are in the Library.  &amp;nbsp; You will be pulling out copies, or Instances, in the next step. &lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.starzhead.com/flashpiano/Screen17790.gif" /&gt;&lt;br /&gt;screen 17790 &amp;nbsp; &lt;b&gt;drag out a Button Instance&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; Drag out a copy of the whitekey Button Symbol, and place it near the left edge of the stage.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.starzhead.com/flashpiano/Screen17792.gif" /&gt;&lt;br /&gt;screen 17792  &amp;nbsp; &lt;b&gt;drag out 7 more whitekey Instances&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; Drag out a total of 8 whitekey Instances.  &amp;nbsp; No need to be neat - we will automatically align the whitekeys later.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.starzhead.com/flashpiano/Screen17795.gif" /&gt;&lt;br /&gt;screen 17795  &amp;nbsp; &lt;b&gt;shift-click to select all&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; Shift-click on each to select all 8 Button Instances&lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.starzhead.com/flashpiano/Screen17796.gif" /&gt;&lt;br /&gt;screen 17796  &amp;nbsp; &lt;b&gt;align | distribute widths&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; [ align | distribute widths ]&lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.starzhead.com/flashpiano/Screen17797.gif" /&gt;&lt;br /&gt;screen 17797  &amp;nbsp; &lt;b&gt;align | make same height&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; [ align | make same height ]&lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.starzhead.com/flashpiano/Screen17799.gif" /&gt;&lt;br /&gt;screen 17799 &amp;nbsp; &lt;b&gt;drag out a black key&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; Open the Library again and drag out a Button Instance of the blackkey Button Symbol. &lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.starzhead.com/flashpiano/Screen17800.gif" /&gt;&lt;br /&gt;screen 17800 &amp;nbsp; &lt;b&gt;drag out 4 more black keys&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; Drag out a total of 5 black keys.  &amp;nbsp; Placing them is a little bit trickier, but with a little magnification the blackkeys can be nudged into proper alignment.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.starzhead.com/flashpiano/Screen17801.gif" /&gt;&lt;br /&gt;screen 17801  &amp;nbsp; &lt;b&gt;and there you have 13 keys&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; 13 Button Instances, but none have been named yet.&lt;br /&gt;&lt;br /&gt;&lt;img src="http://www.starzhead.com/flashpiano/Screen17803.gif" /&gt;&lt;br /&gt;screen 17803  &amp;nbsp; &lt;b&gt;name the Button Instances&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; One at a time, click on each Button Instance, and give it it's appropriate name in [ Properties ].&lt;br /&gt;&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; Name whitekeys, left to right; &amp;nbsp; c3 &amp;nbsp; d3 &amp;nbsp; e3 &amp;nbsp; f3 &amp;nbsp; g3 &amp;nbsp; a3 &amp;nbsp; b3 &amp;nbsp; c4 &lt;br /&gt;&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; Name blackkeys, left to right; &amp;nbsp; c3s &amp;nbsp; d3s &amp;nbsp; f3s &amp;nbsp; g3s &amp;nbsp; a3s&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10753074-110806682981003006?l=actionscriptflashpiano.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10753074/posts/default/110806682981003006'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10753074/posts/default/110806682981003006'/><link rel='alternate' type='text/html' href='http://actionscriptflashpiano.blogspot.com/2005/03/actionscript-flash-piano.html' title='ACTIONSCRIPT FLASH PIANO'/><author><name>flashPiano</name><uri>http://www.blogger.com/profile/15080753663758813929</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-10753074.post-110827200663881767</id><published>2005-03-26T21:17:00.000-08:00</published><updated>2005-02-15T08:45:44.556-08:00</updated><title type='text'>FREE SOUND FILE FOR NOTES</title><content type='html'>&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; To obtain the .wav files needed for this first tutorial, you may get a free &lt;I&gt;safe to download&lt;/I&gt; public-domain zip file: &amp;nbsp; &amp;nbsp; &lt;a href="http://www.starzhead.com/flashpiano/13notes.zip"&gt;&lt;u&gt;13notes.zip &amp;nbsp; 36kb &lt;/u&gt;&lt;/a&gt;&lt;br /&gt;&lt;img src="http://www.starzhead.com/flashpiano/Screen17804.gif" /&gt;&lt;br /&gt;screen 17804&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10753074-110827200663881767?l=actionscriptflashpiano.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10753074/posts/default/110827200663881767'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10753074/posts/default/110827200663881767'/><link rel='alternate' type='text/html' href='http://actionscriptflashpiano.blogspot.com/2005/03/free-sound-file-for-notes.html' title='FREE SOUND FILE FOR NOTES'/><author><name>flashPiano</name><uri>http://www.blogger.com/profile/15080753663758813929</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-10753074.post-110827219481669150</id><published>2005-03-25T21:22:00.000-08:00</published><updated>2005-02-15T11:03:02.400-08:00</updated><title type='text'>SOUND LINKAGE IN LIBRARY</title><content type='html'>&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; Presumably you downloaded the zip file mentioned above, and now have all 13 notes unzipped and stored somewhere on your machine.&lt;br /&gt;&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; The next step is to import these 13 files to Library [ File | Import to Library ].  &amp;nbsp; You may import all 13 sounds at once.&lt;br /&gt;&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; Sounds will remain in the Library, but instead of being referred to by filename; such as &lt;b&gt;c3.wav&lt;/b&gt;, they are given a Linkage Name; such as &lt;b&gt;c3&lt;/b&gt;.  &lt;br /&gt;&lt;img src="http://www.starzhead.com/flashpiano/Screen17808.gif" /&gt;&lt;br /&gt;screen 17808  &amp;nbsp; &lt;b&gt;linkage identifier&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; Right-click on a sound file in the Library, then select Linkage.&lt;br /&gt;&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; Check "Export for Actionscript" and "Export in First Frame" boxes.&lt;br /&gt;&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; Remove the .wav extension from the name. &amp;nbsp; Your sound now has a Linkage Identifier.&lt;br /&gt;&lt;img src="http://www.starzhead.com/flashpiano/Screen17809.gif" /&gt;&lt;br /&gt;screen 17809&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10753074-110827219481669150?l=actionscriptflashpiano.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10753074/posts/default/110827219481669150'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10753074/posts/default/110827219481669150'/><link rel='alternate' type='text/html' href='http://actionscriptflashpiano.blogspot.com/2005/03/sound-linkage-in-library.html' title='SOUND LINKAGE IN LIBRARY'/><author><name>flashPiano</name><uri>http://www.blogger.com/profile/15080753663758813929</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-10753074.post-110823699694912964</id><published>2005-03-24T11:28:00.000-08:00</published><updated>2005-02-15T20:12:28.050-08:00</updated><title type='text'>BASIC SCRIPT FOR SOUND OBJECT</title><content type='html'>&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; This first Actionscript example is something we will build on.  &amp;nbsp; All this will do at this point is play one note, but what this will show is the basic creation of the Sound-Object, and linkage of a sound to it using the &lt;b&gt;attachSound&lt;/b&gt; method.&lt;br /&gt;&lt;img src="http://www.starzhead.com/flashpiano/Screen17837.gif" /&gt;&lt;br /&gt;&lt;b&gt;1&lt;/b&gt; &amp;nbsp; The first line creates a &lt;b&gt;sound-object&lt;/b&gt; named &lt;b&gt;pianoSound&lt;/b&gt;.&lt;br /&gt;&lt;b&gt;2&lt;/b&gt; &amp;nbsp; The second line assigns the &lt;b&gt;linkage-name&lt;/B&gt; to the &lt;b&gt;Sound-Object&lt;/B&gt; using the &lt;b&gt;attachSound method&lt;/b&gt;.&lt;br /&gt;&lt;b&gt;3&lt;/b&gt; &amp;nbsp; The third line enables the button for onMouseDown operation, (and later we will add onMouseOver operation).&lt;br /&gt;&lt;b&gt;4&lt;/b&gt; &amp;nbsp; The fourth line stops the movie on the last frame instead of letting it cycle.  &amp;nbsp; The first four frames of the movie are blank to assist loading.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10753074-110823699694912964?l=actionscriptflashpiano.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10753074/posts/default/110823699694912964'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10753074/posts/default/110823699694912964'/><link rel='alternate' type='text/html' href='http://actionscriptflashpiano.blogspot.com/2005/03/basic-script-for-sound-object.html' title='BASIC SCRIPT FOR SOUND OBJECT'/><author><name>flashPiano</name><uri>http://www.blogger.com/profile/15080753663758813929</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-10753074.post-110823721373093799</id><published>2005-03-23T11:38:00.000-08:00</published><updated>2005-02-15T20:14:56.946-08:00</updated><title type='text'>LETS ADD EVERYTHING TO SCRIPT</title><content type='html'>&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; Next we will expand our script by inserting the linkage names of the other notes.&lt;br /&gt;&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; Buttons will now function with either mouse-over or mouse-press.&lt;br /&gt;&lt;img src="http://www.starzhead.com/flashpiano/Screen17838.gif" /&gt;&lt;br /&gt;screen 17838&lt;br /&gt;&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; comment A: &amp;nbsp; I need to research this, but I think onPress and onMouseDown are the same.&lt;br /&gt;&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; comment B: &amp;nbsp; If you wanted note to play three times "onPress" (as in the working example) you would change the "1" in the fourth line from the end to "3". &amp;nbsp; If you are curious, the "0" on that same line specifies a frame for the sound to start.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10753074-110823721373093799?l=actionscriptflashpiano.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10753074/posts/default/110823721373093799'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10753074/posts/default/110823721373093799'/><link rel='alternate' type='text/html' href='http://actionscriptflashpiano.blogspot.com/2005/03/lets-add-everything-to-script.html' title='LETS ADD EVERYTHING TO SCRIPT'/><author><name>flashPiano</name><uri>http://www.blogger.com/profile/15080753663758813929</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-10753074.post-110806689778968509</id><published>2005-02-26T13:21:00.000-08:00</published><updated>2005-02-15T20:16:03.866-08:00</updated><title type='text'>USE THIS PROJECT AS A STARTER</title><content type='html'>&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; While this little one-octave "moused-over or clicked" toy piano may not be terribly useful, its construction will serve as a beginning tutorial on basic button making, and how to add sounds in Flash using Actionscript2.   &lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; As you can see, Actionscript is a flexible method for controlling sound with buttons. We have barely scratched the surface, as other things can be controlled, such as stereo panning and volume control. &amp;nbsp; Dynamic text fields can easily be added based on Instance names, and "juke boxes" which display the name of the tune playing--plus the next one to play, are easy to assemble with Actionscript. [ reference: Foundation Actionscript for Flash MX 2004, by Sham Bhangal, Chapter 12 ]&lt;br /&gt;     &lt;br /&gt;&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; &lt;b&gt;If you need a more basic (simpler) tutorial&lt;/b&gt; on adding sounds to buttons without the use of Actionscript, visit our related site: &lt;a href="http://flashpiano.blogspot.com"&gt;&lt;u&gt;http://flashpiano.blogspot.com&lt;/u&gt;&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;font color="#ff9900"&gt;&amp;#164;&lt;/font&gt;&lt;/b&gt; &amp;nbsp; [ at a later date ] we will be adding code that will nudge the the keys slightly to indicate a "hotspot".&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10753074-110806689778968509?l=actionscriptflashpiano.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10753074/posts/default/110806689778968509'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10753074/posts/default/110806689778968509'/><link rel='alternate' type='text/html' href='http://actionscriptflashpiano.blogspot.com/2005/02/use-this-project-as-starter.html' title='USE THIS PROJECT AS A STARTER'/><author><name>flashPiano</name><uri>http://www.blogger.com/profile/15080753663758813929</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry></feed>
