We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 400626f + 8f1ec4b commit abfcf2fCopy full SHA for abfcf2f
assets/cases/05_scripting/11_network/downloader-native/DownloaderCtrl.js
@@ -128,6 +128,9 @@ cc.Class({
128
this.sprite.node.active = false;
129
this.label.node.active = true;
130
this.label.string = 'Downloading Audio';
131
+ if (this._audioID !== -1) {
132
+ cc.audioEngine.stop(this._audioID);
133
+ }
134
this._downloading = true;
135
this._audioTask = this._downloader.createDownloadFileTask(this.audioUrl, this._storagePath + 'audioTest.mp3');
136
},
0 commit comments