Skip to content

Instantly share code, notes, and snippets.

View harpwood's full-sized avatar
💪
HaxeFlixel power

Harpwood Studio harpwood

💪
HaxeFlixel power
View GitHub Profile
@harpwood
harpwood / SoundManager.as
Created November 9, 2019 20:22 — forked from FrancescoMaisto/SoundManager.as
This ActionScript class makes dealing with sounds in Starling very easy and intuitive: once you add a sound to the SoundManager you can easily play it, stop it, change its volume, fade it in, fade it out or cross-fade it with another sound.See more details and usage examples below, in the first comment.
package starling.extensions {
import flash.events.Event;
import flash.media.Sound;
import flash.media.SoundChannel;
import flash.media.SoundTransform;
import flash.utils.Dictionary;
import starling.core.Starling;
public class SoundManager {