# Referencing variable symbol

**URL:** <https://forum.kirupa.com/t/referencing-variable-symbol/331666>\
**Category:** Uncategorized\
**Created:** [September 21, 2013, 2:00pm UTC](https://forum.kirupa.com/t/referencing-variable-symbol/331666 "2013-09-21T14:00:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrpercival](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@mrpercival](https://forum.kirupa.com/u/mrpercival)\
**Post date:** [September 21, 2013, 2:00pm UTC](https://forum.kirupa.com/t/referencing-variable-symbol/331666/1 "2013-09-21T14:00:36Z")

</div>

I am using Starling with AS3. I have set up a texture like this:

var tilea:Texture = Texture.fromBitmap(new lettera());

There are a series of these textures.

In order to display the textures I use this:  
var suffix = “a”;  
thisTile = “tile” + suffix;  
var tile1:Image = new Image(thisTile);

but this does not work,  
the error it gives is: Type Coercion failed: cannot convert “tilea” to starling.textures.Texture.

what is the best way for me to reference the tilea texture in this manner?
