Re: [flexcoders] How to add "click" to a Image when using AS / AddChild

2007-09-04 Thread Michael Schmalle
Hi, try newImage.data = //set here and you can access it in the click handler newImage.addEventListener(MouseEvent.CLICK, doStuff); Peace, Mike On 9/4/07, oneproofdk <[EMAIL PROTECTED]> wrote: > > Hi > > I'm adding images to a vbox using as and addchild. > Only thing is, that I cant figure out

[flexcoders] How to add "click" to a Image when using AS / AddChild

2007-09-04 Thread oneproofdk
Hi I'm adding images to a vbox using as and addchild. Only thing is, that I cant figure out how to make the image accept a click - see below: private function updatePageList(data:ArrayCollection):void { for (var i:int=0; i