<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Flex Mobile Help - navigator.pushView from PopUp in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-mobile-help-navigator-pushview-from-popup/m-p/304277#M7219</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;try this.navigator.pushView(PersonalForm);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Apr 2014 11:11:37 GMT</pubDate>
    <dc:creator>AaronNash1</dc:creator>
    <dc:date>2014-04-03T11:11:37Z</dc:date>
    <item>
      <title>Flex Mobile Help - navigator.pushView from PopUp</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-mobile-help-navigator-pushview-from-popup/m-p/304276#M7218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on a flex mobile app with popup box. Insisde the popup I have button and I am trying to click the button and push/open a specific view. I am using this code it runs without errors but as I click the button I get the infamous error 1009 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TypeError: Error #1009: Cannot access a property or method of a null object reference. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
protected function button1_clickHandler(event:MouseEvent):void
&amp;nbsp;&amp;nbsp; {&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; (owner as spark.components.View).navigator.pushView(PersonalForm);

&amp;nbsp;&amp;nbsp; }
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anybody knows how to push a view from titleWindow popup window? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks All&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 22:52:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-mobile-help-navigator-pushview-from-popup/m-p/304276#M7218</guid>
      <dc:creator>KomanDiabate</dc:creator>
      <dc:date>2014-04-02T22:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Flex Mobile Help - navigator.pushView from PopUp</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-mobile-help-navigator-pushview-from-popup/m-p/304277#M7219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;try this.navigator.pushView(PersonalForm);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 11:11:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-mobile-help-navigator-pushview-from-popup/m-p/304277#M7219</guid>
      <dc:creator>AaronNash1</dc:creator>
      <dc:date>2014-04-03T11:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Flex Mobile Help - navigator.pushView from PopUp</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-mobile-help-navigator-pushview-from-popup/m-p/304278#M7220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Aaron, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;that didn't work, I got an error 1119: Access of possible undefined property of navigator through a reference with static ........&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The challenge is that the popup doesn't have direct access the the navigator. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;below is the only way I was able to access the navigator but it's giving me error 1009 runtime error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG style="font-style: italic;"&gt;(owner as spark.components.View).navigator.pushView(PersonalForm);&lt;/STRONG&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 14:27:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-mobile-help-navigator-pushview-from-popup/m-p/304278#M7220</guid>
      <dc:creator>KomanDiabate</dc:creator>
      <dc:date>2014-04-03T14:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Flex Mobile Help - navigator.pushView from PopUp</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-mobile-help-navigator-pushview-from-popup/m-p/304279#M7221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Add an eventlistener into your main application that listens for the close event on the titlewindow, that way you can add your button1_clickHandler code into the main application and push the view from there.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 15:54:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-mobile-help-navigator-pushview-from-popup/m-p/304279#M7221</guid>
      <dc:creator>AaronNash1</dc:creator>
      <dc:date>2014-04-03T15:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Flex Mobile Help - navigator.pushView from PopUp</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-mobile-help-navigator-pushview-from-popup/m-p/304280#M7222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, I will try that. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically close the popup and pushView. That maybe the ticket. Will keep you posted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 16:05:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-mobile-help-navigator-pushview-from-popup/m-p/304280#M7222</guid>
      <dc:creator>KomanDiabate</dc:creator>
      <dc:date>2014-04-03T16:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Flex Mobile Help - navigator.pushView from PopUp</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-mobile-help-navigator-pushview-from-popup/m-p/304281#M7223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;this works in the main application&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public var win : Window = new Window()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;private function launchPopUp():void &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PopUpManager.addPopUp(win,this,true);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PopUpManager.centerPopUp(win);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; win.addEventListener(CloseEvent.CLOSE, pushviewTest);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;private function pushviewTest(event:CloseEvent):void&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; navigator.pushView(test);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; win.removeEventListener(CloseEvent.CLOSE, pushviewTest);&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this is for the titlewindow&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;lt;s:TitleWindow xmlns:fx="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://ns.adobe.com/mxml/2009" rel="nofollow" target="_blank"&gt;http://ns.adobe.com/mxml/2009&lt;/A&gt;&lt;SPAN&gt;" &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:s="library://ns.adobe.com/flex/spark" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xmlns:mx="library://ns.adobe.com/flex/mx" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; width="340" close="closeWindow()"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; height="130"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;fx:Script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;![CDATA[&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; import mx.core.IFlexDisplayObject;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; import mx.managers.PopUpManager;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; private function closeWindow():void &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PopUpManager.removePopUp(this as IFlexDisplayObject);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ]]&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/fx:Script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;s:Button label="Close" click="dispatchEvent(new CloseEvent(CloseEvent.CLOSE))"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/s:TitleWindow&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 16:43:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-mobile-help-navigator-pushview-from-popup/m-p/304281#M7223</guid>
      <dc:creator>AaronNash1</dc:creator>
      <dc:date>2014-04-03T16:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Flex Mobile Help - navigator.pushView from PopUp</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-mobile-help-navigator-pushview-from-popup/m-p/304282#M7224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Aaron, your help is greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Your code sample help quite a bit and it works. But now I have another small complication:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The CloseEvent and the listener on the main view works wonderfully, however there maybe case when users just want to view the data on the popup without pushing the detailView (PersonalForm), meaning just x-ing out. I am looking into this but just wanted to let you know that with your help, I am on the right track here. if you think of a suggestions for me to differentiate these two tasks: closing&amp;nbsp; the popup versus closing and pushing the view, please let me know.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a million, I am getting closer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]32783[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 17:16:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-mobile-help-navigator-pushview-from-popup/m-p/304282#M7224</guid>
      <dc:creator>KomanDiabate</dc:creator>
      <dc:date>2014-04-03T17:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Flex Mobile Help - navigator.pushView from PopUp</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-mobile-help-navigator-pushview-from-popup/m-p/304283#M7225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;create a second button and instead of dispatching a close event just call the function directly&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;s:Button label="Change View" click="dispatchEvent(new CloseEvent(CloseEvent.CLOSE))"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;s:Button label="Close Window" click="closeWindow()"/&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 18:33:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-mobile-help-navigator-pushview-from-popup/m-p/304283#M7225</guid>
      <dc:creator>AaronNash1</dc:creator>
      <dc:date>2014-04-03T18:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Flex Mobile Help - navigator.pushView from PopUp</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-mobile-help-navigator-pushview-from-popup/m-p/304284#M7226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, I see what you are saying, and I think it will work. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I wanted X button on the popup window to only perform: PopUpManager.removePopUp(this);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But it looks like the X button when clicked is automatically is dispatching the CloseEvent which is turn is changing the view. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess I can hide the close button on the titleWindon and use two additonal custom buttons which will give me more flexibility in term on of doing exactly what I need.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a bunch..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 19:34:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-mobile-help-navigator-pushview-from-popup/m-p/304284#M7226</guid>
      <dc:creator>KomanDiabate</dc:creator>
      <dc:date>2014-04-03T19:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Flex Mobile Help - navigator.pushView from PopUp</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-mobile-help-navigator-pushview-from-popup/m-p/304285#M7227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I turn off the x button on the pop-ups, when using a mobile device the button can be a little small. That way I can create mobile friendly buttons that the user can interact with. To get rid of the X button I created a new mxml skin for a spark titlewindow and just commented out the code which was on line 257 &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!--s:Button id="closeButton" skinClass="spark.skins.spark.TitleWindowCloseButtonSkin"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; width="15" height="15" right="7" top="7" /--&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 19:41:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-mobile-help-navigator-pushview-from-popup/m-p/304285#M7227</guid>
      <dc:creator>AaronNash1</dc:creator>
      <dc:date>2014-04-03T19:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Flex Mobile Help - navigator.pushView from PopUp</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-mobile-help-navigator-pushview-from-popup/m-p/304286#M7228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Makes perfect sense, I was having problem clicking the X button on the mobile device anyway. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the confirmation.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2014 19:44:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/flex-mobile-help-navigator-pushview-from-popup/m-p/304286#M7228</guid>
      <dc:creator>KomanDiabate</dc:creator>
      <dc:date>2014-04-03T19:44:37Z</dc:date>
    </item>
  </channel>
</rss>

