problem to genrate swf file.

Posted by nemade-vipin on Stack Overflow See other posts from Stack Overflow or by nemade-vipin
Published on 2010-04-10T10:03:46Z Indexed on 2010/04/10 10:13 UTC
Read the original article Hit count: 386

Filed under:
|
|

hello friend I have created one flex Air application where I have created the one authentication actionscript class. and one mxml file.This complete application using webservice and google map API. but when I am building application it is not genrating the SWF file in bin-debug folder. that is changes not reflecting in our application. my code is:-

Action script class is :-

package src { import adobe.utils.XMLUI; import mx.rpc.events.FaultEvent; import mx.controls.Alert; import generated.webservices.*; import mx.collections.ArrayCollection; public class Authentication { [Bindable] private var childName:ArrayCollection; [Bindable] private var childId:ArrayCollection;
private var photoFeed:ArrayCollection; private var arrayOfchild:Array; private var newEntry:GetSBTSMobileAuthentication;

    public function authentication():void
    {
           // Instantiate a new Entry object.
            user = new SBTSWebService();
            if(user!=null)
            {
            user.addSBTSWebServiceFaultEventListener(handleFaults);
            user.addgetSBTSMobileAuthenticationEventListener(authenticationResult);

            newEntry = new GetSBTSMobileAuthentication(); 
                if(newEntry!=null)
                {
                newEntry.mobile=mobileno.text;
                newEntry.password=password.text;
                user.getSBTSMobileAuthentication(newEntry);
                }
            }

    }   
    public function handleFaults(event:FaultEvent):void
    {
        Alert.show("A fault occured contacting the server. Fault message is: " + event.fault.faultString);
    }
    public function authenticationResult(event:GetSBTSMobileAuthenticationResultEvent):void
    {
        if(event.result != null && event.result._return>0) 
        {

           if(event.result._return > 0)
           {
             var UserId:int = event.result._return;
             loginform.enabled = false;
              //getChildList(UserId);       
              viewstack2.selectedIndex=1;
           }
           else
           {
             Alert.show("Authentication fail");
           }


        }

    }

}

}

mxml file is :-

    import src.Authentication;

    var user:Authentication = new Authentication();
]]>

    <mx:TabNavigator id="viewstack2" selectedIndex="0" creationPolicy="all" 
    width="100%" height="100%"> 
        <mx:Form label="Login Form" id="loginform">
         <mx:FormItem label="Mobile NO:">
            <mx:TextInput id="mobileno"/>
         </mx:FormItem>
        <mx:FormItem label="Password:">
            <mx:TextInput displayAsPassword="true" id="password" />
       </mx:FormItem>
        <mx:FormItem>
            <mx:Button label="Login" click="user.authentication()"/>
       </mx:FormItem>
        </mx:Form>


           <mx:Form label="Child List">
              <mx:Label width="100%" color="blue" 
                   text="Select Child."/>




          </mx:Form>

          <mx:Form label="Child Information">



          </mx:Form>
          <mx:Form label="Bus Location">






         </mx:Form>
          <mx:Form label="Bus path">





         </mx:Form>
    </mx:TabNavigator>

</mx:Panel> 

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about mxml