Skip to content

💀 DEPRECATED. Utilise rails manifest.json to resolve asset paths (and leave room to use other path resolver, too)

Notifications You must be signed in to change notification settings

neopoly/flash_asset_resolver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💀 DEPRECATED

Flash Asset Resolver

Utilise rails asset manifest file to resolve asset paths (and leave room to use other path resolver, too).

Desired usage (how I'd like to use the resolver)

ManifestAssetPathProvider.setGlobalParser(JSON.decode);

var p:IAssetPathProvider = new AssetResolver(
  new ManifestAssetPathProvider("http://my/asset/host", "http://my/asset/host/manifest-12345.json"),
  new ManifestAssetPathProvider("http://my/other/asset/host", "http://my/other/asset/host/manifest-456987.json")
).init(myCompleteCallback, myErrorCallback);

trace(p.assetPathFor("test/image.jpg"));      // => http://my/asset/host/test/image-4312.jpg

Requires

About

💀 DEPRECATED. Utilise rails manifest.json to resolve asset paths (and leave room to use other path resolver, too)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published