MY PUZZLE DRAG and DROP STILL DOES NOT!

After 3 slide and falls of the puzzle I get this error:

TypeError: Error #1009: cannot access a property or method of a null object reference.

at MultimediaProducttest_fla::MainTimeline/dropIt()

TypeError: Error #1009: cannot access a property or method of a null object reference.

at MultimediaProducttest_fla::MainTimeline/pickUp()

ACTION SCRIPT 3! HELP PLEASEEEEEE!

restbar_btn4.addEventListener (MouseEvent.CLICK, restbar4Clicked);
museum_btn4.addEventListener (MouseEvent.CLICK, museum4Clicked);
sark_btn4.addEventListener (MouseEvent.Click, sark4Clicked);
market_btn4.addEventListener (MouseEvent.CLICK, market4Clicked);
park_btn4.addEventListener (MouseEvent.CLICK, park4Clicked);

function home4Clicked(event:MouseEvent):void {}
gotoAndPlay ("Home");
removeF();
}
function removeF (): void {}
pone_mc. RemoveEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
pone_mc. RemoveEventListener (MouseEvent.MOUSE_UP, dropIt);
ptwo_mc. RemoveEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
ptwo_mc. RemoveEventListener (MouseEvent.MOUSE_UP, dropIt);
pthree_mc. RemoveEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
pthree_mc. RemoveEventListener (MouseEvent.MOUSE_UP, dropIt);
pfour_mc. RemoveEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
pfour_mc. RemoveEventListener (MouseEvent.MOUSE_UP, dropIt);
pfive_mc. RemoveEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
pfive_mc. RemoveEventListener (MouseEvent.MOUSE_UP, dropIt);
psix_mc. RemoveEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
psix_mc. RemoveEventListener (MouseEvent.MOUSE_UP, dropIt);

removeChild (pone_mc);
removeChild (ptwo_mc);
removeChild (pthree_mc);
removeChild (pfour_mc);
removeChild (pfive_mc);
removeChild (psix_mc);
pone_mc = null;
ptwo_mc = null;
pthree_mc = null;
pfour_mc = null;
pfive_mc = null;
psix_mc = null;
}
function restbar4Clicked(event:MouseEvent):void {}
gotoAndPlay ("Restaurant");
removeF()
}
function museum4Clicked(event:MouseEvent):void {}
gotoAndPlay ("Museum");
removeF();
}
function market4Clicked(event:MouseEvent):void {}
gotoAndPlay ("Market");
removeF();
}
function park4Clicked(event:MouseEvent):void {}
gotoAndPlay ("Park");
removeF();
}
function sark4Clicked(event:MouseEvent):void {}
gotoAndPlay ("Cutty");
removeF();
}
var startX:Number;
var startY: number;
var counter: Number = 0;
pone_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
pone_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);
ptwo_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
ptwo_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);
pthree_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
pthree_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);
pfour_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
pfour_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);
pfive_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
pfive_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);
psix_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
psix_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);
function pickUp(event:MouseEvent):void {}
event.target.startDrag (true);
feedback_txt. Text ="";
event.target.parent.addChild (event.target);
startX = event.target.x;
startY = event.target.y;
}
function dropIt(event:MouseEvent):void {}
event.target.stopDrag ();
var myTargetName:String = "target" + event.target.name;
var myTarget:DisplayObject = getChildByName (myTargetName);
If (event.target.dropTarget! = null & & event.target.dropTarget.parent == get myTar) {}

feedback_txt. Text = "Good Job! « ;
event.target.removeEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
event.target.removeEventListener (MouseEvent.MOUSE_UP, dropIt);
event.target.buttonMode = false;
Event.Target.x = myTarget.x;
Event.Target.y = myTarget.y;
counter ++;
} else {}
feedback_txt. Text = "Try! again « ;
Event.Target.x = startX;
Event.Target.y = startY;
}
If (counter == 6) {}
feedback_txt. Text = "Congratulations, you're done! « ;
}
}
pone_mc.buttonMode = true;
ptwo_mc.buttonMode = true;
pthree_mc.buttonMode = true;
pfour_mc.buttonMode = true;
pfive_mc.buttonMode = true;
psix_mc.buttonMode = true;

The error is pointing to this line of code with the textfield object, so the problem is that a textfield with this name does not exist when this code runs.  Given that code lies in the frame of 122, there is every chance that you have not named that textfield everywhere you should... which should be for each key frame, there... and hopefully extends to the 122 thus framework since it is where it is supposed to be for this code.

