NULL REFERENCE ERROR

I have a movieclip that is playing a game when it's the button is clicked. I have the code in my "Home" button, which removes the game from the scene, if you click on it after you start a game. However if I click on my home button (or any button with my deletion indicator) without playing the game first I get:

TypeError: Error #1009: cannot access a property or method of a null object reference.
at mikesPlayhouse_fla::MainTimeline/onHomeClick()

How can I fix it? My code to remove the game follows. Thank you!

Oh, I think I understand your problem. If I understand you right, your problem is:

(1) you run the game once, and it creates puzzleBoardClip and holder
(2) you click the home button, and it removes puzzleBoardClip and holder successfully
(3) you click the home button again and it fails.

If that is correct, I believe that the desired correction is simply to puzzleBoardClip and door on a null value when you click the home button. for example

function onGamesClick(event:MouseEvent):void {}
this.gotoAndPlay ('games');
SoundMixer.stopAll ();

If (puzzleBoardClip! = null) {}
removeChild (puzzleBoardClip);
puzzleBoardClip = null;
}
If (owner! = null) {}
removeChild (holder);
owner = null;
}

}

In this way when you click on it a second time, conditional statements inside the IF statements (if (puzzleBoardClip! = null) may be distorted and he won't try again to remove the clips.)

Note that you should show these null instances in this way _anyways_ so that the garbage collector frees the memory taken up by the puzzleBoardClip and support when they are no longer needed.

Tags: Adobe Animate

Similar Questions

  • object on a simple object null reference

    Turn it on some of the projects currently working on.

    So I have this


    main.conductor.gotoAndStop (4);

    get the "#1009: cannot access a property or method of an object. null reference" error.

    Its scope, I think. the same framework and not at course time am damned a subject are right.

    frustrating it is like script101 of the action and can't make it work.

    Click the object on the stage that you think is key (to select).  take a screenshot showing the chronology, the object on stage and the properties panel.  Attach the screen shot here.

  • Null reference close behavior

    Hello

    I have a question about the behavior of the reference 'close' when you try to close a Null reference.  LabVIEW which will examine and pass or it will produce an error?  I also read in the 'help' that you can give a table of references and it close all.  However, what happens if one of the Ref table is Null?  Is this all closes the actual Ref and continue with an error, or it does not work as a passing beam to loop around the cluster of error in the shift register thus preventing to close any other Ref?  I just want to test the code to answer my own question, but as annoying as it is the case, I'm not entirely sure if he sent a white ref is the same as sending a Null Ref.  You can answer that one as well if you wish.  Thank you.

    Looks like it will produce an error if you enter a null reference and that just sent some kind of reference constant that you did not actually open is indeed zero. If you try to close a table of references, it seems that he is trying to close between them, even if it is a null in the Middle reference.

  • BCC 10.2 - Flex Message null pointer error

    BCC 10.2 - Flex Message null pointer error

    Hi all,

    I want to ask about a behavior that I have on small jets BCC when I try to save after you change an asset, but it seems that the application saves the changes.

    I'd appreciate if anyone has any suggestions on this subject

    The error is the following:

    Caused by: atg.flex.service.RemoteOperationException: CONTAINER:atg.remote.assetmanager.workbench.service.WorkbenchException; SOURCE:java.lang.NullPointerException
      at atg.remote.assetmanager.workbench.service.WorkbenchService.refresh(WorkbenchService.java:583)
      at sun.reflect.GeneratedMethodAccessor3594.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdapter.java:421)
      ... 102 more
    Caused by: CONTAINER:atg.remote.assetmanager.workbench.service.WorkbenchException; SOURCE:java.lang.NullPointerException
      at atg.remote.assetmanager.workbench.service.WorkbenchService.filterAssets(WorkbenchService.java:1089)
      at atg.remote.assetmanager.workbench.service.WorkbenchService.refresh(WorkbenchService.java:565)
      ... 106 more
    Caused by: java.lang.NullPointerException
      at atg.remote.assetmanager.workbench.service.WorkbenchService.isAutoAddAsset(WorkbenchService.java:1113)
      at atg.remote.assetmanager.workbench.service.WorkbenchService.filterAssets(WorkbenchService.java:1074)
      ... 107 more
    2014-12-29 15:28:51,232 INFO  [STDOUT][SessionId=] [Flex Messaging] 12/29/2014 15:28:51.232 [ERROR] [Message.General] Exception when invoking service 'remoting-service': flex.messaging.MessageException: flex.messaging.MessageException: atg.flex.service.RemoteOperationException : CONTAINER:atg.remote.assetmanager.workbench.service.WorkbenchException; SOURCE:java.lang.NullPointerException
      incomingMessage: Flex Message (flex.messaging.messages.RemotingMessage) 
        operation = refresh
        clientId = 1C6F8201-C12F-67BE-89C5-9F53A50B0D85
        destination = /atg/remote/assetmanager/workbench/service/WorkbenchService
        messageId = 68D7104A-0487-6486-BA17-97BCA7998B4B
        timestamp = 1419884931228
        timeToLive = 0
        body = null
        hdr(DSId) = 1C6F6CE9-5D19-D58E-99F2-4BF9B1455038
        hdr(DSEndpoint) = atg-amf
      Exception: flex.messaging.MessageException: flex.messaging.MessageException: atg.flex.service.RemoteOperationException : CONTAINER:atg.remote.assetmanager.workbench.service.WorkbenchException; SOURCE:java.lang.NullPointerException
      at flex.messaging.services.RemotingService.serviceMessage(RemotingService.java:225)
      at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1503)
      at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:884)
      at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.java:121)
      at flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:158)
      at flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:44)
      at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:67)
      at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:146)
      at flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:278)
      at flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java:322)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at atg.service.configuration.ResponseWrappingConfiguration.invokeFilterChainWithPossibleWrapping(ResponseWrappingConfiguration.java:458)
      at atg.servlet.pipeline.TailPipelineServlet.service(TailPipelineServlet.java:174)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
      at atg.servlet.pipeline.DispatcherPipelineServletImpl.service(DispatcherPipelineServletImpl.java:275)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
      at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:320)
      at com.exito.cache.ExitoPageCachePipelineServlet.service(ExitoPageCachePipelineServlet.java:157)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
      at atg.servlet.http.CookieBufferServlet.service(CookieBufferServlet.java:119)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
      at atg.userprofiling.ExpiredPasswordServlet.service(ExpiredPasswordServlet.java:383)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
      at atg.servlet.pipeline.MimeTyperPipelineServlet.service(MimeTyperPipelineServlet.java:228)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
      at atg.droplet.DropletEventServlet.service(DropletEventServlet.java:696)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
      at atg.epub.servlet.LocaleServlet.service(LocaleServlet.java:84)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
      at atg.epub.servlet.ProjectServlet.service(ProjectServlet.java:109)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
      at atg.epub.servlet.PublishingSecurityServlet.service(PublishingSecurityServlet.java:80)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
      at atg.commerce.order.CommerceCommandServlet.service(CommerceCommandServlet.java:150)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
      at atg.commerce.promotion.PromotionServlet.service(PromotionServlet.java:213)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
      at atg.userprofiling.AccessControlServlet.service(AccessControlServlet.java:696)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
      at atg.servlet.sessionsaver.SessionSaverServlet.service(SessionSaverServlet.java:2452)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
      at atg.userprofiling.PageEventTriggerPipelineServlet.service(PageEventTriggerPipelineServlet.java:191)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
      at atg.search.servlet.SearchClickThroughServlet.service(SearchClickThroughServlet.java:418)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
      at atg.multisite.SiteSessionEventTriggerPipelineServlet.service(SiteSessionEventTriggerPipelineServlet.java:161)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
      at atg.userprofiling.SessionEventTrigger.service(SessionEventTrigger.java:534)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
      at atg.userprofiling.ProfilePropertyServlet.service(ProfilePropertyServlet.java:245)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
      at com.exito.servlet.pipeline.ExitoProfileServlet.service(ExitoProfileServlet.java:147)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
      at atg.userprofiling.ProfileRequestServlet.service(ProfileRequestServlet.java:461)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
      at atg.servlet.pipeline.CachePreventionServlet.service(CachePreventionServlet.java:141)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
      at atg.servlet.pipeline.DynamoPipelineServlet.service(DynamoPipelineServlet.java:491)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
      at atg.servlet.pipeline.URLArgumentPipelineServlet.service(URLArgumentPipelineServlet.java:298)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
      at atg.servlet.pipeline.PathAuthenticationPipelineServlet.service(PathAuthenticationPipelineServlet.java:392)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
      at atg.servlet.security.ThreadUserBinderServlet.service(ThreadUserBinderServlet.java:113)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
      at atg.dtm.TransactionPipelineServlet.service(TransactionPipelineServlet.java:234)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
      at atg.servlet.pipeline.SecurityServlet.service(SecurityServlet.java:196)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
      at atg.multisite.SiteContextPipelineServlet.service(SiteContextPipelineServlet.java:367)
      at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
      at atg.servlet.pipeline.HeadPipelineServlet.passRequest(HeadPipelineServlet.java:1252)
      at atg.servlet.pipeline.HeadPipelineServlet.service(HeadPipelineServlet.java:930)
      at com.exito.cache.ExitoCachingHeadPipelineServlet.service(ExitoCachingHeadPipelineServlet.java:74)
      at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:272)
      at atg.filter.dspjsp.PageFilter.innerDoFilter(PageFilter.java:348)
      at atg.filter.dspjsp.PageFilter.doFilter(PageFilter.java:206)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilte
    2014-12-29 15:28:51,232 INFO  [STDOUT][SessionId=] r(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)
      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.internalProcess(ActiveRequestResponseCacheValve.java:74)
      at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:47)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:599)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)
      at java.lang.Thread.run(Thread.java:662)
    

    Hello

    When you create an asset, merchandising attempts to resolve one of the keys to the collection of autoAddAssetTypes of the/atg/remote/assetmanager/workbench/service/WorkbenchService to a kernel component that represents the real deposit for the specific asset. The name of active repository to repository real mapping is defined in the /atg/dynamo/service/AssetResolver / component.

    When the mapping defined in the collection /atg/remote/assetmanager/workbench/service/WorkbenchService.autoAddAssetTypes key does not match a Name of active Source defined in the dynamo/atg / / / AssetResolver/service component, a null value is returned in place of the repository, real which causes the NullPointerException.

    Please find the reference document for more information below and understand the best, hope that helps you.

    NullPointerException in atg.remote.assetmanager.workbench.service.WorkbenchService when creating any ProductCatalog object (Doc ID 1578914.1)

    Please select a correct answer if this answer solves your problem.

    Thank you & best regards

    Suman Vernoux

  • Object null Runtime Error! Help!

    Hi guys...

    I am building a single AS3 project and got runtime error that says "cannot access a property or method of a null object reference."

    Here is my code:

    hand. ACE

    public class videoMain extends Sprite {}

    private var videoPlayer:Player;

    public void videoMain () {}

    loadPlayer()

    loadProgress();

    }

    private function loadProgress (): void {}

    the code below has given me a null object error...

    var byteLoaded:Number = videoPlayer.videoBytesLoaded; problem code

    var byteTotal:Number = videoPlayer.videoBytesTotal;  problem code

    var percent: Number = Math.floor (byteLoaded/byteTotal) * 100;

        }

    private function loadPlayer (): void {}

    videoPlayer = new Player();

    videoPlayer.createPlayer ();

    }

    }

    Player.As

    public function createPlayer (): void {}

    _loader = new Loader();

    _loader.contentLoaderInfo.addEventListener (Event.INIT, onLoaderInit);

    _loader.load (new URLRequest (playerType));

    }

    public function get videoBytesLoaded (): number {}

    return _Player.getVideoBytesLoaded ();  method in the api to YouTube

    }

    public function get videoBytesTotal (): number {}

    return _Player.getVideoBytesTotal;    method in the api to YouTube

    }

    private void onLoaderInit(event:Event):void {}

    _Player = _loader.content;

    show only the part of the codes...

    }

    I appreciate all the help... Thank you!!!

    Hi Jerry,

    I'm not sure of what currently holds Player.as as it is a part of all of the code.

    Checking out for a progress in the Player.as event and track event in main.as.

    Now add the loadProgress() method to the addEventListener method to progress in main.as

    Hope this helps

    Best regards

    Etienne Das

    http://deepanjandas.WordPress.com/

  • I get a "Application JavaScript - reference error: XPCSafeJSObjectWrapper is not defined ' error every time I try to open a new tab.

    As the title suggests, whenever I open a new empty tab on Firefox 4 Beta, I get an error that says "Application JavaScript - reference error: XPCSafeJSObjectWrapper is not defined" this never happened to me before moving on to a new version of the beta of Firefox some time ago... is it possible to fix this?

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the Add-ons is the cause of the problem (switch to the DEFAULT theme: Tools > Modules > themes).

    • Makes no changes on the start safe mode window.

    See:

  • Problem running windows 10 to date for windows 7 Home premium 64-bit reference error code 08C 1800103 - 089002

    Problem running windows 10 to date for windows 7 Home premium 64-bit reference error code 08C 1800103 - 089002

    Could not update windows 7 Home premium service pack 1 for windows 10.

    I tried windows update. all updates are installed except win 10 update that comes up with unexpected error

    Please be aware, even if you do not get the Windows 10 app, you can always download Windows 10 as one. ISO file, create a bootable copy and update your system.

    See the instructions: How to download official Windows 10 ISO files

    Task of pre-required

    When you make significant changes to your computer for example updated operating system, you must always back up. See the links to resources on the backup by clicking the link for each version of Windows you are using: Windows XP, Windows Vista, Windows 7, Windows 8/8.1

  • Cf11 Planner get NULL pointer error in CF administrator.

    Cf11 Planner get NULL pointer error in CF administrator.

    This problem appeared in my environment of production immediately after a restart of services Cold Fusion to recover a JVM OutOfMemoryError.   We have identified what caused the error memory allows and have implemented changes to the code to avoid this problem in the future but now the Scheduler is not accessible through CF Admin. I think a file got corrupted in the Planner for the OutOfMemory event. I have redundant application servers so I just moved all my scheduled tasks to another server until I can sort this out. Otherwise, the server works fine. I did an archive settings server to return a month or two ago, I wonder if I import this archive through packaging and deployment if he could fix the corrupted file. I also read a few post on the replacement of the \cfusioninstance\lib\neo-cron.xml to solve the problem. I wonder if anyone else has experienced something like this?

    CF11AdminSchedulerError.jpg

    Yes, it will work. You must restart the Application of CF Service after replacing the file.

    Kind regards

    Anit Kumar

  • Exprt to EPub and receive the Null object Error Message

    I tried to use the application InDesign CS4 export to the digital edition. Unfortunately, the Null object error shortly after his execution. No idea why this is happening. There are very little information associated with InDesign and an error of this type. This should be easy. I don't know if it's a problem of plugin or something else. Help!

    Thank you. I downloaded the CC version to see what the changes to the form. I like the fact that there is now only one choice in the menu of and then provide a variety of file formats in the menu dropdown. I tried the ePub and while it worked, I was disappointed by the formatting which is a complaint common shadowing by many users. A PDF file is identical to the document being created, the EPub is different.

    I'm going back to look at the formatting of the "objects" to see why there is so much difference to the final product. It would be great if you could get a preview screen to see what (if any) changes should be made to make your spreads identical to the finished product.

    Also, thank you for your suggestion of Lynda.com. It is a very useful online resource.

  • Reference error 1069?

    I am trying to connect buttons on a homepage for individual pages, although it does not work, whenever I have change the pages leaf through permanently in a cycle. Help!

    Coding:

    1homeb.addEventListener (MouseEvent.CLICK, gotoAndStop [1, 'Stage 4']);

    mhomeb.addEventListener (MouseEvent.CLICK, gotoAndStop [1, "Stage 5"]);

    dhomeb.addEventListener (MouseEvent.CLICK, gotoAndStop [1, "Scene 3"]);

    abouthomeb.addEventListener (MouseEvent.CLICK, gotoAndStop [1, "Scène 2"]);

    Reference error is the error: #1069: Scene 4 property not found on the number and there is no default value

    to homepage_fla::MainTimeline/frame1)

    Any help will be appreciated...

    You cannot specify how event listeners and your gotoAndPlay/stop are written incorrectly as well (without brackets).  Also, you should not name the instances from numeric characters.  You're better off avoiding trying to shortcut the code.  For each button your should have code like this...

    homeb.addEventListener (MouseEvent.CLICK, homebClicked);

    function homebClicked(evt:MouseEvent):void {}

    Stop (1, "scene 4");

    }

  • Reference error: dlgMain is not defined

    Bonjur,

    I try to make a batch of the script "exporter layers in files" but each time I got the following error that appears:

    "Reference error: dlgMain is not defined ' and my file are not separated...

    How do I do?

    Thanks to ava, this pour your help...

    First of all, here's a reference quick translation into English Error: dlgMain is not defined.

    Hello

    "I'm doing a batch with the script" export layers to files ", but every time, I get the following error:" error: dlgMain undefined "and my files are not divided into layers.

    How should I proceed?

    Thanks in advance for your help.

    ---

    What version of Photoshop are you running? I would first try to run the update.

    What version of Photoshop as you? I would first try to make updates.

  • #1069 reference error

    I have a reference error on my flash project. Its a project drag / move

    with muscles. I'm trying to make the code in a way that my dynamic text

    change when the muscle is placed above its target, and when it is out of his target. Dynamic text works when the object is out of his target, but it does not work when the object is on the target. This is the error that comes up when I go to test the movie and place the object on the correct target:

    ReferenceError: Error #1069: property not found dropTarget on flash.display.Stage and there is no default value.
    to MuscleManwithnewactionscript_fla::MainTimeline.

    Actionscript error 1069.JPG

    Help, please!

    Thank you

    A student

    you use 'dropTarget' in your actionscript code, and there is no object when your code runs.

    Click on file/publish/flash settings and tick 'debugging permitted' to see the line number with the offending code.

  • setAreaOfInterest null object reference error

    Don't know what is happening with my application, works fine on the desktop.  I sent in my Playbook and now get errors.  I'm under what OS Version 1.0.8.6067 looks like something with the flash/Flex QNX conversion.  Does anyone have any ideas (or wrapper work)?

    Stacktrace shows

    TypeError: Error #1009: cannot access a property or method of a null object reference.
    at qnx.stagetext.ui.text::EditableText/setAreaOfInterest() [/ home/builder/hudson/workspace/Trunk-SWF_StageText/src/stagetext/src/qnx/stagetext/ui/text/EditableText.as:756]
    at qnx.stagetext.ui.text::EditableText/insertText() [/ home/builder/hudson/workspace/Trunk-SWF_StageText/src/stagetext/src/qnx/stagetext/ui/text/EditableText.as:972]
    to qnx.stagetext.ui.text::EditableText/set text() [/ home/builder/hudson/workspace/Trunk-SWF_StageText/src/stagetext/src/qnx/stagetext/ui/text/EditableText.as:300]
    to flash.text:tageText/set text()
    to StageTextPool$ /acquireStageText () [E:\dev\4.y\frameworks\projects\mobilecomponents\src\spark\components\supportClasses\StyleableStageText.as:3113]
    to spark.components.supportClasses:tyleableStageText /http://www.adobe.com/2006/flex/mx/internal:getStageText () [E:\dev\4.y\frameworks\projects\mobilecomponents\src\spark\components\supportClasses\StyleableStageText.as:2415]
    to spark.components.supportClasses:tyleableStageText() [E:\dev\4.y\frameworks\projects\mobilecomponents\src\spark\components\supportClasses\StyleableStageText.as:403]
    to spark.skins.mobile.supportClasses:tageTextSkinBase / createChildren() () [E:\dev\4.y\frameworks\projects\mobiletheme\src\spark\skins\mobile\supportClasses\StageTextSkinBase.as:185]
    at mx.core::UIComponent/initialize() [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7634]
    to mx.core::UIComponent /() http://www.adobe.com/2006/flex/mx/internal:childAdded [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7495]
    at mx.core::UIComponent/addChild() [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7176]
    to spark.components.supportClasses:kinnableComponent / attachSkin () [E:\dev\4.y\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:692]
    to spark.components.supportClasses:kinnableComponent / validateSkinChange () [E:\dev\4.y\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:443]
    to spark.components.supportClasses:kinnableComponent / createChildren() () [E:\dev\4.y\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:406]
    at mx.core::UIComponent/initialize() [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7634]
    to mx.core::UIComponent /() http://www.adobe.com/2006/flex/mx/internal:childAdded [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7495]
    at mx.core::UIComponent/addChildAt() [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7199]
    at::Group/addDisplayObjectToDisplayList() [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:2037] spark.components
    to spark.components::Group /() http://www.adobe.com/2006/flex/mx/internal:elementAdded [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1628]
    at::Group/setMXMLContent() [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:633] spark.components
    at::Group/createChildren() [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:855] spark.components
    at mx.core::UIComponent/initialize() [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7634]
    to mx.core::UIComponent /() http://www.adobe.com/2006/flex/mx/internal:childAdded [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7495]
    at mx.core::UIComponent/addChildAt() [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7199]
    at::Group/addDisplayObjectToDisplayList() [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:2037] spark.components
    to spark.components::Group /() http://www.adobe.com/2006/flex/mx/internal:elementAdded [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1628]
    at::Group/setMXMLContent() [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:633] spark.components
    to spark.components::Group / set mxmlContent() [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:573]
    to spark.components:kinnableContainer/set mxmlContent() [E:\dev\4.y\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:657]
    to spark.components:kinnableContainer / createDeferredContent () [E:\dev\4.y\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:1050]
    to spark.components:kinnableContainer / createContentIfNeeded () [E:\dev\4.y\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:1078]
    to spark.components:kinnableContainer / createChildren() () [E:\dev\4.y\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:885]
    at mx.core::UIComponent/initialize() [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7634]
    at::View/initialize() [E:\dev\4.y\frameworks\projects\mobilecomponents\src\spark\components\View.as:999] spark.components
    at com.qapable.view::FridgeContentForm/initialize()
    to mx.core::UIComponent /() http://www.adobe.com/2006/flex/mx/internal:childAdded [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7495]
    at mx.core::UIComponent/addChildAt() [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7199]
    at::Group/addDisplayObjectToDisplayList() [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:2037] spark.components
    to spark.components::Group /() http://www.adobe.com/2006/flex/mx/internal:elementAdded [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1628]
    at::Group/addElementAt() [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1387] spark.components
    at::Group/addElement() [E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1345] spark.components
    to spark.components:kinnableContainer / addElement () [E:\dev\4.y\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:761]
    at::ViewNavigator/createViewInstance() [E:\dev\4.y\frameworks\projects\mobilecomponents\src\spark\components\ViewNavigator.as:2018] spark.components
    at::ViewNavigator/commitNavigatorAction() [E:\dev\4.y\frameworks\projects\mobilecomponents\src\spark\components\ViewNavigator.as:1932] spark.components
    at::ViewNavigator/commitProperties() [E:\dev\4.y\frameworks\projects\mobilecomponents\src\spark\components\ViewNavigator.as:1301] spark.components
    at mx.core::UIComponent/validateProperties() [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:8219]
    at mx.managers::LayoutManager/validateProperties() [E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:597]
    at mx.managers::LayoutManager/doPhasedInstantiation() [E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:813]
    at mx.managers::LayoutManager/doPhasedInstantiationCallback() [E:\dev\4.y\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180]

    Found the solution (via the devgirl.org blog comments).  It turns out that this is a known problem in Flash Builder 4.6 with the TextInput skin.  Quick and simple solution is to add

    skinClass = "spark.skins.mobile.TextInputSkin"

    for the TextInput tag and everything works again (I heard him talk about a problem with StageText and as you can see, which appears in the stack trace I became).

    Also became strangeness when exporting for Android (entries endangered and appear outside the textinput).  I hope this will fix this problem too.

  • Error #1009: object null reference

    Hello

    Im trying to complete a small project im working on and that's the only bit that I struggle with. I have an image that follows the mouse and reveals a hidden below image. When the user clicks on the screen, he plays the rest of the film.

    The error message is: TypeError: Error #1009: cannot access a property or method of a null object reference.
    at newmovie_fla::MainTimeline/moveMask()

    The code I used is:


    Stop()

    Curtains.Mask = light;
    light.cacheAsBitmap = true;
    curtains.cacheAsBitmap = true;

    light.addEventListener (Event.ENTER_FRAME, moveMask);

    function moveMask(e:Event):void

    {
    Light.y = mouseY;
    Light.x = mouseX;

    }
    curtains.addEventListener (MouseEvent.CLICK, buttonClick);
    function buttonClick(event:MouseEvent):void {}
    gotoAndPlay (3);
    }

    I checked the code and the line that is the origin of the dispute is:


    light.addEventListener (Event.ENTER_FRAME, moveMask);

    Does anyone have any ideas on how I can fix this?

    I restored some of what you based on what I could imagine him, and I guess that the problem arises when you click on the curtains.  If this is the case, you need to remove the event listener in the curtains click event handler...

    light.removeEventListener (Event.ENTER_FRAME, moveMask);

  • Throw the list "cannot access a property or method of an object. null reference" during the scrolling of the white spaces

    Follow these steps:

       import flash.display.Sprite;
    
        import qnx.fuse.ui.listClasses.List;
        import qnx.ui.data.DataProvider;
    
        [SWF(height="1024", width="600", frameRate="30", BackgroundColor="#000000")]
        public class test3 extends Sprite
        {
            public function test3()
            {
                var l:List = new List();
                l.dataProvider = new DataProvider([{label:1},{label:2}]);
                l.setPosition(200,200);
                l.width = 200;
                l.height = 200;
                addChild(l);
            }
        }
    

    And run the application.

    Point the finger just below the last line of the list, and then drag upward or downward.

    You get this:

    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at qnx.fuse.ui.listClasses::List/resetCellState()[E:\hudson\workspace\GR2_0_0_AIR_SDK_API\src\qnxui\src\qnx\fuse\ui\listClasses\List.as:2532]
        at qnx.fuse.ui.listClasses::List/deselectCellDown()[E:\hudson\workspace\GR2_0_0_AIR_SDK_API\src\qnxui\src\qnx\fuse\ui\listClasses\List.as:2337]
        at qnx.fuse.ui.listClasses::List/scrollMouseMove()[E:\hudson\workspace\GR2_0_0_AIR_SDK_API\src\qnxui\src\qnx\fuse\ui\listClasses\List.as:2349]
    

    How I not imprison it? Is this a bug of the qnx.fuse.up.listClasses.List component?

    After typing this post, I went back to the SDK download page and noticed there is a new SDK available (as dated February 3, 2012) 2.0.0. I used the previous version dated SDK Date January 16, 2012.

    So I advanced and upgraded to the latest version of the SDK, and this error no longer occurs.

    It must have been a bug.

    So I solved (kind of) my problem... Kudos to me... ha!

Maybe you are looking for