# Retrieving a character from a string

**URL:** <https://forum.kirupa.com/t/retrieving-a-character-from-a-string/281375>\
**Category:** Uncategorized\
**Created:** [February 8, 2009, 3:11pm UTC](https://forum.kirupa.com/t/retrieving-a-character-from-a-string/281375 "2009-02-08T15:11:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![capdetrons](https://avatars.discourse-cdn.com/v4/letter/c/df705f/32.png) [@capdetrons](https://forum.kirupa.com/u/capdetrons)\
**Post date:** [February 8, 2009, 3:11pm UTC](https://forum.kirupa.com/t/retrieving-a-character-from-a-string/281375/1 "2009-02-08T15:11:36Z")

</div>

I would like to delete the movieClip that created this variable “tall” in this code I attach if it were to be a certain suit, but I keep getting undefined error messages…

I think it’s because it is’nt a string variable, but I am not sure since it has been retreived from the server like in the line below: maTall.push(String(variables.tall1)); I thought that String there specifies making it a string…

Any help will be appreciated, thanks,

Jordi

this.attachMovie(“repartiment”, “repartiment”, this.getNextHighestDepth(), {\_x:200, \_y:200});  
var tall:Array = new Array();  
/\*if (tall.susbtr(0, 1) != o) {  
this.removeMovieClip(“repartiment”);  
}  
\*/

onClipEvent (load) {  
\_root.es.pluginRequest(“Plugin7Mig”, “mostrarTall1”, variables);  
\_root.es.pluginMessageReceived = function(plugin, action, variables) {  
\_global.maTall = new Array();  
maTall.push(String(variables.tall1));  
\_root.tall.push(\_global.maTall);  
trace("Arrel de \_parent: " + \_root.tall);  
trace("Arrel d’aquí : " + maTall)  
gotoAndStop(maTall);  
};  
}
