Need help on fixing this bug

Hello!
I have my cod which needs some bug fixing. This is a drag and drop application where the user will drap the correct answer on corresponding targets. My problem here is, when one target is already occupied by an object i can still drop another object there, which shouldn't. can you please help me fix this?
thanks in advance!
Sincerely.
Milo
Here's my code:
var startX: Number;
var startY: Number;
var correct: Number = 0;
var attempt: Number = 0;
var currentlyDragged:MovieClip;
// collection of objects stored in array
// so that you can reference them programmatically
var objects:Array = [at1, in1, in2, in3, in4, in5, in6, in7, in8, on1, on2];
activateObjects();
// assigns listeners and other functionality to the objects in objects array
function activateObjects():void {
     for each(var mc:MovieClip in objects) {
          mc.addEventListener(MouseEvent.MOUSE_DOWN, pickObject);
          mc.buttonMode = true;
          // assign drop targets based on names
          switch(String(mc.name).substring(0, 2)) {
               case "at":
                    mc.dropTargets = [targetAT1];
               break;
               case "in":
                    mc.dropTargets = [targetIN1, targetIN2, targetIN3, targetIN4, targetIN5, targetIN6, targetIN7, targetIN8];
               break;
               case "on":
                    mc.dropTargets = [targetON1, targetON2];
               break;
function pickObject(e:MouseEvent):void {
     currentlyDragged = MovieClip(e.currentTarget);
     currentlyDragged.startDrag();
     startX = currentlyDragged.x;
     startY = currentlyDragged.y;
     stage.addEventListener(MouseEvent.MOUSE_UP, dropObject);
function dropObject(e:MouseEvent):void {
     stage.removeEventListener(MouseEvent.MOUSE_UP, dropObject);
     stopDrag();
     var droppedOn:MovieClip;
     if (currentlyDragged.dropTarget) {
          // loop through targets belonging to the currently dragged clip
          for each(var mc:MovieClip in currentlyDragged.dropTargets) {
               if (currentlyDragged.hitTestObject(mc)) {
                    // get the target
                    droppedOn = mc;
                    currentlyDragged.removeEventListener(MouseEvent.MOUSE_DOWN, pickObject);
                    currentlyDragged.buttonMode = false;
                    currentlyDragged.x = droppedOn.x;
                    currentlyDragged.y = droppedOn.y;
                    correct++;
                    correctCounter.text = String(correct);
                    // stop loop - it is not necessary to continue
                    break;
     attempt++;
     attemptCounter.text = String(attempt);
     // return to the initial position if there is no hit
     if (!droppedOn) {
        currentlyDragged.x = startX;
        currentlyDragged.y = startY;
     if (correct == objects.length) {
          var congrats:CongratsMC = new CongratsMC();
          // place i in the middle of the screen
          congrats.x = (stage.stageWidth - congrats.width) * .5;
          congrats.y = (stage.stageHeight - congrats.height) * .5;
          addChild(congrats);

Try the code below.
Also, use int instead of Number whenever possible - it is smaller and faster.
import flash.display.MovieClip;
import flash.display.Sprite;
var startX:Number;
var startY:Number;
var correct:int = 0;
var attempt:int = 0;
var currentlyDragged:MovieClip;
// collection of objects stored in array
// so that you can reference them programmatically
var objects:Array = [at1, in1, in2, in3, in4, in5, in6, in7, in8, on1, on2];
var congrats = new CongratsMC();
congrats.addEventListener("close", closeCongrats);
activateObjects();
// assigns listeners and other functionality to the objects in objects array
function activateObjects():void {
     for each(var mc:MovieClip in objects) {
          mc.addEventListener(MouseEvent.MOUSE_DOWN, pickObject);
          mc.buttonMode = true;
          // assign drop targets based on names
          switch(String(mc.name).substring(0, 2)) {
               case "at":
                    mc.dropTargets = [targetAT1];
               break;
               case "in":
                    mc.dropTargets = [targetIN1, targetIN2, targetIN3, targetIN4, targetIN5, targetIN6, targetIN7, targetIN8];
               break;
               case "on":
                    mc.dropTargets = [targetON1, targetON2];
               break;
function pickObject(e:MouseEvent):void {
     currentlyDragged = MovieClip(e.currentTarget);
     currentlyDragged.startDrag();
     startX = currentlyDragged.x;
     startY = currentlyDragged.y;
     stage.addEventListener(MouseEvent.MOUSE_UP, dropObject);
function dropObject(e:MouseEvent):void {
     stage.removeEventListener(MouseEvent.MOUSE_UP, dropObject);
     stopDrag();
     var droppedOn:MovieClip;
     correctCounter.text = String(correct);
     if (currentlyDragged.dropTarget) {
          // loop through targets belonging to the currently dragged clip
          for each(var mc:MovieClip in currentlyDragged.dropTargets) {
               if (currentlyDragged.hitTestObject(mc)&& mc.notUsed) {
                    // get the target
                    droppedOn = mc;
                    mc.notUsed = false;
                    currentlyDragged.removeEventListener(MouseEvent.MOUSE_DOWN, pickObject);
                    currentlyDragged.buttonMode = false;
                    currentlyDragged.x = droppedOn.x;
                    currentlyDragged.y = droppedOn.y;
                    correct++;
                    correctCounter.text = String(correct);
                    removeTarget(droppedOn);
                    // stop loop - it is not necessary to continue
                    break;
     attempt++;
     attemptCounter.text = String(attempt);
     // return to the initial position if there is no hit
     if (!droppedOn) {
        currentlyDragged.x = startX;
        currentlyDragged.y = startY;
     if (correct == objects.length) {
          // place i in the middle of the screen
          congrats.x = (stage.stageWidth - congrats.width) * .5;
          congrats.y = (stage.stageHeight - congrats.height) * .5;
          addChild(congrats);
function removeTarget(target:Sprite):void {
     var i:int = 0;
     for each(var mc:MovieClip in objects) {
          for (i = 0; i < mc.dropTargets.length; i++) {
               if (mc.dropTargets[i] == target) {
                    mc.dropTargets.splice(i, 1);
function closeCongrats(e:Event):void {
     removeChild(congrats);

Similar Messages

  • HT1206 I can't log into the Itunes store.  I type in my Apple ID and my password and the message "This Apple ID cannot be used for the iTunes Store." "Enter another Apple ID."  I need help on fixing this.

    I can't log into the Itunes store.  I type in my Apple ID and my password and the message "This Apple ID cannot be used for the iTunes Store." "Enter another Apple ID."  I need help on fixing this.

    Yeah I'm starting to see a ton of forums posts right now about the same thing :/ I wonder what's going on

  • Help me fix this bug please

    i have a problem: when a user logs out i invalidate their session but if they click browser 'back' button then they get into a jsp that requires authorization even they no longer have the authorization. How do I fix this?

    make sure that
    a) all pages have the authorization check
    and
    b) you have these headers on all pages to prevent caching
    response.setHeader("Pragma","No-cache");
    response.setHeader("Cache-Control","no-cache");
    response.setDateHeader("Expires",0);

  • I need help on fixing the bug in my ipod 4

    I called apple they sent me an email now do i just reset the hole thing??

    There are various programs out there for recovering photos from an iPod, have a look at the ones below. If you search the internet you can find more:
    iPodPhotoCopy Windows only
    CopyPodPhoto Windows only
    iPod Photo Liberator Mac & Windows
    iPodCopy Mac and Windows Versions
    If you have full resolution copies of the photos on the iPod have a look here: Apple Knowledge Base article - Use Disk Mode to copy photos from iPod

  • The backup disk image "/Volumes/Data/David Witkowski's Mac Pro.sparsebundle" is already in use.  Whenever Time Machine starts to backup to Time Capsuel I get the previous error message. I need some help to fix this.

    The backup disk image “/Volumes/Data/David Witkowski’s Mac Pro.sparsebundle” is already in use.  Whenever Time Machine starts to backup to Time Capsuel I get the previous error message Where can I find this disk image?. I need some help to fix this.
    Thanks,
    David W

    There are multiple answers and solutions if you look just to the right under the heading of More Like This.

  • The last upgrade to iphone5 coused a big problem with my phone signle it always shows' no servise' plz help my phone is new i have recently bought it .plz if u may offer a new update to fix the weak signle of iphone5.i trust u .so plz fix this bug.

    plz help after the last update of the software my iphone 5 shows" no servise" no signle. plz if u offer a new update to fix this bug.

    I would restore the phone as new
    iTunes: Restoring iOS software - Apple
    then get it replaced through apple

  • Flicker footage in Premiere Pro CC 2014.2. Tested on different computers. When waiting for fixes this bug?

    Flicker appears solely the fault of Premiere Pro CC 2014.2. Tested on different computers. Used as nVidia Quadro and GeForce GTX770. Drivers were different. Everywhere equally evident flicker. Incidentally, it defies logic and may occur at different film pieces. If re-render that flicker may occur on another spot in the video.
    It can occur even in the parts without filters !!! But no all time.
    ver 2014.2 - win 7 - intel i7-4770 - gtx 770 - flicker!
    ver 2014.2 - win 7 - intel i7-4770 - Intel HD Graphics 4600 - flicker!
    ver 2014.2 - win 7 - intel i7-2700K - quadro 2000 - flicker!
    MERCURY PLAYBACK ENGINE work fine! But still flickering in preview and render.
    When waiting for fixes this bug?

    Hi Aleksey,
    Flicker appears solely the fault of Premiere Pro CC 2014.2. Tested on different computers. Used as nVidia Quadro and GeForce GTX770. Drivers were different.
    Have you tried with the Mercury Playback Engine set to "Software Only?" More info please: FAQ: What information should I provide when asking a question on this forum?
    Everywhere equally evident flicker. Incidentally, it defies logic and may occur at different film pieces. If re-render that flicker may occur on another spot in the video.
    Is this a brand new project or one you updated from an earlier version? What kind of footage are you exporting? Which preset are you using?
    When waiting for fixes this bug?
    If I can repeat the case here with the same hardware, GPU, and drivers, that would be easier to fix the bug. Currently, I cannot recreate the bug.  If you or anyone else can provide me with steps to recreate the bug, that would help immensely. It sounds like this will be the difficult thing.
    Thanks,
    Kevin

  • I have updated my Macbook Pro from 10.7.5 to 10.9.1 and it keeps on restarting after upgrade. Please help me fix this issue.

    Hi All,
    I have updated the Macbook Pro from 10.7.5 to 10.9.1 today and once it is done I restarted the system and it keeps on crashing/restarting the system every 2 min.
    I have found the below backtrace. Please help me fix this issue.
    Anonymous UUID:  
    C72C8841-51A0-BB21-689C-2AB204820087
    Mon Dec 30 23:57:23 2013
    panic(cpu 0 caller 0xffffff801da5260f): "a freed zone element has been modified: expected 0xdeadbeefdeadbeef but found 0, bits changed 0xdeadbeefdeadbeef, at offset 8 of 128 in zone: kalloc.128"@/SourceCache/xnu/xnu-2422.1.72/osfmk/kern/zalloc.c:461
    Backtrace (CPU 0), Frame : Return Address
    0xffffff8096bf3690 : 0xffffff801da22f69
    0xffffff8096bf3710 : 0xffffff801da5260f
    0xffffff8096bf3770 : 0xffffff801da51d09
    0xffffff8096bf3870 : 0xffffff801da2aa2f
    0xffffff8096bf38a0 : 0xffffff801dde080d
    0xffffff8096bf38e0 : 0xffffff7f9fcada11
    0xffffff8096bf3930 : 0xffffff7f9fcae16e
    0xffffff8096bf39a0 : 0xffffff7f9fcae523
    0xffffff8096bf39d0 : 0xffffff801dc13438
    0xffffff8096bf3a00 : 0xffffff801dd83378
    0xffffff8096bf3a70 : 0xffffff801dbfd1ae
    0xffffff8096bf3ae0 : 0xffffff801dbf437a
    0xffffff8096bf3b80 : 0xffffff801dbe5f15
    0xffffff8096bf3c30 : 0xffffff801dbe67d2
    0xffffff8096bf3f50 : 0xffffff801de3de23
    0xffffff8096bf3fb0 : 0xffffff801daf3e06
    Kernel Extensions in backtrace:
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib(1.0d1)[E163B7AE-F6E5-328 6-B827-66DB3FE3DB7B]@0xffffff7f9fcac000->0xffffff7f9fcaffff
    BSD process name corresponding to current thread: applet
    Mac OS version:
    13B42
    Kernel version:
    Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64
    Kernel UUID: 1D9369E3-D0A5-31B6-8D16-BFFBBB390393
    Kernel slide:
    0x000000001d800000
    Kernel text base: 0xffffff801da00000
    System model name: MacBookPro7,1 (Mac-F222BEC8)
    System uptime in nanoseconds: 172506613860
    last loaded kext at 107245362778: com.trendmicro.kext.KERedirect 1.0.0 (addr 0xffffff7f9ff33000, size 24576)
    loaded kexts:
    com.trendmicro.kext.KERedirect 1.0.0
    com.logmein.driver.LogMeInSoundDriver 1.0.0
    org.virtualbox.kext.VBoxUSB 3.2.6
    org.virtualbox.kext.VBoxDrv 3.2.6
    com.apple.driver.AppleHWSensor 1.9.5d0
    com.apple.driver.AppleHDAHardwareConfigDriver 2.5.3fc1
    com.apple.driver.AudioAUUC 1.60
    com.apple.driver.AGPM 100.14.11
    com.apple.driver.AppleTyMCEDriver 1.0.2d2
    com.apple.driver.AppleMikeyHIDDriver 124
    com.apple.driver.AppleHDA 2.5.3fc1
    com.apple.iokit.IOBluetoothSerialManager 4.2.0f6
    com.apple.filesystems.autofs 3.0
    com.apple.GeForceTesla 8.1.8
    com.apple.driver.AppleSMCLMU 2.0.4d1
    com.apple.iokit.IOUserEthernet 1.0.0d1
    com.apple.Dont_Steal_Mac_OS_X 7.0.0
    com.apple.driver.AppleHWAccess 1
    com.apple.driver.AppleMikeyDriver 2.5.3fc1
    com.apple.driver.ACPI_SMC_PlatformPlugin 1.0.0
    com.apple.driver.AppleMuxControl 3.4.12
    com.apple.driver.AppleBacklight 170.3.5
    com.apple.driver.AppleLPC 1.7.0
    com.apple.driver.AppleUpstreamUserClient 3.5.13
    com.apple.nvidia.NVDAStartup 8.1.8
    com.apple.driver.SMCMotionSensor 3.0.4d1
    com.apple.iokit.IOBluetoothUSBDFU 4.2.0f6
    com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport 4.2.0f6
    com.apple.driver.AppleMCCSControl 1.1.12
    com.apple.driver.AppleUSBTCButtons 240.2
    com.apple.driver.AppleIRController 325.7
    com.apple.driver.AppleUSBTCKeyEventDriver 240.2
    com.apple.driver.AppleUSBTCKeyboard 240.2
    com.apple.driver.AppleUSBCardReader 3.3.5
    com.apple.driver.AppleFileSystemDriver 3.0.1
    com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
    com.apple.BootCache 35
    com.apple.iokit.SCSITaskUserClient 3.6.0
    com.apple.driver.XsanFilter 404
    com.apple.iokit.IOAHCIBlockStorage 2.4.0
    com.apple.iokit.AppleBCM5701Ethernet 3.6.9b9
    com.apple.driver.AirPort.Brcm4331 700.20.22
    com.apple.driver.AppleAHCIPort 2.9.5
    com.apple.driver.AppleFWOHCI 4.9.9
    com.apple.driver.AppleUSBHub 650.4.4
    com.apple.driver.AppleUSBEHCI 650.4.1
    com.apple.driver.AppleUSBOHCI 650.4.1
    com.apple.driver.AppleSmartBatteryManager 161.0.0
    com.apple.driver.AppleRTC 2.0
    com.apple.driver.AppleHPET 1.8
    com.apple.driver.AppleACPIButtons 2.0
    com.apple.driver.AppleSMBIOS 2.0
    com.apple.driver.AppleACPIEC 2.0
    com.apple.driver.AppleAPIC 1.7
    com.apple.driver.AppleIntelCPUPowerManagementClient 216.0.0
    com.apple.nke.applicationfirewall 153
    com.apple.security.quarantine 3
    com.apple.driver.AppleIntelCPUPowerManagement 216.0.0
    com.apple.AppleGraphicsDeviceControl 3.4.12
    com.apple.driver.DspFuncLib 2.5.3fc1
    com.apple.vecLib.kext 1.0.0
    com.apple.iokit.IOSerialFamily 10.0.7
    com.apple.kext.triggers 1.0
    com.apple.nvidia.classic.NVDANV50HalTesla 8.1.8
    com.apple.iokit.IOAudioFamily 1.9.4fc11
    com.apple.kext.OSvKernDSPLib 1.14
    com.apple.iokit.IOSurface 91
    com.apple.iokit.IOBluetoothFamily 4.2.0f6
    com.apple.driver.IOPlatformPluginLegacy 1.0.0
    com.apple.driver.AppleGraphicsControl 3.4.12
    com.apple.driver.AppleBacklightExpert 1.0.4
    com.apple.driver.IOPlatformPluginFamily 5.5.1d27
    com.apple.nvidia.classic.NVDAResmanTesla 8.1.8
    com.apple.iokit.IONDRVSupport 2.3.6
    com.apple.driver.AppleSMC 3.1.6d1
    com.apple.iokit.IOBluetoothHostControllerUSBTransport 4.2.0f6
    com.apple.iokit.IOFireWireIP 2.2.5
    com.apple.driver.AppleHDAController 2.5.3fc1
    com.apple.iokit.IOHDAFamily 2.5.3fc1
    com.apple.driver.AppleSMBusPCI 1.0.12d1
    com.apple.driver.AppleSMBusController 1.0.11d1
    com.apple.iokit.IOGraphicsFamily 2.3.6
    com.apple.driver.AppleUSBMultitouch 240.6
    com.apple.iokit.IOUSBHIDDriver 650.4.4
    com.apple.iokit.IOSCSIBlockCommandsDevice 3.6.0
    com.apple.iokit.IOUSBMassStorageClass 3.6.0
    com.apple.driver.AppleUSBMergeNub 650.4.0
    com.apple.driver.AppleUSBComposite 650.4.0
    com.apple.iokit.IOSCSIMultimediaCommandsDevice 3.6.0
    com.apple.iokit.IOBDStorageFamily 1.7
    com.apple.iokit.IODVDStorageFamily 1.7.1
    com.apple.iokit.IOCDStorageFamily 1.7.1
    com.apple.iokit.IOAHCISerialATAPI 2.6.0
    com.apple.iokit.IOSCSIArchitectureModelFamily 3.6.0
    com.apple.iokit.IOEthernetAVBController 1.0.3b3
    com.apple.driver.mDNSOffloadUserClient 1.0.1b4
    com.apple.iokit.IO80211Family 600.34
    com.apple.iokit.IONetworkingFamily 3.2
    com.apple.iokit.IOAHCIFamily 2.6.0
    com.apple.iokit.IOFireWireFamily 4.5.5
    com.apple.driver.AppleMCP89RootPortPM 1.11
    com.apple.iokit.IOUSBUserClient 650.4.4
    com.apple.driver.AppleEFINVRAM 2.0
    com.apple.driver.AppleEFIRuntime 2.0
    com.apple.iokit.IOUSBFamily 650.4.4
    com.apple.driver.NVSMU 2.2.9
    com.apple.iokit.IOHIDFamily 2.0.0
    com.apple.iokit.IOSMBusFamily 1.1
    com.apple.security.sandbox 278.10
    com.apple.kext.AppleMatch 1.0.0d1
    com.apple.security.TMSafetyNet 7
    com.apple.driver.AppleKeyStore 2
    com.apple.driver.DiskImages 371.1
    com.apple.iokit.IOStorageFamily 1.9
    com.apple.iokit.IOReportFamily 21
    com.apple.driver.AppleFDEKeyStore 28.30
    com.apple.driver.AppleACPIPlatform 2.0
    com.apple.iokit.IOPCIFamily 2.8
    com.apple.iokit.IOACPIFamily 1.4
    com.apple.kec.corecrypto 1.0
    com.apple.kec.pthread 1
    Unable to gather system configuration information.Model: MacBookPro7,1, BootROM MBP71.0039.B0E, 2 processors, Intel Core 2 Duo, 2.4 GHz, 4 GB, SMC 1.62f7
    Graphics: NVIDIA GeForce 320M, NVIDIA GeForce 320M, PCI, 256 MB
    Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1067 MHz, 0x80CE, 0x4D34373142353637334648302D4346382020
    Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1067 MHz, 0x80CE, 0x4D34373142353637334648302D4346382020
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8D), Broadcom BCM43xx 1.0 (5.106.98.100.22)
    Bluetooth: Version 4.2.0f6 12982, 3 services, 15 devices, 0 incoming serial ports
    Network Service: Wi-Fi, AirPort, en1
    Serial ATA Device: TOSHIBA MK2555GSXF, 250.06 GB
    Serial ATA Device: HL-DT-ST DVDRW  GS23N
    USB Device: Built-in iSight
    USB Device: Internal Memory Card Reader
    USB Device: BRCM2046 Hub
    USB Device: Bluetooth USB Host Controller
    USB Device: IR Receiver
    USB Device: Apple Internal Keyboard / Trackpad
    Thunderbolt Bus:
    Please help me fix this issue.
    Thank you,
    Nishanth

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you boot, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • I need help in Fixing my Hp Split x2

    I need help in fixing my hp split x2. I got it with windows 8 but i upgraded to Windows 8.1. sine then I stop accessing my D:/ drive ( 500gb HDD)on which I stored data. Besides, I get DCP watchdog violation Error each time I disconnect the tablet and reconnet it. I also get another error message: DCP_DRIVER_POWER_STATE_FAILURE. Can somebody help me out?

    Hi Alsaab73,
    Thank you for visiting the HP Support Forums and Welcome. I have read your thread on your and getting an error message. The HDD that are you using, I would need the model number. Have you looked in the device manager to see if there is a conflict with the driver installed? It might be listed under the USB devices? Have you tried a different port on the Notebook?  Right clicking an updating the driver might be all that is needed.
    As per the description of the issue you get error DPC_WATCHDOG_VIOLATION.
    Is the issue confined to any particular game or a certain function you are choosing on the Notebook?
    The First thing you need to try is disable any firewalls or virus protection and restart the Notebook.
    If that does not helps try these steps from Microsoft.
    Boot the computer using the Windows 8 bootable DVD.
    On the Install Now screen click on Repair your computer.
    You will then see a blue screen and an option to choose.
    Click on Advanced Options and then click on Troubleshoot.
    Click on Automatic Repair and follow the prompted instructions.
    Hope this helps.
    Thanks.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • My husband and I both have iPhones on the same account. When he did his update yesterday, he chose both his number and my number during set up. Now he is getting my messages, too. Can someone please help me fix this?

    My husband and I both have iPhones on the same account. When he did his update yesterday, he chose both his number and my number during set up. Now he is getting my messages, too. Can someone please help me fix this?

    What do you mean he chose his and your number during setup. Chose them for what? Is you number showing up in the Settings>Messages>"You can be reached by imessage at" section? If it is he needs to remove it.
    Cheers,
    GB

  • Firefox tabs close when I click on a tab and windows become unresponsive after I launch a site. Using latest version for MacOSX. How do I fix this bug? Have already tried a bunch of things.

    Firefox tabs close when I simply click on a tab and windows become unresponsive after I launch a site. I am using the latest version for MacOSX but this happened a couple days ago with an older version of Firefox as well. Is this some kind of bug? How do I fix this bug? Have already tried a bunch of things like clearing/reinstalling etc. This does not help.
    == User Agent ==
    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7

    You can middle click a link to open that link in a new tab.
    *Open Link in New Tab: https://addons.mozilla.org/firefox/addon/open-link-in-new-tab/
    *Tab Utilities Lite: https://addons.mozilla.org/firefox/addon/tab-utilities-lite/

  • TS3274 After installing iOS 7 camera stopped working normally. I can't take pictures with the back camera only the front camera. All was good before the update. Please fix this bug.

    After installing iOS 7 camera stopped working normally. I can't take pictures with the back camera only the front camera. All was good before the update. Please fix this bug.

    Hi Midnightbrat,
    Welcome to the Support Communities!
    The troubleshooting steps for the camera on the iPad are similar to the iPhone:  I've highlighted the pertinent steps below:
    Hardware troubleshooting
    http://support.apple.com/kb/ts2802
    Camera
    If the screen shows a closed lens or black image, force quit the Camera app.
    If you do not see the Camera app on the Home screen, try searching for it in Spotlight. If the camera does not show up in the search, check to make sure that Restrictions are not turned on by tapping Settings > General > Restrictions.
    Ensure the camera lens is clean and free from any obstructions. Use a microfiber polishing cloth to clean the lens.
    Third-party cases can interfere with the autofocus/exposure feature and the flash; try removing the case if you have image-quality issues with photos.
    Try turning the iPad off and then back on.
    Tap to focus the camera on the subject. The image may pulse or briefly go in and out of focus as it adjusts.
    Try switching between the front and the back cameras to verify if the issue persists on both.
    I hope this information helps ....
    Have a great day!
    - Judy

  • Photos that have been deleted to aperture trash cannot be viewed. Any assistance is welcome in fixing this bug. The showing all files option is selected in the filter. System is 10.8.4, aperture version 3.4.5

    Photos that have been deleted to aperture trash cannot be viewed. Any assistance is welcome in fixing this bug. The showing all files option is selected in the filter. System is 10.8.4. Aperture version 3.4.5. Used to be able to view the files then all of a sudden they have stop appearing. Once the aperture trash is emptied the files can be viewed in the system trash. Becomes quite annoying if you want to review the aperture trash files before deletion.

    Photos that have been deleted to aperture trash cannot be viewed  ...
    The showing all files option is selected in the filter.
    Cookiemonster, previously Frank Caggiano's magic helped in this situation - have you tried the double, double Caggiano as described here?
        Images not appearing in browser, search filter is cleared
    https://discussions.apple.com/docs/DOC-3062
    In the most recent version I cannot get this trick to work, however. But try it anyway, maybe it is just my macthat has an issue.
    Did this happen directly after the update? Where is your library located, on an external or an internal drive? Are your originals managed or referenced?
    I'd try next to check, if this is caused by the library, by creating a small test library and trying to trash pictures there. If it works well in a new library try to repair the database and the permissions on your regular library.  See:
    http://documentation.apple.com/en/aperture/usermanual/index.html#chapter=27%26se ction=10%26tasks=true
    Regards
    Léonie

  • HT5642 I get a unable tO download messge when i try to download ios6.1. I need ios612 to fix calendar bug....the message i get says that unable to download because no longer connected to internet....i am connected to the internet all along

    I get a unable tO download messge when i try to download ios6.1. I need ios612 to fix calendar bug....the message i get says that unable to download because no longer connected to internet....i am connected to the internet all along

    1. Try reinstall iLIfe 09 from your install disk
    To re-install iPhoto
    1. Put the iPhoto.app in the trash (Drag it from your Applications Folder to the trash)
    2. Download it from the App Store to reinstall It's on your Purchases List* there.
    For older versions that have been installed from Disk you'll need these additional steps:
    2a: On 10.5:  Go to HD/Library/Receipts and remove any pkg file there with iPhoto in the name.
    2b: On 10.6: Those receipts may be found as follows:  In the Finder use the Go menu and select Go To Folder. In the resulting window type
    /var/db/receipts/
    2c: on 10.7 or later they're at
    /private/var/db/receipts
    A Finder Window will open at that location and you can remove the iPhoto pkg files.
    3. Re-install.
    If you purchased an iLife Disk, then iPhoto is on it.
    If iPhoto was installed on your Mac when you go it then it’s on the System Restore disks that came with your Mac. Insert the first one and opt to ‘Install Bundled Applications Only.
    *Sometimes iPhoto is not visible on the Purchases List. it may be hidden. See this article for details on how to unhide it.
    http://support.apple.com/kb/HT4928
    One question often asked: Will I lose my Photos if I reinstall?
    iPhoto the application and the iPhoto Library are two different parts of the iPhoto programme. So, reinstalling the app should not affect the Library. BUT you should always have a back up before doing this kind of work. Always.
    If that fails, then you're reinstalling the OS.

  • Please help me fix the bug relate to x$kzsro

    Dear everybody
    I'm new to oracle. I'm using Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 in window vista.
    recently, i try to run this code :
    select u.name, o.obj#, o.name,
    decode(o.type#, 2, 'TABLE', 4, 'VIEW')
    from sys.user$ u, sys.obj$ o
    where o.owner# = u.user#
    and o.linkname is null
    and o.type# in (2, 4)
    and (o.owner# = uid
    or
    obj# in (select obj#
    from sys.objauth$
    where grantee# in (select kzsrorol from x$kzsro)
    or grantee#=uid
    and encounter error :
    Error starting at line 1 in command:
    select u.name, o.obj#, o.name,
    decode(o.type#, 2, 'TABLE', 4, 'VIEW')
    from sys.user$ u, sys.obj$ o
    where o.owner# = u.user#
    and o.linkname is null
    and o.type# in (2, 4)
    and (o.owner# = uid
    or
    obj# in (select obj#
    from sys.objauth$
    where grantee# in (select kzsrorol from x$kzsro)
    or grantee#=uid
    Error at Command Line:11 Column:56
    Error report:
    SQL Error: ORA-00942: table or view does not exist
    00942. 00000 - "table or view does not exist"
    *Cause:
    *Action:
    this error relate to table or view x$kzsro in oracle 10.2
    i can't fix this bug.so please help me.
    thanks

    x$kzsro is a fixed table. You can select from fixed tables only if you are connected as sysdba. You can't grant select on a fixed table to a user:
    SQL> grant select on sys.x$kzsro to scott;
    grant select on sys.x$kzsro to scott
    ERROR at line 1:
    ORA-02030: can only select from fixed tables/views
    SQL> What you could do is as k your DBA to:
    SQL> create view v$kzsro as select * from x$kzsro;
    View created.
    SQL> grant select on v$kzsro to scott
      2  /
    Grant succeeded.
    SQL> connect scott
    Enter password: *****
    Connected.
    SQL> select * from sys.x$kzsro;
    select * from sys.x$kzsro
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> select * from sys.v$kzsro;
    ADDR           INDX    INST_ID   KZSROROL
    00000000          0          1          1
    00000008          1          1         54
    00000010          2          1          2
    00000018          3          1          3
    00000020          4          1          4
    00000028          5          1          6
    00000030          6          1         20
    00000038          7          1          7
    00000040          8          1          8
    00000048          9          1          9
    00000050         10          1         10
    ADDR           INDX    INST_ID   KZSROROL
    00000058         11          1         13
    00000060         12          1         18
    00000068         13          1         26
    00000070         14          1         32
    00000078         15          1         33
    00000080         16          1         40
    00000088         17          1         42
    00000090         18          1         48
    00000098         19          1         80
    000000A0         20          1         82
    21 rows selected.
    SQL> SY.
    P.S. If you are new to oracle starting with sys owned tables and fixed tables isn't the best choice.

Maybe you are looking for

  • Hi PF-STATUS in ALV

    Hi, How to use custom defines PF-STATUS in ALV Grid. Please Give me suggestion this is very imprtant.

  • ALL FOLIOS disappeared in my FOLIO BUILDER

    //// EDIT 15 mn later: it's all back and okay now after several reboots, may be usefull for you anyway / note that .indd crashes a lot those days here. Note also that in the folio  producer area there are some folios I can't delete.  /// It's all in

  • Po tax related fields

    can anyone tells me that which sap fields & table i should take for the following po tax related fields? 1> basic price 2>excise duty 3>cess 4> salary tax(lst) 5> surcharge tnaking you.......

  • Recognize COGS in intercompany billing process

    Dear expert, I read the intercompany billing process and have some confuse. The process like that: CC1(company code 1) sells to end customer, CC2 (conpany code 2) (internal relationship) issues good. 1, CC1 sells to end customer. CC1 create the SO 2,

  • IPad crash 4.3.5 when resuming from sleep

    Hi there everyone My iPad 2 is crashing every now and again when ever I resume it from sleep. I press the button to wake it, and I see the lock screen for a second, and then it goes black and the apple logo appears and it subsequently boots up. It ne