Solved

passing parametres to event listener function

Posted on 2011-09-27
1
202 Views
Last Modified: 2012-05-12
hi guys

how can i pass parameter to event listener function ?
I have

var columnIndex:int = getKey();
dataGrid.addEventListener(flash.events.KeyboardEvent.KEY_UP,populate); // here i want to pass 'columnIndex' to populate()

private function populate(event: flash.events.KeyboardEvent) : void {      
if(columnIndex == 4 ) {
PopUpManager.addPopUp(tradeLookUp.dataGrid, this, false); //popup the grid            
}
}

any help greatly appreciated      
0
Comment
Question by:royjayd
1 Comment
 
LVL 29

Accepted Solution

by:
dgofman earned 500 total points
ID: 36712526
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now