the _name of the object is 'londontext'. The whole point of this excercise is to get the value city name out of the object name which is made up of the city name suffixed with the word 'text'.
i get the first two traces ouputted as 'londontext' so it seems that myString is starting with the correct value for the rest of the script. but then the rest of the code doesnt work. i get 'n' as the third output and nothing fo rthe forth.
but if i start the script myString="londontext", everything works as expected and the third and fourth outputs are 'text' and 'london' respectivelly.
im working on a mac now which for some odd reason wont open the fla file- but when i get home i'll check it out on my PC and let you know how i get on.
the file you attached would not open neither on a mac nor a PC.
could you please post the code attached to the button.
- says file format not recognised ?
all the map dots are the same symbol with different instance names. that's what i want to create for the text links. im working on the vienna text link now. so select the vienna button on the text links layer and edit it- you'll find a button with the code you gave me attached.
thanx
[had to remove some of the text locations to bring down the filesize]
all the map dots are the same symbol with different instance names. that's what i want to create for the text links. im working on the vienna text link now. so select the vienna button on the text links layer and edit it- you'll find a button with the code you gave me attached.
thanx
[had to remove some of the text locations to bring down the filesize]