# getDefinitionByName("Sprite")

**URL:** <https://forum.kirupa.com/t/getdefinitionbyname-sprite/246065>\
**Category:** flash\
**Created:** [December 6, 2007, 7:15pm UTC](https://forum.kirupa.com/t/getdefinitionbyname-sprite/246065 "2007-12-06T19:15:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Felixz](https://avatars.discourse-cdn.com/v4/letter/f/ecb155/32.png) [@Felixz](https://forum.kirupa.com/u/Felixz)\
**Post date:** [December 6, 2007, 7:15pm UTC](https://forum.kirupa.com/t/getdefinitionbyname-sprite/246065/1 "2007-12-06T19:15:03Z")

</div>

Is there a way to call getDefinitionByName() on classes another than those in library?  
This approach gives error  
ReferenceError: Error #1065: Variable SomeVariableClass is not defined.
