Login Form






Lost Password?
No account yet? Register

Syndicate

Newsflash

 They enter the next stage of his career and being the new face of Givenchy perfume, 39-year-old Uma Thurman shows the world her new, mature image, talking about motherhood, aging and beauty.
 
FireBoard
Welcome, Guest
Please Login or Register.    Lost Password?
a private function event listener not being removed (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: a private function event listener not being removed
#45933
Ozzy OG Kush (Visitor)
Click here to see the profile of this user
Birthdate:
a private function event listener not being removed  
I'm writing a scheduling program, and I have an HTTPService _object_ called 'srv'. At the beginning of the program it sets srv.addEventListener(ResultEvent.RESULT, addToGrid); and calls srv.send ();. Now in 'addToGrid' I have: srv.removeEventListener(ResultEvent.RESULT, addToGrid); srv.addEventListener(ResultEvent.RESULT, updateGrid); but it still calls 'addToGrid' after I call 'srv.send();' in another part of the program. It does play the new 'updateGrid' as well. Any idea why it still plays the 'addToGrid'?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#45934
ejbelair (Visitor)
Click here to see the profile of this user
Birthdate:
a private function event listener not being removed  
called 'srv'. At the beginning of the program it sets srv.addEventListener(ResultEvent.RESULT, addToGrid); and calls srv.send ();. Now in 'addToGrid' I have: srv.removeEventListener(ResultEvent.RESULT, addToGrid); srv.addEventListener(ResultEvent.RESULT, updateGrid); but it still calls 'addToGrid' after I call 'srv.send();' in another part of the program. It does play the new 'updateGrid' as well. Any idea why it still plays the 'addToGrid'?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#45935
Ozzy OG Kush (Visitor)
Click here to see the profile of this user
Birthdate:
a private function event listener not being removed  
addToGrid eventListener is added, and where srv.send() is called. I have a feeling it may just be a coding mistake.... On Sep 22, 2:29 pm, Ozzy OG Kush < This e-mail address is being protected from spam bots, you need JavaScript enabled to view it wrote: I'm writing a scheduling program, and I have an HTTPService _object_ called 'srv'. At the beginning of the program it sets srv.addEventListener(ResultEvent.RESULT, addToGrid); and calls srv.send ();. Now in 'addToGrid' I have: srv.removeEventListener(ResultEvent.RESULT, addToGrid); srv.addEventListener(ResultEvent.RESULT, updateGrid); but it still calls 'addToGrid' after I call 'srv.send();' in another part of the program. It does play the new 'updateGrid' as well. Any idea why it still plays the 'addToGrid'?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Who's Online

We have 72 guests online

Fred Dust - divorced after 2 month of marriage

And it all could be so beautifu... car supermarket reviews.great-auto.co.uk used cars lA little over two months ago, lucky singer Limp Bizkit, Fred Durst, announced to the world on a blog that he married his girlfriend, Esther Nazarov. Relationship had to be perfect, couple well-chosen and proven over the years. Unfortunately, only a few weeks after the intimate ceremony in Las Vegas Durst once wrote in an online diary: I would like to cars.auto-hobby.co.uk india phone card used and new cars inform all concerned that Esther and I decided that it was time to go separate ways in life. Thank you to everyone who supported us. I am grateful for the support and warm words. Very. I can also say that they both hold up well and parting culturally, in a positive atmosphere.

Pamela Anderson: I'm not a bancrupt!

A few days ago we wrote Wohnwagen entsorgen previews.peugeot-used.co.uk reviews.dodge-used.co.uk about the debt, which has caused the Pamela Anderson, as every year, changing the decor of his house. The owner of the famous zgranulowanych breast wished costly and sophisticated alterations, and when the contractor sent its bill Ceased to answer calls. Currently, debt is more than 1.2 million dollars, but Pam Ambien sleeping pill motorization.cars-site.co.uk moto.excellent-car.co.uk insists that ... There are no debts. I am completely financially stable, and I thank all those who contested the recent media reports - wrote in a statement issued yesterday Anderson. It is true that I am still in the course of discussions with some of the subcontractors working on my house. But that's because after paying millions of dollars for its construction still get a wrong call for payment of accounts. My lawyers check out how the work travel and money web blog payroll blog Furniture accessories directory has been done and whether professionals actually have the right to require such enormous sums. Where appropriate, it will pay, if not - it does not. I am only sorry that one of the performers went with the whole affair to the press.