Solved

passing parametres to event listener function

Posted on 2011-09-27
1
207 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 29

Accepted Solution

by:
dgofman earned 500 total points
ID: 36712526
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
FLEX 3 LineChart doubt 4 284
Flash AS3 & random animation 7 856
labelFunction 3 282
Adobe X Reader 6 358
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…
Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime is disastrous for companies and can lead to major hits on a brand, reputation, an…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

726 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