flash help - xml
flash help - xml
- Started
- Last post
- 7 Responses
- acescence0
you need to access the specific movieclip's url variable via the event object that is passed to the getlink function.
- spmitch0
it seems to be overwriting the url var because when i click on the button all the items go to the same link, but i can't figure out why
- acescence0
var url:String = "blah";
var link:MovieClip = new Linky;
link.myurl = url;
addChild(link);
link.addEventListener(MouseEvent... getLink);function getLink(e:Event):void {
trace(e.target.myurl);
}
- spmitch0
yeah, I got that in there but its overwriting
var url:Srting = il.link[i];
- acrossthesea0
Here's how I'd handle it:
assign an index, push to an array, access the array using the index
- spmitch0
oh, I see thanks