Quick problem / Error 1067

Real simple program. Basically plots a dot wherever you click. Getting the error 1067: Implicit coercion of a value of type Class to an unrelated type Function.
package {
    import flash.display.MovieClip;
    import flash.events.MouseEvent;
    public class particle extends MovieClip {
        //private var _xmouse:Number;
        //private var _ymouse:Number;
        private var mc1:MovieClip = new MovieClip();
        private var mc2:MovieClip = new MovieClip();
        private var mc3:MovieClip = new MovieClip();
        private var mc4:MovieClip = new MovieClip();
        private var mc5:MovieClip = new MovieClip();
        public function particle() {
            mc1.graphics.beginFill(0xFF0000, .2);
            mc1.graphics.drawCircle(mouseX,mouseY,5);
            this.addChild(mc1);
            mc2.graphics.beginFill(0xFF0000, .2);
            mc2.graphics.drawCircle(mouseX,mouseY,4);
            this.addChild(mc2);
            mc3.graphics.beginFill(0xFF0000, .4);
            mc3.graphics.drawCircle(mouseX,mouseY,3);
            this.addChild(mc3);
            mc4.graphics.beginFill(0xFF0000, .6);
            mc4.graphics.drawCircle(mouseX,mouseY,2);
            this.addChild(mc4);
            mc5.graphics.beginFill(0xFF0000, 1);
            mc5.graphics.drawCircle(mouseX,mouseY,1);
            this.addChild(mc5);
            addEventListener (MouseEvent.CLICK, particle);
Thanks a ton

I dont know if i follow exactly what your trying to do.....and getting tired so i wont run the code myself to see it work
But you cant call the class function from the eventlistener...this line here-->  addEventListener (MouseEvent.CLICK, particle);
particle is your class definition......
instead you should just have per se.........the addEventListener inside the particle function and call another function when it clicks like so
package {
    import flash.display.MovieClip;
    import flash.events.MouseEvent;
    public class particle extends MovieClip {
        //private var _xmouse:Number;
        //private var _ymouse:Number;
        private var mc1:MovieClip = new MovieClip();
        private var mc2:MovieClip = new MovieClip();
        private var mc3:MovieClip = new MovieClip();
        private var mc4:MovieClip = new MovieClip();
        private var mc5:MovieClip = new MovieClip();
        public function particle() {
            addEventListener (MouseEvent.CLICK, particle);
          public function drawParticle(event:MouseEvent)
               mc1.graphics.beginFill(0xFF0000, .2);
            mc1.graphics.drawCircle(mouseX,mouseY,5);
            this.addChild(mc1);
something along those lines....its just i'm sleepy so i wont test nor will i try to correct at this time....but you should get my drift... is like 2am right now.....so i'm off.....maybe next time i'll clarify more
thelegendaryghost

Similar Messages

  • Error message "Share failed quick time error -50"  How to fix this problem?

    I cannot export to a .mp4 file using compressor without getting an error message "Share failed Quick Time Error -50.  How can I get around this problem?

    Specifically, how are you exporting to mp4? For example, using the Share menu…and if so, which of the presets?
    Russ
    Message was edited by: Russ H Re-read the first post.

  • Error 1067: when trying to update Adobe Acrobat 9 Pro

    I have Adobe Acrobat 9 Pro and have been using it for over 3 years. I Changed computers and uninstalled it from my first and then reinstalled it in my new, but have run into a problem that I cannot find an answer to, nor can I get any help from Adobe.
    I will be notified that there are updates available and I will select yes to update the program, but after 20-30 second, a new window will pop up stating:
    Update Failed
    The process terminated unexpectedly.
    Error: 1067
    Details   (http://helpx.adobe.com/acrobat/kb/update-errors-acrobat-reader-windows.html)
    From there, I will click on the Details link and be sent to an Adobe page telling me:
    Try downloading Reader directly from this page.
    This link sends me to a page to download the latest version of Adobe Reader (http://get.adobe.com/reader/direct/), so, I will make all of the selections, download it, install it, restart my computer, but when I open Acrobat 9 Pro and try to run the update again, nothing changes and I receive the same error message.
    Now, I go to try and get some help from Adobe, but am just sent here to see if I can find out any other information because they "no longer" help with Acrobat 9 Pro(?).
    Does anyone have any answer on what I can do to fix this or why this is happening? I've never had any problems with this program before. It just all started when I changed computers, and this one is a brand new computer, so no bugs or anything. I installed Photoshop CS5, Illustrator CS5 and InDesign CS5 without any problems and they all updated without a problem.
    I'm not sure how important the updating really is, but it makes me feel better, knowing that any changes or problems with the program can get "fixed" with these updates.
    Thank You,
    Sean

    Not that it is going to ease the testing of your patience at all to suggest you try somewhere else, but there is a forum dedicated to Acrobat Installation and Update Issues that might have some info or people ready and able to help you:
    http://forums.adobe.com/community/acrobat/installation_and_update_installation?view=discus sions

  • Apple Mobile Device service is not started error 1067

    Apple Mobile Device service is not started error 1067 in Windows 7.

    Thanks Ryan Sensei. I followed your link. Though I didn't have any Megaupload software installed on my computer, I saw a related article on http://senseiphone.com/fix-apple-mobile-device-not-started_itunes-0315129/ which was my actual problem and fixed it perfectly. 

  • DVD Studio burning problem error message: "remove the VIDEO_TS folder from the Build Location"; where is build location

    DVD Studio burning problem error message: "remove the VIDEO_TS folder from the Build Location"; where is build location?

    Thanks Shane I followed your instructions and it turned out pretty well. One quick question, Im working with DVD Studio Pro 4, how do i implement a theme into my project? I cant even fin where thay are located. Thanks.

  • Error:1067 - Implicit coercion of a value of type QName to an unrelated type QName

    hi,
    I'm new in flex and my english not good. I'll try to explain
    my problem :(
    I have an application mxml and a component mxml. I imported a
    wsdl from .net webservice.
    In main mxml I added:
    <mx:Application .....
    xmlns:webservices="generated.webservices.*"/>
    and
    <webservices:xService id="m_service"/>
    there is no problem for this. But when I added into component
    mxml like this:
    <mx:Canvas.....
    xmlns:webservices2="generated.webservices.*"/>
    and
    <webservices2:xService id="m_service2"/>
    I'm getting the following error:
    error line sample: (and 633 similar lines in
    generated.webservices)
    responseMessage.wrappedQName = new QName("
    http://tempuri.org/","GetMemberListResponse");
    error:
    1067: Implicit coercion of a value of type QName to an
    unrelated type QName
    When I removed the <webservices2:xService
    id="m_service2"/> line from component mxml, I'm not getting an
    error.
    Flex 3.0 - sdk 4.0
    Thanx for your helps

    thanx your answer,
    I changed (like this:[WebService(Namespace = "
    http://Info.WebService/MyInfoService"))
    but it doesn't work. I still have same problem.
    It's really strange problem. When I used in application mxml,
    it's working. But when I used in component mxml, I'm getting error.
    I tested the web servise in other test application mxml with
    following code: (it's working excellent)
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" xmlns:webservices="generated.webservices.*"
    creationComplete="test12()">
    <mx:Script>
    <![CDATA[
    import mx.rpc.AsyncToken;
    private function test12():void
    m_service12.addgetFuelList_header(GetAuthHeader());
    m_service12.getFuelList();
    ]]>
    </mx:Script>
    <mx:Script source="***/ServiceAuthHeaderGetter.as"/>
    <webservices:TankInfoService id="m_service12"/>
    <mx:DataGrid
    dataProvider="{m_service12.getFuelList_lastResult}">
    </mx:DataGrid>
    </mx:Application>
    And finally I closed "Enable strict type checking" from
    project properties and the errors are disappeared.
    But now I got new problems with webservice :)
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    I guess <webservices:TankInfoService id="m_service"/>
    is null.
    But why?
    in component mxml
    I added xmlns:webservices="generated.webservices.*" namespace
    and
    <webservices:TankInfoService id="m_service"/>
    my code is:
    m_service.addgetMemberList_header(GetAuthHeader());
    m_service.getMemberByUserPassword(this.txtUser.text,
    this.txtPassword.text);
    the error:
    TypeError: Error #1009: Cannot access a property or method
    of a null object reference.
    Any ideas???

  • Compressor Quick Time error: 0

    I was sending a sequence from FCP7 to Compressor, but kept getting  Failed Quick  Time error : 0. Went back to the time line in FCP7 tried to render the sequence but it failed too, after sometime I narrowed down the clip with the problem and found there were frames missing or shifting( not sure what they were doing, take a look at the screen shot you can see right at her shoulders a split screen effect) and a few frames latter the audio dropped out. Here are some screen shots of what it looked like. Because it would render the audio I just cut out the effected video and replaced it with some B- roll and it worked.

    no any audio mp3

  • Quick time error "a file could not be found"

    Quick time error "a file could not be found" when trying to open a file that exist in a directory name including hebrew characters.
    When copying the same file to other directory with english characters only, file opens without any problem.
    This is very frustrating since my files are located under My documents directory
    The full path of the "My Document" directory is:
    C:\Documents and Settings\אלון\My Documents.
    Also, I have IPOD 5G (with video). iTunes does not have any problems with audio files located under the above directory, but video files for my IPOD have the same problem (since probably it is using Quick time). The problem with iTunes is more frustrating since it does not report any error, but you just cant update video podcasts or add video files to library.
    I spent a few days to uderstand this.
      Windows XP  

    http://discussions.apple.com/thread.jspa?threadID=769732
    This is a old post from when I had recieved the Error-43 file could not be found. In my case I had a drive lettered F:\ F:\ when changing the drive to a single letter F:\ it resolved the problem, so something you might want to take a look at.

  • When I try and Share a project, I get a Quick Time Error -50  Any Ideas?  Apple Care is scratching thier heads.

    When I try and Share (export) a project, I get a Quick Time Error -50  Any Ideas?  Apple Care is scratching their heads.

    Okay, after several hours on the phone w/ Apple Care includiing nearly 10 hours on Wednesday, we finally figured out why I would get a Quicktime Error -50 when I tried to share a project out of FCP X.  The problem was in the music track that I had in the project.  I ripped a track from an audio CD, put in my iTunes then imported into the FCP timeline just as Apple says to do.
    The problem is; iTunes default rippping codec is AAC.  FCPX can't handle AAC compression.  I had to re-rip the audio CD to a uncomressed AIFF file, bring that back into my project and then FCPX could share the file and do it's own copression.
    This was a new discovery for Apple and FCPX.

  • Error 1067: The process terminated unexpectedly

    Hi all,
    I found this error while I changed my WinNT 4.0 Administrator password, then
    my Netscape Administration Server never started up anymore. What is the
    problem exactly, and how can I fix it?
    Any feedback would be deeply appreciated.
    "Could not start the Netscape Administration Server 4.2 service on
    \\MYSERVER.
    Error 1067: The process terminated unexpectedly"
    Best regards
    Wilky Wong

    This one may help for the first one.
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/206bd205-3dd8-411f-a3d2-b94667f84992/the-report-server-cannot-decrypt-the-symmetric-key-used-to-access-sensitive-or-encrypted-data-in-a?forum=sqlreportingservices
    They can help you with the second one over here.
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?forum=sqlexpress&filter=alltypes&sort=lastpostdesc
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • I trying to download itunes on my laptop several times but I keep getting a Quick Time error -2096. How do I remove this error?

    I trying to download itunes on my laptop several times but I keep getting a Quick Time error -2096. How do I remove this error?

    Do you see the problem if you turn off Compatibility Mode for QuickTime?
    Right-click on the QuickTimePlayer application (located in C:\Program Files\QuickTime) and choose Properties from the shortcut menu.
    In the Properties window, click the Compatibility tab
    Deselect all checkboxes currently selected in the Compatibility tab.
    Click Apply.
    Close the Properties window.
    Check out this Apple document -> Error -2096 message when opening QuickTime for Windows in Compatibility Mode

  • Apache http server won't run - error 1067

    Hi, I succesfully installed the latest version of Oracle RDBMS on a Windows XP machine. I included the APache HTTP server in the install. It all worked fine. Then I installed the Oracle development suite (rapid application development selection), and since cannot get the Apache server to run. It gives error 1067. On issueing "F:\oracle\ora90\Apache\Apache>apache.exe start -k" I get the following error: "Syntax error on line 14 of F:\oracle\ora90\rdbms\demo\aqxml.conf: Invalid command 'ApJServGroupMount', perhaps mis-spelled or defined by a module not included in the server configuration".
    Any ideas?? I amnew to both Oracle and Apache. Thanks for any help offered.

    I have exactly the same problem... does anyone have any ideas how do I solve it.

  • Windows Server Service Provider Registry fails to start - error 1067 The process terminated unexpectedly

    Hello experts,
       I have a SBS 2011 Essentials installation that suddenly has an empty dashboard.
    Event viewer:
    APPLICATION LOG - Event ID: 1000 Source: Application Error
    General Description:
    Faulting application name: ProviderRegistryService.exe, version: 6.1.1840.0, time stamp: 0x4d6dafda
    Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
    Exception code: 0x80131623
    Fault offset: 0x000007fe958b0717
    Faulting process id: 0xff8
    Faulting application start time: 0x01cf340bce30552f
    Faulting application path: C:\Program Files\Windows Server\Bin\ProviderRegistryService.exe
    Faulting module path: unknown
    Report Id: 0befeb0f-9fff-11e3-852b-d4ae52c1faae
    APPLICATION LOG - Event ID: 1025 Source: .Net Runtime
    General Description:
    Application: ProviderRegistryService.exe
    Framework Version: v4.0.30319
    Description: The application requested process termination through System.Environment.FailFast(string message).
    Message: Unhandled exception in OnStart: System.ArgumentOutOfRangeException: Not a valid Win32 FileTime.
    Parameter name: fileTime at System.DateTime.FromFileTimeUtc(Int64 fileTime)
    SYSTEM LOG -Event ID: 7031 Source: Service Control Manager General Description:
    The Windows Server Service Provider Registry service terminated unexpectedly.  It has done this xx0 time(s).  The following corrective action will be taken in 60000 milliseconds: Restart the service.
    When I try to start this service I get 'error 1067 - The process terminated unexpectedly'. I have checked all dependencies of this particular service and they are all running properly. I've restarted these dependencies, disabled Kaspersky
    protection, restarted the Server a few times to no avail.
    Any ideas? Thank you!

    I had this exact same problem! Thank you so much Robert for posting a link to that script! That is truly an amazing Powershell script.
    I had all the same errors that AK772 mentioned, but I chose to zoom in on a different issue that the script pointed out. When I ran the "Test CA Infrastructure" step it found several errors. When I looked at what the script was doing there it was
    comparing the server certificate thumbprint in the registry (HKLM:\Software\Microsoft\Windows Server\Identity) with the personal certificates (Personal Certificates in the Certificate snap-in using MMC). When I looked through them individually, sure enough
    the thumbprint in the registry didn't exist in my certificate store. I have NO idea how this could have happened!
    However, from there, I changed my Google search criteria and found the following excellent article:
    http://titlerequired.com/2013/04/29/windows-server-2012-essentials-an-error-prevented-the-dashboard-from-opening/
    This told more about that error and showed how to regenerate the certificate identity in the registry. This totally saved me! Once I ran through the steps that he outlines, even though I got a timeout error towards the end, I could see that the certificate
    thumbprint had changed in the registry and now existed in my personal certificate store.
    Once I saw this, I tried going into services and manually starting the stopped "Windows Server Service Provider Registry" service. Sure enough it started right up, no error this time. Finally, I restarted the server so that all of the other dependent
    services would come back up and re-ran the linked script above and everything was perfect.
    Thanks so much for the breadcrumbs in this post and all of your contributions. I hope that this post will equally be able to help someone else through this very troublesome and evasive error!

  • Bonjour error 1067

    Running windows 7
    I upgraded from iTunes 10.3.4 to version 10.7 and bonjour gave an error 1067.  No matter what I did I could not resolve the problem. I ended up downgrading again to 10.3.4 and bonjour started working fine.
    I have just upgraded to v11.0 and have the same problem
    This is getting really annoying now, especially when background program's stop running due to iTunes telling me there is an upgrade.
    I am running whole multimedia system streaming to 2 iPads and 3 apple Tv's. as bonjour has this problem I cannot stream to any of the devices.
    Anyone with a solution?
    I Have gone Into services to try and start but keep getting the same error

    Hi all,
    I have installed Oracle10g in windows xp ...
    I am unable to connect from my application . On viewing the services, oracleCSService is not yet started eventhough it is automatic . While manually starting it
    its showing an error
    "Could not start the oracleCSService on Local Computer
    Error 1067: Process terminated Unexpectedly...."
    I hope somebody can help me on this !!
    Thanks

  • ZEN Vision 'Hardware Problem' error mess

    Model No: ZEN Vision - PMC-HD0002
    Error occurred as a result of a firmware upgrade.I can access 'recovery mode' &?have attempted several further firmware upgrades.It loads, rebuilds, reboots, starts then the 'hardware problem' error message returns.The device is currently stating, in 'recovery mode', that the following firmware is loaded v.42.0_0.0.9.I have removed all data (format all), run 'clean up' & 'rebooted' then upgraded firmware but with no success.?Any ideas will be greatly received & appreciated.

    hi.
    i have exactly the same problem.
    did you manage to find any answer?
    how did you access the recovery mode?
    your response will be greatly appreciated.
    thanks!

Maybe you are looking for

  • WiFi not working on some android devices

    Hi. I'm having trouble with the wireless connection on my new home hub 3. Most devices will connect easily, but there are three devices that have trouble connecting. These are an Android Phone (Samsung Galaxy Mini), an android tablet (Sony Tablet S)

  • I need to find someplace that I can get my HP G61-322NR motherboard repaired in Boise, Idaho

    My old motherboard in my laptop overheated and melted (so very bad) So I bought another used motherboard THINKING it was fully working as was stated on the website from the place I bought it from. They will not refund my money on this board at all. T

  • Getting Acrobat to update

    I have Acrobat 9 Pro. When I go to Help->Check For Updates, I get a popup that says "The update server is not responding, which means that it might be offline at the moment, or the Internet or firewall settigns may be incorrect. Please try again late

  • I couldn find it in forum.Plz help on function module

    which is the function module to update data to tables of different system dynamically. Moderator message : Vague question, show the work you have already done.  Thread locked. Edited by: Vinod Kumar on Feb 1, 2012 2:58 PM

  • Need help with adobe flash player 10.2 keeps crashing

    ok i am having a problem with the adobe flash player ten it keeps crashing on firefox ie8 and google chrome operating system is windows xp  32 bit really need help because this has been going on for 3 weeks straight  and i downloaded the adobe flash