I have some problems with the Flash cs6 work

I have a problem with my game when I created it using adobe flash cs6

When the duck strikes the screen, from right to left as it shows

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

Duck / ducksmove)

at flash.utils::Timer/_timerDispatch()

at flash.utils::Timer/tick()

This is the code so please help check that does not

package {}

import flash.display.MovieClip;

import flash.utils.Timer;

import flash.events.TimerEvent;

import flash.events.MouseEvent;

Duck/public class extends MovieClip {}

var moveDuck:Timer = new Timer (10);

var speedX:Number;

public void Duck() {}

this.addEventListener (MouseEvent.CLICK, KillDuck);

moveDuck.addEventListener (TimerEvent.TIMER, ducksmove);

moveDuck.start ();

speedX = 10;

}

function ducksmove(evt:TimerEvent):void

{

This.x = speedX;

If (this.x < = 0)

{

moveDuck.stop ();

moveDuck.removeEventListener (TimerEvent.TIMER, ducksmove);

this.parent.removeChild (this);

}

}

function KillDuck(evt:MouseEvent):void

{

var p:MovieClip = this.parent as MovieClip;

p.setScore ();

p.UpdateCount ();

this.removeEventListener (MouseEvent.CLICK, KillDuck);

this.parent.removeChild (this);

moveDuck.addEventListener (TimerEvent.TIMER, ducksmove);

}

}

}

You seem to be trying to delete the same object twice, in the KillDuck function, then in the ducksmove function.  If it is removed already you can not try to remove it again because it is no longer in the display list.

Tags: Adobe Animate

