This post is rather on the very short side. Creating water should be easy, and it is. The basic idea is to have a bunch of sine waves moving in the same direction at different frequencies and velocities. Modulating their amplitude will give you all the water goodness you require.
Check out the results:
Wednesday, May 26, 2010
Tuesday, May 25, 2010
Loading Queue in Actionscript
There comes a time when in an actionscript project you have to load a bunch of assets and have them all be ready before calling the setup function that operates on those loaded assets.
The solution for this recurring problem should be standardized, and separated into its own class rather than polluting classes concerned with GUI events or with server-side interaction.
We are aiming for a highly reusable and hence simple bulk loader. Regular usage is listed in the following:
The solution for this recurring problem should be standardized, and separated into its own class rather than polluting classes concerned with GUI events or with server-side interaction.
We are aiming for a highly reusable and hence simple bulk loader. Regular usage is listed in the following:
- Pass an array of the requests to the bulk loader class
- Listen for when the list has completed
- Listen for when an item has been completed
- Get the number of remaining items
package { |
Labels:
actionscript,
loading
Subscribe to:
Posts (Atom)