Note that there are some explanatory texts on larger screens.

plurals
  1. POException of null object reference when click on Text area in popup in Flash Builder 4.6
    primarykey
    data
    text
    <p>Here is my code.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; </code></pre> <p></p> <pre><code>&lt;fx:Script&gt; &lt;![CDATA[ import comps.sampleTextArea; import mx.managers.PopUpManager; protected function button1_clickHandler(event:MouseEvent):void { var pop:sampleTextArea = new sampleTextArea(); PopUpManager.createPopUp(this, sampleTextArea, false); PopUpManager.centerPopUp(pop); } ]]&gt; &lt;/fx:Script&gt; &lt;fx:Declarations&gt; &lt;!-- Place non-visual elements (e.g., services, value objects) here --&gt; &lt;/fx:Declarations&gt; &lt;s:Button click="button1_clickHandler(event)" label="open popup"/&gt; </code></pre> <p></p> <p>and here is code of popup</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; </code></pre> <p></p> <pre><code>&lt;fx:Script&gt; &lt;![CDATA[ import mx.managers.PopUpManager; protected function button1_clickHandler(event:MouseEvent):void { ta.text = ''; PopUpManager.removePopUp(this); } ]]&gt; &lt;/fx:Script&gt; &lt;fx:Declarations&gt; &lt;!-- Place non-visual elements (e.g., services, value objects) here --&gt; &lt;/fx:Declarations&gt; &lt;s:layout&gt; &lt;s:VerticalLayout horizontalAlign="center" verticalAlign="top" /&gt; &lt;/s:layout&gt; &lt;s:TextArea id="ta" width="100%" height="90%"&gt; &lt;/s:TextArea&gt; &lt;s:Button label="Submit" click="button1_clickHandler(event)" /&gt; </code></pre> <p></p> <p>when i click on text area following error through by the application.</p> <pre><code>TypeError: Error #1009: Cannot access a property or method of a null object reference. at spark.components::Scroller/focusInHandler()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Scroller.as:2139] at flash.display::Stage/set focus() at flashx.textLayout.container::ContainerController/http://ns.adobe.com/textLayout/internal/2008::setFocus()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\container\ContainerController.as:2265] at flashx.textLayout.container::ContainerController/mouseDownHandler()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\container\ContainerController.as:2067] at flashx.textLayout.container::TextContainerManager/mouseDownHandler()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\container\TextContainerManager.as:1939] at spark.components.supportClasses::RichEditableTextContainerManager/mouseDownHandler()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\supportClasses\RichEditableTextContainerManager.as:666] at flashx.textLayout.container::ContainerController/http://ns.adobe.com/textLayout/internal/2008::requiredMouseDownHandler()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\container\ContainerController.as:2088] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:13152] at mx.managers::SystemManager/mouseEventHandler()[E:\dev\4.y\frameworks\projects\framework\src\mx\managers\SystemManager.as:2918] </code></pre> <p>How i handle this issue</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload