Mike Keesey wrote:
One way would be to create a subclass of Event that stores the
parameters.
In this case, though, I wouldn't even do that. You can just use
event.target to determine which button was pressed:
function onPressed(event:Event):void {
var button:Button = Button(event.target);
// Do stuff with button.
}
If you need to specifically use an index number, I'd attach that to the
button instances themselves. Then you could retrieve that via
event.target.
―
Mike Keesey
With the way I do intend to use it, I would have to pass an index as
that index provides the basis for many actions within the onPressed
function. And I am not sure what you mean by attaching the button
instance itself... how would one go about that?
--
dnk
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com