Multiple Button MouseEvent Listeners not working in continuation in as3?

Hi,
I've multple buttons following this drag structure to scale in different direction various corners of the rectangle:
scale_bottomRight.addEventListener(MouseEvent.MOUSE_DOWN,scaleBottomRight_Start);
function scaleBottomRight_Start(mEvent:MouseEvent):void
/*code*/
          mEvent.target.startDrag(true,new Rectangle(scale_bottomRight.x,scale_bottomRight.y,100,100));
          addEventListener(Event.ENTER_FRAME, update_BottomRight);
function update_BottomRight(event:Event):void
/*code*/
  scale_bottomRight.addEventListener(MouseEvent.MOUSE_UP, scalebottomRight_Stop);
  function scalebottomRight_Stop(event:MouseEvent):void
            event.target.stopDrag();
  event.target.buttonMode = false;
scale_bottomRight.buttonMode = true;
However, after the dragging few buttons, other drag buttons don't work and first button flickers ....... i think not removing eventListeners is the problem.... can anyone guide me what i may be doing wrong and if remove eventListener is the problem, do i need to call them on EXIT_FRAME function (as i don't have one) or within somewhere else?

Try this:
scale_bottomRight.buttonMode = true;
scale_bottomRight.addEventListener(MouseEvent.MOUSE_DOWN, scaleBottomRight_Start);
function scaleBottomRight_Start(e:MouseEvent):void
          e.target.startDrag(true, new Rectangle(scale_bottomRight.x, scale_bottomRight.y, 100, 100));
          stage.addEventListener(MouseEvent.MOUSE_UP, scalebottomRight_Stop);
          addEventListener(Event.ENTER_FRAME, update_BottomRight);
function update_BottomRight(e:Event):void
/*code*/
function scalebottomRight_Stop(e:MouseEvent):void
          stopDrag();
          stage.removeEventListener(MouseEvent.MOUSE_UP, scalebottomRight_Stop);
          removeEventListener(Event.ENTER_FRAME, update_BottomRight);
          e.target.buttonMode = false;

