Finally! I remembered that in order to call a Class with getDefinitionByName, I first needed to create an instance of it in Flash.