Hi everyone!
I’ve had a slight problem with this thing I’m trying to make, its basically a map, that loads a XML document, where it says the points of the streets and the name. Well… I have a function, that creates all the streets, wich works just fine. All the streets are located in different movieclips, that are like _root.streets.street0,street1,street2,etc. My problem is that I want to store a Variable in lets say: _root.streets.street1.streetName but, if I put the variable in the function, it erases it when it completes, how would I make it not dissapear? I don’t think making it global would solve my problem…
Hope you can understand my question, if you need anymore information, just explain what you don’t understand and I’ll try to explain better. Thank you all!
yeah, I get it, but how whould it get the name of the street? is there a value that gets the instance name of a movieclip? otherwise it wouldn’t be posible.
EDITED:
I found the _name property, I think I will solve it, otherwise I have another idea that might work, just put all the code in frame 2 and not make it a function… thanks alot man!!!
EDITED AGAIN:
Yes your array thing works!!! thanks a lot