Similar Questions

  • Sierra Siri, «I have some problems with the connection...» »

    Guys,

    I just installed Sierra on my MacBook Pro (retina, 13 inches, early 2015) version 10.12. I can't get Siri at work, the app tracks, he hears what I'm saying, but after awhile, he returns with two messages, both on the screen and verbally "I have some problems with the internet connection. Please try again in a moment. "&"Sorry, I'm having problems with the connection. Please try again in a moment. »

    Any ideas?

    Thank you

    N

    It's a network problem.

    Check the proxy settings that blocks maybe, or a firewall.

    System Preferences > network > Advanced (for your current connection) > Proxies

    Something there?

  • I have a problem with the LifeCam 3000 works is not on Windows 8.

    Original title: ask the community

    When I installed Windows 8, my LifeCam HD3000 has stopped working, I deleted all the old drivers, disconnected etc and then reinstalled the last 4.25 driver version, but I have no longer a desktop icon, or the ability to start the camera. Please inform me of what to do now.  I need the camera for Skype etc with family abroad.   Any ideas?

    KRAL

    Hi Ken,

    1. have you checked if the webcam works in the photo app?

    2 are. what buttons you referring? Are you referring to the Skype app?

    I suggest you try to use a different port or check the webcam on another computer. That would help us determine if there is a problem with hardware.

    I suggest also refer to the link and try to use the webcam via photo app and let us know the results:

    App photo and webcams: FAQ

    http://Windows.Microsoft.com/en-in/Windows-8/camera-app-FAQ

    It will be useful.

    Hi Rohit,

    I was talking about the button on the windows 'Start' screen 8, not having even the LifeCam button performed on the installation of the programme of work.

    However, I this afternoon, completely erased the files on the computer and remove the button from the start screen.  Then I re-installed the earlier version of LifeCam how (for the first time), I was advised to wait for the last update to install after I plugged the device into an outlet of the USB2 and 'Bingo' the camera works now.  It even works on the button that has been postponed on the start screen.  I'm not too sure what I did, but the camera works using the LifeCam button, but not the camera to Windows or video button, but that's no problem.  Thank you for your interest and your help.

  • After the update to Photoshop, I have some problems with the Photoshop splash screen. The same thing with 'A way'

    Untitled-2.jpg

    Untitled-1.jpg

    It is a known issue that slipped with our patches for the update.  Already, we have a fix in hand and it comes out in our next update to users.

    Thank you

    Adam

  • I have a problem with the Windows Firewall work is not on the computer.

    Original title: windows firewall does not work?

    Have a laptop (Dell Inspiron) it has a virus on it (the fbi one) and then after I got rid of him, found others. Trouble with turning on the firewall, this time no error just sits and circles around. Uninstalled anti-virus programs, then installed a new run malware and tried a few things online. Tried to copy the registry from a windows 7 to another, no change (bfi or something like that).

    Tried to repair and that has not worked yet.

    Is there anything like that, I can extract, or a .dll file that could fail to clear up this problem. Downloaded avast and computer seems to work quite well. I would like to fix without having to reinstall everything.

    Thanks, Bruce

    It can now work. I launch tdsskiller and what he said, restarted.

    I have green shields now, even if I'm running emisoft emergency kit and which shows a Trojan horse, a rootkit and a gen.varient as other programs didn't pick up before, I ran malware and 2 other anti-virus programs before tdsskiller. Even tried rkill.

    Thanks, Bruce

  • I have a problem with the capture tool works not properly on Windows 8.

    Can I change to automatically let me start to select without clicking on New?

    Original title: snipping tool - work when I start it up, the new button has already been clicked but not at home

    Clarification:

    At work, my computer is Windows 7. At home, it is Windows 8. At work when I start the capture tool I have not hit any other button in order to start the selection of the area I want to Snip. The tool is already gray and my mouse is ready to score my selection.

    At home when I start the capture tool, I get the menu, click on 'New' and THEN I can start my selection - one additional click. It annoys me (I know it's small, but I cut a lot) so I was hoping there was a setting I could change how it starts.

    I know that's not exactly a new topic, but I found that I had the same problem.  I found that the cause of this problem actually comes from OneNote believe it or not.  If you have recently updated your Office Suite and now have the ability of OneNote, all you have to do is to open OneNote and configure.  Once you get it configured you can then select the options that you just press the Windows key + S to be able to cut out a screen shot and you can also set it to copy directly to the Clipboard, then there is no need to tap the new button more in the cutting tool.  Hope this makes sense and helps anyone having the same problems I had.

  • I have a problem with the Microsoft Programs work is not on the computer.

    Original title: programs MS 'arrested '.

    I was cold called by a company, (Smart snake) who told me that my pc has returned error reports and they can fix it, but they have to take control of my PC to do.  They forced me to put in "config" at the C prompt to show me how many MS programs have been arrested.  Anyone know if it is likley to be authentic and if so, what is the best course of action to make about the programs of the MS order

    Its all in the name; Snake - powder of snake oil

  • I have a problem with the print screen works is not on Windows 7.

    Original title: PrtScrn doe not work, you need to know the correct procedure

    System = Dell Inspiron 1545-3055 PC, Windows 7, printer is HP3520

    The problem has been reso; VGT in Windows 8 need to know this before Win8.

    Thanks for your quick reply, your help is always appreciated.

    Don Sowarby

    It is not considered a bug - it's just a misnamed former feature of computing which lasted. Therefore, it is not "fixed" in Windows 8.

  • Some problems with the videoheader

    Hey guys,.

    I have some problems with the videoheader in first Pro CC 2014/15. I also googled and tried almost everything I found. So I asked first on Twitter and they told me to ask this here again.

    So here go us: Clemens on Twitter: '@AdobePremiere correct it's ridiculous... Why is the videoheader visible on the good site but not on... in the picture you can see my problem and it's really annoying.

    I hope you can help!

    Kind regards

    Clemens

    Hi Vinay,

    well... my fault... I do not have the small area of drag (red rectangle) above the audioheader allowing to drag to the bottom of my videoheader.

    Thanks for trying to help me in Vinay

  • Hi, I have a problem with the download trial version of adobe after effect cc. When I want to download instad of download there are massage: we are experiencing some problems, please try again later. If the problem persists, contact customer support

    Hi, I have a problem with the download trial version of adobe after effects cc. When I want to download instad of download there are massage: we are experiencing some problems, please try again later. If the problem persists, contact customer support. What seems to be a problem? Thank you

    Please try after effects configuration required for Mac OS and Windows

    Concerning

  • I have Photoshop CS6 and Lightroom 5.7. They are currently installed on a PC with Windows 8.1 Professional 32-bit and 4 GB of RAM. I want to move to a PC with Windows 8.1 Professional 64 bit and 32 GB of memory, because I have a problem with the large

    I have Photoshop CS6 and Lightroom 5.7. They are currently installed on a PC with Windows 8.1 Professional 32-bit and 4 GB of RAM. I want to move to a PC with Windows 8.1 Professional 64 bit and 32 GB of memory, because I have a problem with the large RAW from a Canon 5 Ds R. What should I do?

    You install exactly in the same way you did the 1st time... Put your disc in the drive, and enter your serial number when asked

    Download & install instructions https://forums.adobe.com/thread/2003339 can help

    -includes a link to access a page to download the Adobe programs if you do not have a disk or drive

    Also go to https://forums.adobe.com/community/creative_cloud/creative_cloud_faq

  • Hello I am a student and I have a problem with the tool Selection (V). When I opened the file AI CC with CS6 selection tool doesn't allow me to change the selection. What can I do? (I have reinstall AI CC and the problem persists)

    Hello I am a student and I have a problem with the tool Selection (V). When I opened the file AI CC with CS6 selection tool doesn't allow me to change the selection. What can I do? (I have reinstall AI CC and the problem persists)

    Ivan,

    If it's on the rectangular objects, you may have encountered the bug Rectangle Live which is limited to the MAC versions from 10.7 and 10.8, but not of 10.9 (Mavericks) or 10.10 (Yosemite). If all goes well, the bug will be fixed soon.

    Thus, a switch for the Mavericks or Yosemite with a reinstall might be the way to solve it here and now.

    To get around it, in each case, it is possible to develop direct Rectangles to get the normal old shaped rectangles or Pathfinder > unit, or use the scale tool or the free transform tool.

    A more permanent way round that is to create normal old shaped rectangles, after running the free script created by Pawel, see this thread with download link:

    https://forums.Adobe.com/thread/1587587

  • I have some problems with a ONE_TO_MANY relationship, can not insert the record

    I have some problems with a ONE_TO_MANY relationship:

    Imagine the following entities:

    -J' have an operational entity with a relationship to workers one_to_many something like:
    @SecondaryKey(relate = Relationship.ONE_TO_MANY,
        relatedEntity = Worker.class)
        private Set<String> workers;
    -The category of workers is a simple annotated entity.


    Now, I want to do the following and I get the error:

    -Create a bunch of tasks
    -Insert tasks into the entitystore
    -create a set containing all the tasks of primary key
    -involve workers to tasks
    -Insert the task in the database


    The above procedure works fine, but when I try to associate the same set of workers with another task I get an exception like:
    com.sleepycat.je.DatabaseException: (JE 3.3.75) Could not insert secondary key in persist#Sample#sample.Task#workers OperationStatus.KEYEXIST
            at com.sleepycat.je.SecondaryDatabase.insertKey(SecondaryDatabase.java:887)
            at com.sleepycat.je.SecondaryDatabase.updateSecondary(SecondaryDatabase.java:807)
            at com.sleepycat.je.SecondaryTrigger.databaseUpdated(SecondaryTrigger.java:42)
            at com.sleepycat.je.Database.notifyTriggers(Database.java:1735)
            at com.sleepycat.je.Cursor.putInternal(Cursor.java:1368)
            at com.sleepycat.je.Cursor.putNoOverwrite(Cursor.java:498)
            at com.sleepycat.persist.PrimaryIndex.put(PrimaryIndex.java:366)
            at com.sleepycat.persist.PrimaryIndex.put(PrimaryIndex.java:315)
    Can someone please clarify what my problem is and where I should change for this case study work?

    Thank you

    The above procedure works fine, but when I try to associate the same set of workers with another task I get an exception like:

    The table in this javadoc should help. Please think about whether they are 1 of many, many 1 or many is the appropriate link.

    http://www.Oracle.com/technology/documentation/Berkeley-DB/je/Java/COM/Sleepycat/persist/model/SecondaryKey.html#relate)

    -mark

  • I work in InDesign CS5 and have a problem with the panels on the right. Some of them are empty. Ideas?

    I work in InDesign CS5 and have a problem with the panels on the right. the panels color chart, paragraph styles, and totally blank menus link. I pulled upward from publications that I already worked on and they are still virgins. I tried to load styles from other pubs, ID, and that does not work either. I can see them when I go to create a new style and use BASED on function.

    Any ideas?

    Try to restore your InDesign preferences. Here's how:

    FAQ: How to reset or 'trash' preferences?

  • Many of my sites have been created with Adobe Flash CS6 installed on my computer. I don't have a creative cloud.

    I'm a web designer. Many of my sites have been created with Adobe Flash CS6 installed on my computer. I don't have a creative cloud. It cannot consider sites that are up to now on mobile phones and tablets that will not allow the flash. Is this new version allows flash to mobile phones and tablets? What should I pay for an upgrade?

    The thing that disables the use of Flash on mobile phones and tablets is the cell phone or the tablet itself - they not only without any support for Flash.  You will need to pursue alternative implementations such as javascript/css/html5 use to overcome the problems of mobile/tablet.

Maybe you are looking for