Hi,
I have an mc.instance name is Twentysecond
it has a text box called label
When clicked Twentysecond populates a text box and I want to use this code
Flash will not let me use an instance name of 22nd.
TwentySecond.label = _name;//(I want this to show 22)
onRelease = function(){
myTextBox = _name; // (I want this to show 22nd
}
I should know how to do this, but memory is failing, hoping some kindly soul can jog it along for me.
Any help appreciated
Hi ilyaslamasse,
When I re - read that post - neither did I understand it (lol!!!) well it is early here !
Anyways, I am halfway there myself, I had made a basic typo and discovered that I can give my instance a name of 22nd
What I need is the correct syntax for indexOf. so that I can remove the nd
Do you know that ilya ? does anyone else ?
Hi,
OK, I got it eventually, a beter description is that I have 31 mc’s representing the days of the month, they are called 1st 2nd 3rd and so on until…31st
What I needed to do was strip out the letters after the numbers so that they appeared in a text box ( label) as 1 2 3 4 and so on
The objective being to use as little AS as possible - this what I came up with for those of you that are following this thread