* Class for sound support
| 3 | * Class for sound support |
| 4 | */ |
| 5 | class Sound { |
| 6 | private _source:string; |
| 7 | private _isPlaying:boolean = false; |
| 8 | public onload:Function; |
| 9 | |
| 10 | constructor(type:string, onload:Function) { |
| 11 | this.onload = onload; |
| 12 | this._source = type; |
| 13 | } |
| 14 | |
| 15 | public createFromURL(url:string):void { |
| 16 | this._source = url; |
| 17 | } |
| 18 | |
| 19 | public play():void { |
| 20 | |
| 21 | } |
| 22 | |
| 23 | public remove():void { |
| 24 | |
| 25 | } |
| 26 | |
| 27 | public stop():void { |
| 28 | |
| 29 | } |
| 30 | |
| 31 | public loadPercent():number { |
| 32 | return 0; |
| 33 | } |
| 34 | |
| 35 | public serialize():Object { |
| 36 | return { |
| 37 | 'class':'Sound', |
| 38 | 'url':this._source |
| 39 | }; |
| 40 | } |
| 41 | } |
| 42 | } |
nothing calls this directly
no outgoing calls
no test coverage detected