Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to call mxml application from action script
    primarykey
    data
    text
    <p>I've one main.mxml which has login button which looks like below - </p> <pre><code> &lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="#C4D4EF" layout="absolute"&gt; &lt;mx:HTTPService id="serverCall" method="POST" url="http://localhost:8080/LDAPService/reg" result="on_Result(event)" fault="on_Fault(event)" /&gt; &lt;mx:Script&gt; &lt;![CDATA[ private function on_Result(event:ResultEvent):void { // How to write here } ]]&gt; &lt;/mx:Script&gt; &lt;mx:Panel x="414" y="145" width="355" height="200" layout="absolute" &lt;mx:Button x="142" y="115" label="Login" id="callToServer" click="send_data(event)"/&gt; &lt;/mx:Panel&gt; &lt;/mx:Application&gt; </code></pre> <p>Now I want to call second.mxml file which looks like below - </p> <pre><code> &lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" creationComplete="iFrame.visible=true" viewSourceURL="srcview/index.html"&gt; &lt;mx:HBox width="100%" height="100%"&gt; &lt;mx:Panel title="/ Company Home" width="200" height="100%" &gt; &lt;/mx:Panel&gt; &lt;mx:Panel width="100%" height="100%" title="Ticket Details" paddingTop="1" &gt; &lt;IFrame id="iFrame" source="some service call url" width="100%" height="100%" /&gt; &lt;mx:ControlBar&gt; &lt;mx:CheckBox id="cbVisible" label="IFrame Visible" selected="true" click="iFrame.visible=cbVisible.selected"/&gt; &lt;/mx:ControlBar&gt; &lt;/mx:Panel&gt; &lt;/mx:HBox&gt; &lt;/mx:Application&gt; </code></pre> <p>How can I call second.mxml from main.mxml? Please advice, Thanks for your help!</p>
    singulars
    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.
 

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