Tuesday 25 January 2011

week3.loading external data/UI loader


* here are some experiments for mouse events functions:



when you click on the middle ghost it will zoom in and zoom out , when you move the mouse over the right or the left ghost both will zoom in , and zoom out.
click here



* Ui loader













method 2 using code each time you reload the page you get a new background.




Playing Sounds with AS3

Playing sounds using ActionScript 3.0 is not as simple as we hoped it to be as it requires using more than one class to perform even the simplest of tasks relating to sound such as pausing or changing the sound volume. This tutorial was very helpful its covered all the basics I need to learn how to start playing local and external sounds in Flash.

http://www.republicofcode.com/tutorials/flash/as3sound/



here are more toturials help me to create the volume control button:

Music Looping in AS3

According to the AS3 documentation you can loop a sound by passing in a loop number argument when you call play on a sound. Apparently, that never seems to work consistently for me. Sometimes it would not loop after a number of times, or it doesn’t loop immediately. So I usually just manually control the looping of music with Event Listeners.

To do this, you need to add an Event Listener to the music channel that will call a function to replay the sound whenever it’s done playing once.

No comments:

Post a Comment