Flash Error #1009 -- NEED HELP!

Okay.  I am relatively new to AS3 and I have been working on creating a visual timer.  My code is very simple, and I can't figure out why Flash Pro CS6  is giving this error message in the Output:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
          at TMR_fla::MainTimeline/timer1hit()
My code looks exactly like the following:
import flash.events.Event;
stop();
function timer1move():void {
          timer1.x-= 8;
var MyInterval1:uint = setInterval(timer1move, 50);
timer1.addEventListener(Event.ENTER_FRAME, timer1hit);
function timer1hit(e:Event) {
          if(timer1.hitTestObject(finish1)) {
                    gotoAndStop(2);
                    clearInterval(MyInterval1);
I cannot figure out why FLash is giving me this error.  Mainly because my code works great!  It does exactly what I told it to do, it goes to Frame 2 and stops.  But in the Output the error message just keeps repeating forever.  I have looked all over this forum and found multiple topics on this problem but none of them help.  Few extra key notes:
1.  My second frame has absolutely ZERO code.  Just some scribbles on stage to indicate that I've made it to the 2nd Frame.
2.  My stage for frame 1 looks like this:
The object on the right is my timer.  The rectangle on the left is my finish.
Rectangle has an instance name of finish1
Timer has an instance name of timer1
I have triple checked the instance names, I know that they are all spelled right.  Can somone help me? 

If the error is repeating forever, it is probably because you have tha ENTER_FRAME listener continuing on.  If you are in frame 2 and any of the objects that the ENTER_FRAME event handler function is targeting are only in frame 1, then that will be the source of the error.  In your event handler you should remove that listener before you change frames.
timer1.addEventListener(Event.ENTER_FRAME, timer1hit);
function timer1hit(e:Event) {
          if(timer1.hitTestObject(finish1)) {
                    timer1.removeEventListener(Event.ENTER_FRAME, timer1hit);
                    clearInterval(MyInterval1);
                    gotoAndStop(2);

Similar Messages

  • New to lightroom, used program last wk no problem, now unable to import any nef or jpegs, keeps showing error message, need help =(

    new to lightroom, used program last wk no problem, now unable to import any nef or jpegs, keeps showing error message, need help =(

    So where is LR trying to copy the files?  Check your destination in the Import panel at the right.

  • HT3702 error please need help

    Dears,
    I want pay for gems from clash of clan but the msg error please need help this problem take long time with me please please help me.
    Regards,

    If you haven't already done so then you can contact iTunes Support via this link and ask them why the message is appearing (we are fellow users here on these forums, we won't know why it's appearing) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Flash Player is causing my Web Pages to flash like crazy Need help!

    I need help, I'm running a computer with Windows 98 4.10.1998
    and Running Internet Explorer ver. 6.0.2800.1106IC
    I had some problems I have fix eveything but when I got to a
    web page it wants
    to install and run flash player if I do Install and run, all
    my web pages flash
    like crazy every clickable icon or line flash the screen
    makes it flicker so hard
    it is enough to give you a headache. Ad boxes on the pages
    flash like a lighting
    strorm. How do I fix this? I never had this before, I ran the
    flash player debug file
    that made no change. Help!

    Already checked the Event Viewer. The only thing I could find is this critical level event
    The system has rebooted without cleanly shutting down first. This error could be caused if the system stopped responding, crashed, or lost power unexpectedly.
    This only happens when I am running a flash video in IE10. In Chrome everything works fine. I downgraded flash player to 11.4 but with no luck.
    From the event viewer, the reboots started from sometime in september.(this is my parents' pc)
    I think I found the problem. I changed my video card, a 9600GT, a few months ago with a GT630. I switched back to the 9600GT, and it looks like the issue is not happening any more. But it's still verry ackward for the issue to happen only on IE10.
    I'm still testing to be sure that the video card is the problem.

  • Error #1009 Simple Help please

    Hello there guys, I been working on a small project on flash CS5.5 AS3, it is a side scrolling platform game.
    However I been coming up with an error which is this :
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at Corestructure_Scene1_fla::MainTimeline/movingPlayer()[Corestructure_Scene1_fla.MainTimeli ne::frame4:83]
    And the line it points at is this one :
    Velocity +=  gravity;
    if (!floor.hitTestPoint(larry.x,larry.y,true))
    larry.y +=  Velocity;
    if (Velocity > 20)
    Velocity = 20;
    Now I dont know what to do, this error keep coming up as soon as i start the game, i move the character left and right, its fine, I press jump and the characters jumps fine, however, as soon as the character lands, this error keeps coming up and I just dont know how to fix it.
    Any help would be great!

    The 1009 error indicates that one of the objects being targeted by your code is out of scope.  This could mean that the object....
    - is not in the display list
    - doesn't have an instance name (or the instance name is mispelled)
    - does not exist in the frame where that code is trying to talk to it
    - is animated into place but is not assigned instance names in every keyframe for it
    - is one of two or more consecutive keyframes of the same objects with no name assigned in the preceding frame(s).

  • Error #1009 Please Help

    Hey
    Im new to Flash and Actionscript, I've only been using it for a week or so and get this error message:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at Untitled_fla::MainTimeline/__setProp_imageloader_Boyle2_image_0()[Untitled_fla.MainTimeli ne::__setProp_imageloader_Boyle2_image_0:7]
        at Untitled_fla::MainTimeline/frame1()[Untitled_fla.MainTimeline::frame1:3]
    Im designing a really simple website just to get use to flash that starts at scene "Main" and then lets the user navigate to either scene "Boyle2" or "CC". Once they get to the scene the user can cycle through images and thats when the error comes up. Im using a Uiloader to load the images and the scence itself works fine but once i test the whole movie i get the above error and have no idea what to do.
    When i debug, it says sence "Boyle2" frame 1 is the error and gives me this code in the debug window which i didnt write:
    if (__setPropDict[imageloader] == undefined || !((int(__setPropDict[imageloader]) == 1))) {
    __setPropDict[imageloader] = 1;
    __setProp_imageloader_Boyle2_image_0();
    Again im new at this and have no idea so any help would be awesome! Thanks

    i guess im still not understanding what doesn't exist in my code. This is my code to scene "Boyle2":
    function gotoHome2(evt:Event):void {
        gotoAndPlay("Home","Main");
    home_btn.addEventListener("click",gotoHome2);
    var imagenumber:Number = 1;
    next_btn.addEventListener(MouseEvent.CLICK, nextbtn);
    function nextbtn (ectObj:MouseEvent):void
        imagenumber++;
        imageloader.source = "Boyle/FHBoyle0"+imagenumber+".jpg";
    back_btn.addEventListener(MouseEvent.CLICK, backbtn);
    function backbtn (ectObj:MouseEvent):void
        imagenumber--;
        imageloader.source = "Boyle/FHBoyle0"+imagenumber+".jpg";
    and this is my code for scene "Main"
    function gotoHome(evt:Event):void {
        gotoAndPlay("Home");
    home_btn.addEventListener("click",gotoHome);
    function gotoBoyle(evt:Event):void {
        gotoAndPlay(1,"Boyle2");
    boyle_btn.addEventListener("click",gotoBoyle);
    function gotoCampus(evt:Event):void {
        gotoAndPlay(1,"CC");
    campus_btn.addEventListener("click",gotoCampus);
    does this show you anything?
    Thanks for help

  • Beginner: type error #1009 Please Help!

    I'm creating my first flash site in CS4 and I'm getting this message in the output window when I test my movie:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at Portfolio_fla::MainTimeline/frame273()
    Portfolio.fla is the name of my flash file. Anyone know what this means?
    I have only very simple code at frame 273:
    stop();
    bHome.addEventListener(MouseEvent.CLICK, goHome);
    function goHome(evt:Event) {
    this.gotoAndPlay("home");
    bPortfolio.addEventListener(MouseEvent.CLICK, goPortfolio);
    function goPortfolio(evt:Event) {
    this.gotoAndStop("confluence");
    That's it. The bHome button works if I just have that code by itself, but when i add the bPortfolio code, I get the #1009 error when I test the movie.
    Thanks in advance for any help! I'm so frustrated and lost.

    Just so you have an idea of what the 1009 error represents... the 1009 error indicates that one of the objects being targeted by your code is out of scope.
    This could mean that the object....
    - is not in the display list
    - doesn't have an instance name (or the instance name is mispelled)
    - does not exist in the frame where that code is trying to talk to it
    - is animated into place but is not assigned instance names in every keyframe for it
    - is one of two or more consecutive keyframes of the same objects with different names assigned.
    If you go into your Publish Settings Flash section and select the option to Permit debugging, your error message should have a line number following the frame number which will help you isolate which object is involved.

  • HT201210 I have the problem on my I phone 3Gs there is an error 1015 need help

    Hello there I need help with my I phone 3Gs, there is an error 1015 when I started updating the new version for I phone  and there it is a problem so help me thanks

    Your phone is jail broke. Check here
    http://support.apple.com/kb/TS3694#error1015

  • MuseJSAssert Error. Need help.

    I need help. All of a sudden, I am getting an error on my website in IE (8 or 9). Here is the error:  MuseJSAssert: Error calling selector function:TypeError: 'undefined' is not a function (evaluating 'PIE.attach(this)'). Please help someone. This site was just ready to go live. The page is found at www.irmographics.com/adstreet. Any help would be greatly appreciated

    Yes! IE8 doesn't not display Edge Animations. Period. So I figured out a
    workaround. Took a lot of my brain power! Just creating the Edge animation
    and using this new method to integrate will result in a white box in IE8.
    Which is fine, of course, if you can create a down-level stage and that will
    present. The trouble was, I had links in my animation and the down-level
    stage just would not let me put links on it to different pages (I could put
    them, but they didn't show up using this method of integration). Anyway, so
    I went back to the original stage, removed the sign post and signs from the
    animation, then published my animation without those. I placed that in Muse,
    then, on top of it, I placed the sign post and my links to my pages. Now, it
    works with the animation and with the down-level stage poster image in IE8!
    Like I said, I really had to think through it. The key for me to remember is
    that my links need to be something I could do outside of Edge, creating my
    menus/navigation in Muse instead and putting on top of the animation. Thank
    you for all your help. It did help.
    Donna Camacho
    Irmographics, LLC
    Find us on Facebook!

  • Windows 8.1 Error 2 need help.

    Hello I finally got an iPhone 5s, and I need to download iTunes so I can update my IOS 7.x to 8.1.2. After I downloaded ITunes I get an error 2 "apple application was not found. Apple Application support is required to run Itunes. Please uninstall Itunes, Then install Itunes again. I had an older version of itunes an it worked perfectly well before. I had my computer wiped clean and deleted everything. I tried reinstalling a few times, deleted every file including quick time and installing it again. Restartng my computer etc. I trie d to repairing itunes using the setup but it says i am missing iTunes64.msi and i can't find another source since it is missing.
    [img]http://puu.sh/ezw0F/c5ecbc6576.png[/img]
    [img]http://puu.sh/ezwgf/5569358769.png[/img]
    I also try doing another method extracting the itunes setup using rarlab but can't seem to extract it to a folder to instal the standalone AAS installation.itunes error 2
    It would just make another Itune64Setup. I need help please
    Itunes 12.01
    Windows 8.1

    Update:
    I have downloaded QuickTime and I got a new error.
    I can't start ITunes because MediaAccessibilty.dll is missing
    An error 7 that iTunes is incorrectly installed
    and I still have the same error trying to repair.

  • .R3D Error & unsuported need Help Please

    I have Donwloaded .R3D file from the link below,
    http://www.reduser.net/forum/showthread.php?66510-So-what-can-you-do-with-a-Scarlet-X
    just wanted to try them in my editing system, but each time I try to import the files its says (unsupported or damaged file error). I have also updated the latest version of premiere CS5 - 5.0.3 & After effect CS5 - 10.0.2
    I work on Adobe CS5
    My editing system is:
    i7 980x extreme
    24 GB ram DDR3
    120 SSD Drive OS
    2TB HDD Drive
    GTX 480
    Please need help in this problem

    hello
    I think default red support is for regular red one only. For scarlet/epic you have to install an installer from adobe labs - http://labs.adobe.com/technologies/redepic_importer/ . But I think it works only with CS5.5 (not sure) so if you have regular CS5 then you may be out of luck.

  • I'm from Siria and I can't download Apps, what can I do?  (error 1009) please help me !!!

    Please help me I have an iphone 5 and I can't use it!! I'm from Siria so I can't download apps error 1009 why apple do this? And how can we solve it? Please help me

    You can only download apps from an iTunes store in the country in which you reside.
    A few explanations could be found here:
    iTunes error 1009

  • Weird error message need help..

    SO.. i havent updated my itunes in a while because i keep getting this weird message.. it comes up when im almost done installing the newest/newer versions of itunes. it says
    "the feature you are trying to use is on a network resource that is unavailable" "click ok to try again or enter an alternate path to a folder containing the installation package 'iTunes.msi' in the box below"
    now when ever i choose a file from the browse box it replies with this message "the file 'xxx' is not a valid installation package for the product iTunes. try to find the installation package iTunes.msi in a folder from which you can install iTunes."
    no idea need help thanks
    ~~~lake
    Message was edited by: DarkxFlamexCaster
    Message was edited by: DarkxFlamexCaster

    +it comes up when im almost done installing the newest/newer versions of itunes. it says+ +"the feature you are trying to use is on a network resource that is unavailable" "click ok to try again or enter an alternate path to a folder containing the installation package 'iTunes.msi' in the box below"+
    With that one, let's try the following procedure.
    First, head into your Add/Remove programs and uninstall your QuickTime. If it goes, good. If it doesn't, we'll just attend to it when we attend to iTunes.
    Next, download and install the Windows Installer CleanUp utility:
    Description of the Windows Installer CleanUp Utility
    Now launch Windows Installer CleanUp ("Start > All Programs > Windows Install Clean Up"), find any iTunes and/or QuickTime entries in the list of programs in CleanUp, select those entries, and click “remove”.
    Next, we'll manually remove any leftover iTunes or QuickTime program files:
    (1) Open Local Disk (C:) in Computer or whichever disk programs are installed on.
    (2) Open the Program Files folder.
    (3) Right-click the iTunes folder and select Delete and choose Yes when asked to confirm the deletion.
    (4) Right-click the QuickTime folder and select Delete and choose Yes when asked to confirm the deletion. (Note: This folder may have already been deleted if QuickTime was successfully removed using Add/Remove Programs earlier.)
    (5) Delete the QuickTime and QuicktimeVR files located in the C:\Windows\system32\ folder. Click Continue if Windows needs confirmation or permission to continue. (Note: These files may have already been deleted if QuickTime was successfully removed using Add/Remove Programs earlier.)
    (6) Right-click on the Recycle Bin and on the shortcut menu, click Empty Recycle Bin.
    (7) Restart your computer.
    Now try another iTunes install. Does it go through properly now?

  • Why iphone send me error 1009 i live in iran yeah i know but app store works for me until today that send me error 1009 please help me

    Why my iphone send me error 1009 , i know i live in iran and ... But appstore doesn't send me error until today that  i face with this error

    The 1009 error is normally associated with a blocked country. There are a list of countries that Apple is not allowed to sell their software to due to US restrictions. Iran and Syria come to mind but I believe there are about a dozen.

  • Throws an error OnCreatMainForm, Need Help.

    The Error it self:
    An unhandled exception of type
    'System.InvalidOperationException' occurred in AS-Design.exe
    Additional information: An error occurred creating the form. See Exception.InnerException for details.  The error is: The form referred to itself during construction from a
    default instance, which led to infinite recursion.  Within the Form's constructor refer to the form using 'Me.'
    Picture:     This is inside the Application.Designer.vb File
    I renamed the form to Mainn because Form1 doesn't look like a good enough name. And once i changed it i ran the application in debug mode and i ran into this error.
    Any help is appreciated!

    Hi Nettro,
    I have made a very simple form, renamed and debugged it, it worked ok. From the exception message it seems as if you create a default instance which led to infinite recursion. The links below might be useful to you:
    #The form referred to itself during construction from a default instance, which led to infinite recursion
    http://stackoverflow.com/questions/18437664/the-form-referred-to-itself-during-construction-from-a-default-instance-which-l
    #Suddenly I'm getting this error: The form referred to itself during construction from a default instance
    https://social.msdn.microsoft.com/Forums/windows/en-US/12fdb8c4-14c5-444e-9fcc-8531ae56d064/suddenly-im-getting-this-error-the-form-referred-to-itself-during-construction-from-a-default?forum=winformsdesigner
    It would be helpful if you could share us more information about your form.
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

Maybe you are looking for

  • File Error While Importing Video

    I am having a problem with importing some mp4 files I just ripped off of a DVD into FCP. The message I get when trying to import is: File Error: 1 File(s) recognized, 0 access denied, 1 unknown The Files are MPEG-4 and were ripped and converted by Ma

  • Can anyone tell me where I can find a beginners guide to the filing system?

    Can anyone tell me where I can find a beginners guide to the filing system on the Macbook Air iOS 10.9.4?

  • Iphone 2g wont start

    Hello, the battery of my iphone 2g went off while it was in recovery mode i tryed everything now .. the only thing i could remember is that is was really hot at the backside. please help me thanks in advance

  • DEPLOY FORMS IN TOMCAT CONTAINER

    dear all, i developed a small application using oracle Forms 10g that it s okay under OC4J and i d like to deploy it in a tomcat container installed as a standalone web server or in apache web server , can you lead me to a blueprint document that sho

  • Problem with deleting images from iPhone with Mac

    When I connect my iPhone 5 to macbook pro Image Acquire opens. I want to delete all images of my iPhone but with it (Image Acquire) I can't because  the delete button is disabled. Why? Maybe because I noticed a locker near the images? Don't know, can