As far as not being sure if this is how you debug it... This is probably the most common error that keeps popping up in these forums.  The approach to solve it rarely varies.  I just surprised that people are not able to find it by searching (while the search is running) because it comes almost every day, even after a few years in AS3.

Tags: Adobe Animate

Similar Questions

  • Captivate 8 drag and drop interaction does not

    Hi, I work with 8 Captivate and created an interaction drag-and - drop using the wizard to drag / move. For some reason when I preview the interaction some of my sources of drag and others are not. I searched high and low for what I can hurt, but I can not understand. I created types when doing the interaction so it is not sensible that some should work and others don't. Thanks for any help you can provide.

    Hi Vaneppmc1,

    You have disabled the option accept all of the dialog "drag accepted Source. (as seen from your capture screen images).

    If the option "accept all the" is checked, the target can accept 'ALL' sources who are ticked in the column 'Drag Source Types '. In your case, Image 9 can accept sources of type "Bad conscience".

    Since you have unchecked the option accept everything, and the value of Count is 1 (which is default). Here so the target can accept only 1 source of type "Healthy Conscience of the United Nations" and lift reject legend of error on the acceptance of another source.

    Check the option "accept all the ' try and let me know if this works for you.

    If this does not solve your problem please share your Cptx file to address the issue by e-mail ([email protected]).

    Thank you

    Derrick

  • Drag and Drop grid does not work

    I HAVE MS WINDOWS XP.

    I HAVE A FOLDER WITH DOCUMENTS WORD AND JPEG IN IT.

    WHEN I DRAG AND DROP A FILE INTO THE FOLDER TO MOVE AROUND I NO LONGER GET THE GRID OF CLARET BAR "BLACK." THE FILE AROUND EMERGES IN THE FOLDER, YOU CAN MOVE ANYWHERE, IT WILL OVERLAP OTHER ICONS FILE.

    IT HAD WORKED, IT SEEMS THAT I MIGHT MOVE ONE FILE ON THE WINDOWS OF THE SCREEN AT A GIVEN TIME, PERHAPS THIS CORRUPTED SOMETHING.

    IN ANY CASE, CREATED A NEW FOLDER, COPIED THE OLD FILES FOLDER, IT WORKS VERY WELL.

    WHEN TO USE THE OLD NAME OF FILE, SAME PROBLEM, NO 'BLACK' DRAG-AND-DROP POSITIONING GRID BAR.

    THE FORMER NAME OF FOLDER SHOULD BE SOMEWHERE AND IT IS CORRUPT.

    I NOTICED THAT THE SREEN GTA CLICK WINDOW ARRANGE ICONS AUTO ARRANGE AND ALIGN WITH THE GRID OPTIONS ARE CHECKED, THE FILES DO NOT HAVE THESE OPTIONS.

    MAYBE THERE IS A COMMAND TO CHANGE REGISTRY RUN WHERE I CAN FIX SOMETHING.

    BUCKS COUNTY, PENNSYLVANIA

    Hello

    This is probably because you have disabled somehow "Auto arrange" for this folder.

    Open the folder where you had problems, and then click the drop-down display. You will see options for how you want to see the contents of the folder. If you selected thumbnails, tiles or icons, there is another option under the terms of "rearrange icons by" called "auto arrange". This is a toggle switch, repeated clicks turn the lights-off etc.

    BTW, the use of 'all capitals' type is not considered by some as the right label and discourage some people to respond. So, if you want to maximize your chances of a reply in the future, type like I did, or even entirely in lowercase.

    Tricky

  • The plus sign next to my tab stopped working: when I click on it nothing happens. I tried uninstalling and reinstalling and it still does not work.

    The sign + to add a new tab has suddenly stopped to work earlier. I tried uninstalling and reinstalling and it still does not work. What can happen and how to fix it?

    Hello

    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your vital information.
    Note: This will make you lose all the Extensions, open Web sites and preferences.

    To reset Firefox, perform the following steps:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the button 'Reset Firefox'.
    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

    Thank you.

  • I downloaded version 5.7 of Lightroom in order to support the captive capture on my Nikon D750 and its still does not. More when I was invited to give my serial number for the update that was not the case that are on my Adobe profile, although I purchas

    I downloaded version 5.7 of Lightroom in order to support the captive capture on my Nikon D750 and its still does not. More when I was not invited to give my serial number for update is no where on my Adobe profile, although I bought and pays every month for my creative cloud for photography. Help, please

    Your subscription to cloud shows correctly on your account page?

    If you have more than one email, you will be sure that you use the right Adobe ID?

    https://www.adobe.com/account.html for subscriptions on your page from Adobe

    If Yes

    Some general information for a subscription of cloud

    Cloud programs don't use serial... numbers you, connect you to your cloud account paying to download & install & activate... you may need to sign out of the cloud and restart your computer and log into the cloud for things to work

    Sign out of your account of cloud... Restart your computer... Connect to your paid account of cloud

    -Connect using http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html

    -http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html

    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html

    -http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html

    -ID help https://helpx.adobe.com/contact.html?step=ZNA_id-signing_stillNeedHelp

    -http://helpx.adobe.com/creative-cloud/kb/license-this-software.html

    If no

    This is an open forum, Adobe support... you need Adobe personnel to help

    Adobe contact information - http://helpx.adobe.com/contact.html

    -Select your product and what you need help with

    -Click on the blue box "still need help? Contact us. "

  • Drag and drop the library not workingf

    I placed a number of graphics (.ai .ps, .eps, .pdf etc.) in a CC library. When Im in InDesgn I can see the items in the library, but when I try to drag and drop them on an open page, I get a message saying "the file does not exist or the file may be in use by another application."

    I've restarted the computer and only Indesign open so that the files are not in use.  The library icons next to the items. I can double click and use goods have been placed in InDesign, but the files in photoshop or Illustrator won't drag-and - drop or double click for use in InDesign.

    Is this to say that I cannot use InDesign created elements of library in InDesign and photoshop only elements in Photoshop etc. ?

    Carl

    I have the same problem

    I repeatedly appealed to tech support, but they couldn't help

    I solved the problem in this way:

    1. launch InDesign

    2 - Open a new document

    3 to drag and drop objects from the library CC

    4. I read the error message :-((()

    5. I swear :-)

    6. close InDesign

    7 - Repeat the pp. 1-3

    7A - if this does not work, I have to open Illustrator object and drag-and - drop library in Illustrator. And then I repeat s. 1-3

  • Cannot connect to the macbook pro guard icloud password request which I changed it too many times I don't remember and it still does not

    Can not connect to macbook pro, that keeps asking for password to icloud I have reset too many times I do not remember. Reinstalled operating system still does not work. Think to screw up the laptop and get back to a Windows machine. Not impressed with Apple.

    To connect to your computer, you must enter your computer in password journal, not your Apple ID.

    Otherwise, provide more details on exactly what is happening on.

    Writing an effective question of communities of Apple Support

  • Firefox does not connect. uninstalled and reinstalled. still does not not after firefoxupdate. IE works now what?

    Unable connect message is displayed for each Web site. IE works fine. I think the problem has something to do with the Firefox update I got this morning from notification. I have uninstalled/reinstalled Firefox and the problem persists. I tried the restart without Add-ons, still does not work. What's next?

    Hello, Barnetta, normally these problems are caused by a security/firewall software which does not recognize and therefore blocks the new versions of firefox. If please delete all the rules of the program for firefox to your firewall and let it detect the new version of the browser again.

    Difficulty of problems connecting to websites after Firefox update

  • Drag and Drop works is not in Windows 7

    I have a new problem that has arisen in the last week or two. I can no longer drag and drop my files and folders in Windows Explorer. I have Windows 7 on a HP laptop. It is installed on the computer in last December when I bought (09). I've never had a problem with it since then, and I do not know how to find settings to allow drag and drop or re - activate. I know that I've done before on this machine, several times - and just noticed first in Thunderbird, (my e-mail desktop application), then in Solution Explorer. I recently installed the SP1 (spelling?) a few weeks ago and have installed a few other programs of odds and ends, but I'm sure that drag and drop was working fine until a few days ago.

    Any help would be appreciated. As a writer of genealogy is a must have feature.
    Thank you.
    This happened to me yesterday.

    In Windows Explorer, click a file with the left mouse button and hold down the key. Then press the ESC key. Drag-and - déposer is miraculously revived.

    I think that just by pressing escape works too, but I'm more able to test this. I got this http://it.thelibrarie.com/weblog/2010/06/drag-and-drop-stops-working/

    I can't be bothered reading all to see if this has been mentioned.  The fix for the escape has worked for me with Win 7.  The only thing I have that is unique with respect to colleagues is a wireless keyboard and mouse.  I hope that this has something to do with my problem.

    Thank you Brigitte!

  • Schools in class drag and drop printing patterns, not allowing me to drag-and - drop!

    Hello

    I have LR 5.7 and bought print templates of Coles in class, a Communicator, respected and well-known photography on the web. The models are supposed to be drag and drop (from the film). then when they are installed and you choose a template in the print Module in custom templates, you can simply drag and drop your images directly in the model in the main window.

    Unfortunately, I can't do it. Models are there, they are installed properly in LR and I can click and bring up all the different models (there are many). But I can't seem to pick up and drag images into the model of the film, as shown and described by Cole in his video tutorials. It seems there was little problem of anyone with these models and it is a problem that Cole himself has never met before. He said 'turning normal and turns off again' what I did and had no effect. I uninstalled and reinstalled the models and it has no effect. I cannot yet pick up and drag images from the film on the bottom in the model.

    I have not tried a huge amount to remedy this that frankly, I don't really know where to start. But just try to find the problem, I found that when I clicked on the Picture Package, at the top of the column on the right in the print module, ALL of my images from my collection have already been put in separate models for each image. As I've never really used before printing module, I don't know if this has an effect on me to be able to drag and drop in a different package and so to stop me to do?

    These models were expensive and it seems I'm the only person who seems to have had this problem with them. Is there something I need to turn it on, or move or change for me to enable drag and drop images, or am on a loser with this one?

    Sorry for the long post, but to a loss complete as to what this might be?

    John

    John,

    I don't know about your models, but in general, you need to drop by the image , not its surroundings of the border.

    HAL

  • "Drag a Drop feature" does not work in Ipad.

    I use JDEVELOPER Studio Edition Version 11.1.2.2.0.
    I develop a sinple too page table and by using "Drag Drop functionality year" to pass rows of a table to another table.
    This work properly in all the web explore for Pc and does NOT WORK in IPAD.

    support iPad is currently in 11.1.1.6 and we are targeting to add it to the 11.1.2.3 as well.
    So, you will need to wait as the version to come out.
    (should be relatively soon)

  • Firefox cannot load xpcom how a novice fix? I did an uninstall of firefox and reinstalled and it still does not work

    XPCOM does not load after a new installation of firefox. I've done virus scans and the whole nine yards and I still get the error message. My system is xp sp3. Firefox does not start

    Could you please provide a screenshot, but also the steps as to how you got this error message?

  • Cannot open PDF files in the browser. I tried every fix mentioned and it still does not work!

    I have Windows XP. Using firefox as my browser. All of a sudden, I can't open the PDF files in the browser. I tried all the mentioned patches. Nothing works! Check the configuration of the plugin, checked the settings Adobe Reader.

    Is the problem that Firefox opens a blank tab, or that it requires you to download the file?

    I guess you tried switching spectators between the internal viewer and the Adobe plugin. If this article does not, steps: How to disable the built-in PDF Viewer and use another Viewer. Sometimes behind switching will allow to correct an error in the settings file.

    You can rename or delete the settings file that stores these associations and have Firefox regenerate. If the file is corrupt, this could be the only option that works. Here's how:

    Open your current Firefox settings (AKA Firefox profile) folder using

    Help > troubleshooting information > "view file" button.

    Leave this window open, activate any Firefox window and quit the program (for example, the file menu > exit or Firefox menu > Exit)

    Pause while Firefox finishing his cleaning, then rename the mimeTypes.rdf to something like mimeTypes.old

    Restart Firefox. Your likely PDF preferences will be reset to the internal PDF Viewer, but you can activate the Adobe plugin as described in the above-linked article.

    Any improvement?

  • I do not have a Foxfire button. I even installed a new copy and it still does not appear.

    I have tried everything to find info on why it does not appear. There is none that I can find.

    I hid any view, navigation and link toolbar and it show up. I wasn't expecting to have to hide things so he can appear. Thank you.

  • I recently updated my iPhone to iOS 9.3 6s and now my data and wifi are in place. Now I can't open the apps and send messages with data and barely on the wifi. I've tried everything, and it still does not work.

    I updated my iPhone to iOS 9.3 6s today and now my data and wifi are in place. Whenever I try to open an app or send text messages with data it does not at all. And with wifi, it just works. I tried just like turn roaming off and off and other lte but nothing seems to work at all. Can someone please?

    I have this same problem too, it really gets me upset

Maybe you are looking for