Rename loadFile -> loadFromFile

This commit is contained in:
Joshua Granick
2016-10-06 13:27:41 -07:00
parent 3dad6d81d0
commit bc74c1982c
3 changed files with 4 additions and 4 deletions

View File

@@ -153,7 +153,7 @@ class Preloader #if flash extends Sprite #end {
for (paths in soundPaths) { for (paths in soundPaths) {
AudioBuffer.loadFiles (paths).onComplete (function (audioBuffer) { AudioBuffer.loadFromFiles (paths).onComplete (function (audioBuffer) {
for (path in paths) { for (path in paths) {

View File

@@ -273,7 +273,7 @@ class AudioBuffer {
} }
public static function loadFile (path:String):lime.app.Future<AudioBuffer> { public static function loadFromFile (path:String):Future<AudioBuffer> {
var promise = new Promise<AudioBuffer> (); var promise = new Promise<AudioBuffer> ();
@@ -342,7 +342,7 @@ class AudioBuffer {
} }
public static function loadFiles (paths:Array<String>):Future<AudioBuffer> { public static function loadFromFiles (paths:Array<String>):Future<AudioBuffer> {
var promise = new Promise<AudioBuffer> (); var promise = new Promise<AudioBuffer> ();

View File

@@ -478,7 +478,7 @@ class DefaultAssetLibrary extends AssetLibrary {
} else if (path.exists (id)) { } else if (path.exists (id)) {
promise.completeWith (AudioBuffer.loadFile (path.get (id))); promise.completeWith (AudioBuffer.loadFromFile (path.get (id)));
} else { } else {