/src/away3d/library/naming/ErrorConflictStrategy.as

http://github.com/away3d/away3d-core-fp11 · ActionScript · 22 lines · 19 code · 3 blank · 0 comment · 1 complexity · 985b7e69dad899241719f829e4914a11 MD5 · raw file

  1. package away3d.library.naming
  2. {
  3. import away3d.library.assets.IAsset;
  4. public class ErrorConflictStrategy extends ConflictStrategyBase
  5. {
  6. public function ErrorConflictStrategy()
  7. {
  8. super();
  9. }
  10. public override function resolveConflict(changedAsset:IAsset, oldAsset:IAsset, assetsDictionary:Object, precedence:String):void
  11. {
  12. throw new Error('Asset name collision while AssetLibrary.namingStrategy set to AssetLibrary.THROW_ERROR. Asset path: ' + changedAsset.assetFullPath);
  13. }
  14. public override function create():ConflictStrategyBase
  15. {
  16. return new ErrorConflictStrategy();
  17. }
  18. }
  19. }