Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
define("as3/flash/net/getClassByAlias",["module","exports","as3-rt/AS3"], function($module,$exports,AS3) { AS3.compilationUnit($module,$exports,function($primaryDeclaration){/*package flash.net {

/**
 * Looks up a class that previously had an alias registered through a call to the <code>registerClassAlias()</code> method.
 * <p>This method does not interact with the <code>flash.utils.getDefinitionByName()</code> method.</p>
 * @param aliasName The alias to find.
 *
 * @return The class associated with the given alias. If not found, an exception will be thrown.
 *
 * @throws ReferenceError The alias was not registered.
 *
 * @see #registerClassAlias
 *
 * /
public*/ function getClassByAlias(aliasName/*:String*/)/*:Class*/ {
  var alias/*:Class*/ = null; // TODO: getOrCreatePackage("flash.net.classAliasRegistry")[aliasName];
  if (!alias) {
    throw new ReferenceError(aliasName);
  }
  return alias;
} $primaryDeclaration(getClassByAlias);/*

}
*/
  });
});
//# sourceMappingURL=getClassByAlias.js.map
New to GrepCode? Check out our FAQ X