Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

passing parametres to event listener function

Posted on 2011-09-27
1
Medium Priority
?
220 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 2000 total points
ID: 36712526
0

Featured Post

New Tabletop Appliances Blow Competitors Away!

WatchGuard’s new T15, T35 and T55 tabletop UTMs provide the highest-performing security inspection in their class, allowing users at small offices, home offices and distributed enterprises to experience blazing-fast Internet speeds without sacrificing enterprise-grade security.

Question has a verified solution.

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

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 a use case, a user needs to close an opened report by simply pressing the Escape (Esc) key. This can be done by adding macro code in Report_KeyPress or Report_KeyDown event.
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month7 days, 8 hours left to enroll

824 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