Similar Messages

  • My speaker is not working properly in 4s if i use headphone its working now my volume increase decrease button is also not working properly how can i solve it pl help me my warranty finished

    my speaker is not working properly in 4s if i use headphone its working now my volume increase decrease button is also not working properly how can i solve it pl help me my warranty finished

    Hello. I sent my WRT1900AC V1 to Linksys four days ago (Monday) via UPS with a RMA. Linksys paid the shipping and everything. The router is still in route, and it should arrive to their offices tomorrow. Once they receive the WRT1900 AC V1, they are going to send me an EA8500 as a replacement. But I have been reading the comments about the EA8500 here in the forum and it seems to have the same problems. I guess the firmware is extremely flawed in both routers (maybe it is almost the same code?). Anyway, I will try the EA8500 and I hope it works. I bought a temporary router from Walmart and I paid $35 for it. It is a Belink N600 DB. I can't believe that a $35 router is working a lot, lot, lot better than my previous $250 WRT1900AC router. Unbelievable. If the EA8500 doesn't work, I'm going to try and get my money back from Linksys, or contact The Consumerist or someone to get my money back and get a Nighthawk instead.

  • HT4623 iOS 6.1 no longer available because you are no longer connected to the internet- this is what my iphone 4 shows. iv tried switching off again and again, closing apps by double tapping the home button but still not working. please help.

    this is what my iphone 4 shows. iv tried switching off again and again, closing apps by double tapping the home button but still not working. please help.
    is there any other method to download ios 6.1.2.
    my phone is not being recognized by itunes on my new windows 8. neither its working on touch copy.
    kindly help.
    thanks

    well in thatcase, i need another help .
    thanks for your instant reply.
    i have currently bought a new laptop (windows 8) and my iphone is not being recognized by itunes.
    because i have no backup on my previous laptop, i downloaded touchcopy but even touch copy is not recognizing my iphone.

  • Why isn't my back button in Safari not working? I am constantly resetting Safari.

    Why isn't my back button in Safari not working? I am constantly resetting Safari.

    Cheryl...
    Go to ~/Library/Caches/com.apple.Safari
    Move the Cache.db (or ApplicationCache.db) file from the com.apple. Safari folder to the Trash.
    Restart your Mac. Launch Safari. Try the back button.
    ~ (Tilde) character represents the Home folder.

  • What to do now when my iPad won't turn on after I turn it off. It shows only the apple logo. I am sure it has above 70% charge as when I sync my iPad it shows necessary detail in iTunes. I have tried, HOME & POWER button, but did not work.

    What to do now when my iPad won't turn on after I turn it off. It shows only the apple logo. I am sure it has above 70% charge as when I sync my iPad it shows necessary detail in iTunes. I have tried, HOME & POWER button, but did not work.

    First try a Reset  ( No Data will be Lost )
    Press and hold the Sleep/Wake button and the Home button at the same time for at least Ten seconds... (But can take Longer)... until the Apple logo appears. Release the Buttons
    If no joy... Try a Restore...
    1: Connect the device to Your computer and open iTunes.
    2: If the device appears in iTunes, select and click Restore on the Summary pane.
    Restoring  >  http://support.apple.com/kb/HT1414
    Make sure you have the Current Version of iTunes Installed on your computer
    iTunes free download from www.itunes.com/download
    3: If Unable to Restore, try using the Steps in this article to force the device into Recovery Mode.
    Note on Recovery Mode.
    You may need to try this More than Once... Be sure to Follow ALL the Steps...
    After you have Recovered your Device...
    Re-Sync your Content or Restore from the most Recent Backup...
    Restore from Backup  >  http://support.apple.com/kb/ht1766

  • Disabling Radio Button Conditionally is not working Well

    Hi friends,
    I have three radio buttons
    <li>self
    <li>New Hire
    <li>On Behalf of
    I will be showing this radio button conditionally according to the user who logs into the application.
    Assume, suppose if a person 'A' enters into the application means he will be shown only these radio button options ---NH---,----OB----,----Self-----
    Suppose, if a person 'B' enters into the application means he will be shown only these radio button options ----NH----,----Self---
    If a person 'C' enters into the application means he will be shown only these radio button options ---Self---
    I have restricted those radio buttons according to the users who enter into the application using their roles.
    But my challenge here is once the user logged in and if he select anyone of the radio button means,
    Example if he selects----NH---means, then ---OB----and -----Self---radio button has to disable and if he selects ---OB----means then ----NH-----and ---Self---has to
    disable(vice versa).
    I have also achieved the same using the DA.
    With true action as: javascript Expression i have given the following codings( i have written the below DA for three cases, if the request_class_code is equal to
    (NH,OB,S)
    var enabled=$v('P22_REQUEST_CLASS_CODE');
    if (!$u_SubString(enabled,'S')) $('#P22_REQUEST_CLASS_CODE_2').attr("disabled","disabled");
    if (!$u_SubString(enabled,'NH')) $('#P22_REQUEST_CLASS_CODE_0').attr("disabled","disabled");
    if (!$u_SubString(enabled,'OB')) $('#P22_REQUEST_CLASS_CODE_1').attr("disabled","disabled"); The above DA is working great only for the user who has the option of viewing three radio buttons in my form(i.e)(NH,OB,S).
    For the user who has the option of viewing two or one radio button, it is not working properly(i.e)(NH,S) or(OB,S) or(S).
    Why it is not working for the user with two options or with one option radio button means, the source of that radio button property is changing. Since i have taken
    the source of my radio button in my DA only when the three options are present.
    How i can solve this issue for the user who is having this two radio option or one radio option.
    Hope you understood clearly about the problem.
    Brgds,
    Mini

    Hi,
    If I did understand what you like have this might work
    var lVal = $v('P22_REQUEST_CLASS_CODE');
    $('#P22_REQUEST_CLASS_CODE input:not([value="' + lVal + '"])').attr("disabled","disabled");Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME

  • Satellite M70: Control button keys are not working

    I currently reformatted my M70 to WinXp Pro Sp2, downloaded all related TOSHIBA drivers and related programs [ie. Toshiba control button driver / program] and system is running normal. However, CONTROL BUTTON keys are not working, was working fine with XP Home edition and Win Media but when I called Toshiba Support they couldn't help me because I had upgraded to Xp Pro. My Question is...Is there a fix or a solution to this issue and where can I download or find this fix.
    Thanks
    Emm

    Hey Folks
    Thanks for the advice, however, I did download the control driver and the controls program for the M70 model AND installed them in that order. The Controls Driver installs correctly but unfortunately, when installing the Controls Program, I get a message that the program will not install because it's not the right version for my M70-CL3 [PSM73C]. Not sure what to do here. I would think that everything should work properly seeing as taking the step up to XPPro SP2 isn't that far of a stretch.

  • I am about to buy and iphone 4, its second hand and is in amazing condition. The only problem is that the 'wi-fi' button doesn't not work. I tried to click on it but nothing responds. Can this be fixed? Should i still purchase it?

    I am about to buy and iphone 4, its second hand and is in amazing condition. The only problem is that the 'wi-fi' button doesn't not work. I tried to click on it but nothing responds. Can this be fixed? Should i still purchase it?

    while you are with the person selling it to you, ask if you can do a complete restore of the software settings->general->reset->reset all
    reboot the phone to factory settings and see if that fixes the problem.  if not, i wouldn't buy it unless they are selling it to you for less than $50.  wifi is crucial for keeping data low and using features like facetime

  • Help - Multiple native extensions do not work

    Dear Adobe Air developer community and Adobe employees,
    My game dev. studio www.GoldSunGames.com is nearing completion on our biggest title developed with Adobe Air for iOS. During development we've hit countless  technical bumps in the road including issues with low memory, low performance and many others I can happily say have now been solved in big part to the help we've received from the Adobe Flash/Air community. Thanks!
    I am now reaching out to the community and any Adobe employees reading this to solve our last remaining major issue/bug with Adobe Air which is holding us back from releasing our title.
    Multiple native extensions do not work
    We can get any one single native extension to work including Game Center (with the help of MilkManGames). But multiple extensions together simply do not work. We are required by our publisher to have other iOS features included which require the use of multiple native extensions.
    A detailed break down of the programming process we are using can be found here:
    http://forums.adobe.com/thread/923158?tstart=0
    Any and all help is greatly appreciated. Free copy of the game in question "Megaplex Madness 2" to the problem solver or solvers.

    Thanks to Saumitra Bhave the problem has been solved!
    >> Does http://forums.adobe.com/message/4026961#4026961 help?
    Thanks

  • When i compare multiple attribute it is not working in MDX query

    Hi All,
    i have create a measuer please see below code,
    MEMBER [Measures].[a] as
    case when
    [DimProduct].[Portfolio].CURRENTMEMBER.MEMBERVALUE="Fungicide"  //Working
    then "1"
    when [DimProduct].[Portfolio].CURRENTMEMBER.MEMBERVALUE="Herbicide"  //Working
    then "1"
    when  [DimProduct].[Portfolio].CURRENTMEMBER.MEMBERVALUE="Seed" //Working
    then "3"
    when ([DimProduct].[Portfolio].CURRENTMEMBER.MEMBERVALUE="Fungicide" //Not working
    and [DimProduct].[Portfolio].CURRENTMEMBER.MEMBERVALUE="Seed")
    then "1and2"
    when  ([DimProduct].[Portfolio].CURRENTMEMBER.MEMBERVALUE="Fungicide"  //Not Working
    and [DimProduct].[Portfolio].CURRENTMEMBER.MEMBERVALUE="Seed"  )
    then "1and3"
    end
    when i compare multiple attribute it is not working.

    Hi manishcal16PPS,
    According to your description, your calculated measure is not working when two when statement together. Right?
    In this scenario, since the conditions in your case when statement are exclusive, you should use OR instead of AND operator.
    when  ([DimProduct].[Portfolio].CURRENTMEMBER.MEMBERVALUE="Fungicide"  
    OR
    [DimProduct].[Portfolio].CURRENTMEMBER.MEMBERVALUE="Seed"  )
    then "1and3"
    Best Regards,
    Simon Hou
    TechNet Community Support

  • Hi. The buttons and wheel of my iPod 4th generation do not work. The hold button resets the iPod, and the shuffle shake works. The music plays by shuffling but I can't access albums etc due to the buttons and wheel not working.

    Hi. The buttons and wheel of my iPod 4th generation do not work. The hold button resets the iPod, and the shuffle shake works. The music plays by shuffling but I can't access albums etc due to the buttons and wheel not working.

    Did you restore from backup?
    Next would be to restore to factory settings/new iPod since maybe you have some corruption in the backup

  • Hi all, Since I updated to Mavericks I am having trouble with Safari showing all the buttons/clickable options, but they are gray and will not work. Specifically, the Trash Can/Delete and the "Move to" folder button simply do not work. Any ideas?

    Hi all, Since I updated to Mavericks I am having trouble with Safari showing all the buttons/clickable options, but they are gray and will not work. Specifically, the Trash Can/Delete and the "Move to" folder button simply do not work. Any ideas?

    Please post a screenshot that shows what you mean. Be careful not to include any private information.
    Start a reply to this message. Click the camera icon in the toolbar of the editing window and select the image file to upload it. You can also include text in the reply.

  • I updated my iPhone 4S to the new IOS 6 I like it but the problem I found the Wifi button it's not working any more it looks hidden , so what I should do to solve this issue ASAP

    I updated my iPhone 4S to the new IOS 6 I like it but the problem I found the Wifi button it's not working any more it looks hidden , so what I should do to solve this issue ASAP

    Tap Settings App > General > Reset > Reset Network Settings. See if fixed. If not, Restore Firmware with iTunes on computer. See if fixed. If not, all iPhone 4S have Warranty, make Genius reservation and take iPhone to Apple for resolution.

  • HT1199 Help. Forward button on keyboard not working on itunes anymore. anyone have any ideas?

    Forward button on keyboard not working on itunes anymore. This always used to work i don't know what has changed. Click on next track works also does the remote control.

    If you are referring to the functional keys on top. do you press FN key together with the F7, F8 or F9? Does that work?
    I hardly ever use the F keys as CMD_ARROW is much faster for me and SPACE bar stops or starts as long as iTunes app is in the foreground

  • My sleep/wake button is now not working and than I faced problems with my sound, now my iphone speakers aren't working? What shall I do?

    My sleep/wake button is now not working and than I faced problems with my sound, now my iphone speakers aren't working? What shall I do?

    The problem isn't solved after the restore, shall I bring my phone to the AppStore? Will they give me a new one? Or I should pay for that. Warranty is until December 2013;)

Maybe you are looking for