I have a symbol called MapNameText and a dynamic text field inside called "innerText".
I'm trying to make it change the text when i click on the object they're all in but it doesnt work
Relevant part of my actionscript:
var MapName:String;
this.onMouseDown = function()
{
trace(MapNameText['innerText'].text);
MapName= MapNameText['innerText'].text;
switch(MapName)
{
case "Classic":
this.MapNameText['innerText'].text = "Crystal";
trace(this.MapNameText['innerText'].text);
case "Crystal":
MapNameText['innerText'].text = "Volcano";
case "Volcano":
MapNameText['innerText'].text = "Classic";
}
}
In the output window i get "Classic" "Crystal" But the text doesn't update in my object, it's confusing me a lot and im not sure what to do
Can anyone please lend me a hand with how to fix this?