loader.setBaseURL

setBaseURL(type: string, url: string) → {}

change the default baseURL for the given asset type.
(this will prepend the asset URL and must finish with a '/')

// change the base URL relative address for audio assets
me.loader.setBaseURL("audio", "data/audio/");
// change the base URL absolute address for all object types
me.loader.setBaseURL("*", "http://myurl.com/")
Parameters:
Name Type Attributes Default Description
type string

"*", "audio", "video", "binary", "image", "json", "js", "tmx", "tsx"

url string

<optional>

"./"

default base URL

Returns:
Type Description
Powered by webdoc!