Adobe FLEX State Handling Using FB 3.

Hi to all.
I am new to flex , having a problem with states working .
i am able to go to sub state but unable to go to base state.
Kindly view code, and suggest how to set <Base State> as current state.
Thanks.
<mx:states>
<!--<mx:SetEventHandler target="{btn2}" name="click" handler="currentState='';"-->
<mx:State name="AddNew">
<mx:SetProperty    target="{btn1}" name="label" value="Ok"/>
<mx:SetProperty target="{btn2}" name="label" value="Cancel"/>
<mx:SetProperty target="{panel1}" name="title" value="Welcome New User."/>
<mx:RemoveChild target="{lblpasshlp}"/>
<mx:RemoveChild target="{imgbox}"/>
<mx:SetEventHandler
target="{btn1}"
name="click"  handler="AddNew()"/>
<mx:SetEventHandler target="{btn2}" name="click" handler="currentState='';"/>
<mx:AddChild position="lastChild" target="{panel1}"/>
<mx:SetProperty name="width" value="315"/>
<mx:SetProperty name="height" value="215"/>
<mx:SetProperty target="{panel1}" name="width" value="295"/>
<mx:SetProperty target="{panel1}" name="height" value="195"/>
<mx:SetProperty target="{lblmessage}" name="x" value="165"/>
</mx:State>
<mx:State name="LoginFailed">
<mx:SetProperty name="height" value="215"/>
<mx:RemoveChild target="{btn2}"/>
<mx:SetProperty target="{lblUN}"  name="text" value="Your Question"/>
<mx:SetProperty target="{lblpass}"  name="text" value="Your Answer"/>
<mx:SetProperty target="{btn1}" name="label" value="Check"/>
<mx:SetProperty target="{lblmessage}"  name="text" value="Authentication"/>
<mx:SetProperty target="{lblmessage}"  name="x" value="174"/>
<mx:RemoveChild target="{lblpasshlp}"/>
<mx:RemoveChild target="{imgbox}"/>
<mx:SetProperty name="width" value="315"/>
<mx:SetEventHandler target="{btn1}" name="click" handler="currentState='ResetPassword'"/>
<mx:SetProperty target="{panel1}" name="title" value="Login Failed"/>
</mx:State>
<mx:State name="ResetPassword" basedOn="LoginFailed">
<mx:SetProperty target="{lblUN}" name="text" value="New Password"/>
<mx:RemoveChild target="{lblpass}"/>
<mx:RemoveChild target="{txtPassword}"/>
<mx:SetProperty target="{btn1}" name="label" value="Update"/>
<mx:SetProperty target="{lblmessage}" name="text" value="Reset Password"/>
<mx:SetProperty name="width" value="315"/>
<mx:SetProperty name="height" value="215"/>
<mx:SetStyle name="horizontalAlign" value="center"/>
<mx:SetStyle name="verticalAlign" value="middle"/>
<mx:SetProperty target="{panel1}" name="title" value="Change Password"/>
<mx:SetProperty target="{panel1}" name="width" value="295"/>
<mx:AddChild relativeTo="{panel1}" position="before" target="{panel1}"/>
</mx:State>
     </mx:states>

hi,
currentState='""    should return you to the base state;
David. 

Similar Messages

  • Integrate Adobe Flex and JBOSS using BlazeDS

    I using this link http://simplyolaf.blogspot.com/2009/07/integrate-adobe-flex-and-jboss-using.html to create Flex Project for Blaze DS. I added the following arguments to the flex compiler: -services "F:/java_WS/iASCUE/WebContent/WEB-INF/flex/services-config.xml" . Can I define relate path? when I put my project on other server it don't work

    Does anybody something know?

  • Adobe Flex Mobile + AIR - Custom iOS Build Setting

    I am building some Adobe Flex Mobile application using Flex 4.6.0 + AIR 3.5 only for iOS
    This app involves some iOS Native Extension created also by me.
    The thing is that this ANE uses some third party framework (GD.framework from Good Dynamics Technology). That framework requires GD FIPS linker to be used, and for that, i need to set some custom build settings in a .xcconfig file, with this content:
    FIPS_PACKAGE=$(CURRENT_ARCH).sdk LDPLUSPLUS=/Good Technology/Good.platform/FIPS_module/$FIPS_PACKAGE/bin/gd_fipsld LD=/Good Technology/Good.platform/FIPS_module/$FIPS_PACKAGE/bin/gd_fipsld
    The ANE compiles OK, but then, I add the ANE to the app, I compile the app, but when I launch the app, it crashes because the FIPS linker was not properly got set on my Flex Mobile project.
    So, my question is:
    Is there a way to set the above configuration on my project like somebody would do in a Xcode project?
    Regards!

    I see your key as a reserved key for iOS. I haven't tested it myself but here's the keys you cannot change. Sure enough, MinimumOSVersion is reserved.

  • I have built a android application using adobe flex, and i have exported it with native air. The application is working fine on samsung phones whereas it is getting crashed on Moto Phones, which runs on android kitkat, is there any compatibility issue ?,

    I have built a android application using adobe flex, and i have exported it with native air. The application is working fine on samsung phones whereas it is getting crashed on Moto Phones, which runs on android kitkat, is there any compatibility issue ?, I have built a android application using adobe flex, and i have exported it with native air. The application is working fine on samsung phones whereas it is getting crashed on Moto Phones, which runs on android kitkat, is there any compatibility issue ?, I have built a android application using adobe flex, and i have exported it with native air. The application is working fine on samsung phones whereas it is getting crashed on Moto Phones, which runs on android kitkat, is there any compatibility issue ?

    Thanks, Flex harUI, for the direction in regards to isolating build changes. That aside (still working on it), can you offer any direction in regards to my original question on SDK and AIR compatibility? I'm specifically looking for a version compatibility mapping or anything that definitively states, "Flex SDK x.y.z works with the following versions of AIR". This information is crucial for us in order to more specifically plan our own roadmap built upon these two frameworks as we consider both existing installations of our software and future distributions.

  • How to save the data to sap abap using Adobe Flex

    Hi Everybody......
    I am new to Adobe flex with sap abap.
          How to save the data in sap abap using Adobe Flex coding is Action Script and using RFC web service.
    Please give me any suggisions on that.
    Thank you
    Venkatesh V

    Hi Venkatesh,
    Try with folowing coding...
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
         initialize="initApp()">
         <mx:Label x="10" y="23" text="Airline" width="90" id="lblAirline"/>
         <mx:TextInput x="108" y="21" id="txtAirline"/>
         <mx:Button x="10" y="49" label="Get Data" id="btnGetData" enabled="false" click="getData()"/>
         <mx:DataGrid x="10" y="97" id="dgFlightData" dataProvider="">
         </mx:DataGrid>
           <mx:Script>
              <![CDATA[
                   import mx.collections.ArrayCollection;
                   import mx.rpc.AbstractOperation;
                   import mx.rpc.events.FaultEvent;
                   import mx.rpc.soap.LoadEvent;
                   import mx.rpc.events.ResultEvent;
                   import mx.rpc.soap.WebService;
                   [Bindable] public var flightData:ArrayCollection;
        private var flightWS:WebService;
         private function initApp():void{
              flightWS = new WebService();
              flightWS.wsdl = "http://uscib20.wdf.sap.corp:50021/sap/bc/soap/wsdl11?services=ZGTEST&sap-client=000";
            flightWS.addEventListener(FaultEvent.FAULT,onWSError);
              flightWS.addEventListener(LoadEvent.LOAD,onWSDLLoaded);
             flightWS.addEventListener(ResultEvent.RESULT,onFlightWSGotResult);
              flightWS.loadWSDL();
    private function getData():void{
              var operation:AbstractOperation = flightWS.getOperation("ZGTEST");
              var input:Object = new Object();
              input.Airline = txtAirline.text.toUpperCase();
              operation.arguments = input;
              operation.send();
         private function onWSError  (event:FaultEvent):void{
         private function onWSDLLoaded(event:LoadEvent):void{
              btnGetData.enabled = true;
         private function onFlightWSGotResult(event:ResultEvent):void{
              flightData = event.result.SFLIGHT;
              ]]>
         </mx:Script>
    </mx:Application>
    Regards,
    Vinoth

  • SAP Netweaver Visual Composer using Adobe Flex

    Hi,
    where to get Adobe Flex for SAP Netweaver Visual Composer.
    Instead of using Adobe SVG Viewer we need to use Adobe flex so where can i find
    that one please help me.
    regards,
    jasmine

    Hi Jasmine,
    You can use VC only if you have SVG viewer installed, that is one of the prerequisite. SVG Viewer is used for design. When you deploy your model you have an option to view it either in HTML (Web Dynpro) or Flex (Adobe Flex).
    Hope it helps.
    Regards,
    Dharmi

  • I downloaded adobe 11. and it still will not read my bank statements,it used to read them fine,whats

    I have downloaded adobe 11.0 and it still will not open and read my bank statements,it used to work fine until I downloaded the newer version,whats wrong?

    There is no 11.5 updates avaialble for Adobe Reader. Also deleting the Adobe Reader 11 is not right way to uninstall. Could you please do a clean uninstall of Adobe Reader 11 or what ever version you have from Control Panel > Programs > Uninstall Program and then re-install the latest Adobe Reader from http://get.adobe.com/reader/otherversions/

  • Installing Plug In for Adobe Flex and Using it in developing Application

    Hi all,
    I'm using NWDS CE 7.1 EhP1. I want to develop application using Adobe Flex for Web Dynpro for Java.
    I have downloaded and installed plug named :- ActionScript WSDL Proxy Generator Plug-in 1.0.32
    But I am not able to see any change in my NWDS.
    I dont know whether what I did is correct or not ! Can anybody pls explain me how to start developing UI in Adobe Flex for WDJ?
    I saw one wonderful blog Step by Step Guide for creating Flash islands using Webdynpro Java by Ayyapparaj KV.
    Pls help.
    Thanks and regards,
    Amey Mogare

    Hi Fazal,
    Thank u for this valuable and timely response !
    This is the exact PDF I'm following to install plug-in:-
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20536f87-b5a1-2a10-06ad-c15369468e0e
    I am stuck at step 1.3 (page-4). I am able to see ActionScript proxy generator plug-in in my NWDS's plug-in list. But I am not able to get line :-
    locate the ActionScript WSDL Proxy
    Generator Plug-in there (plug-in id: com.sap.flex.ws.proxygen.ASProxyGeneratorPlugin).
    I am not able to generate anything there.. Also I went ahead with Step-2 and I am able to see project "Runtime" in my Resource perspective.. What is to be done next?
    Thanks and regards,
    Amey Mogare
    Edited by: Amey Mogare on Apr 20, 2009 6:40 AM

  • Dotted navigation using Adobe Flex 3 or 4

    Hi,
    I have a requirement of showing pie chart with different data using 'dotted navigation' Attached is the screenshot of which I need to implement similarly using Flex
    If use clicks left or right arrows, I need to show pie chart with different data accordingly.
    Do we have any component like this in Adobe Flex?
    Anyone has any suggestion how can we implement it using Adobe Flex 3 or 4?
    Many Thanks
    Pavan

    It figures, that as soon as i posed this i found the answer to my questions.
    FWIW, here is the answer.
    http://labs.adobe.com/technologies/flashbuilder4/?tabID=details#FAQ
    Please feel free to corect me if i am wrong, but the way i read it and interpret it is that Flash Builder 4 will replace Flex Builder.

  • Need your suggestions for developing a Forum Site using Adobe Flex

    Hi ,
    I want to develop a small Forum Site where people can post questions and reply to questions .
    I want to develop the whole thing using Adobe Flex , Is there any plugin avialable for this .
    Means i mean to ask , if i go for normal J2EE there is a JForum avialable as far as i know .
    Please share your ideas .

    I meant "Don't use flex" unless you have some superb new design for a forum. I suspect that if you already had such a design, you wouldn't need to ask the question. Flex for Flex sake isn't good.
    There are already great html forum solutions out there.
    Basically, there's no point in duplicating in Flex what is already done in HTML, unless the Flex version offers a significant improvement to the user experience in some way.
    I am not aware of any Flex forum implementations and there is probably a good reason for that.
    Maybe someone else will know of one.

  • Pdf document browsing using adobe flex

    how can I have a panel that showing pdf doument using adobe flex 3

    Flash player do not have the necessary libraries to display PDF. But AIR runtime does ( http://livedocs.adobe.com/flex/3/html/help.html?content=PDF_1.html ).
    Not a good solution, but somehow you need to convert the PDF to an SWF to be able to load it into a Flex panel.
    Iframe trick ( http://code.google.com/p/flex-iframe/ ) can also be applied here.

  • Screen sharing using adobe flex builder 3

    i want to develop screen sharing application using adobe flex builder 3.
    please give me an idea to develop the application .
    please give site reference or steps to implement.
    pleaseeeeeeeeeeee friends.

    Nobody is giving an idea. Even though i achieved it

  • What's the business case for using adobe forms for handling print forms

    Hi
    We are just starting our SAP project and are looking at the possibility to use Adobe forms for generating and printing our forms, like purchase orders, invoices etc.
    My Question is:
    1. Is this possible / adviseable ?
    2. if so - what's the business case in using Adobe forms  - <i> We have been looking on the SAP Pricing for adobe interactive form, and in our point of view it's grotesque high</i>
    3. What other options do we have - do we need to settle with SAP Script / Smartforms ?
    Regards
    Morten Nielsen

    Hi Morten,
    1. Is this possible / adviseable ?
        As far I know SAP is going to stop support for SAPScript in coming years (I don't know exact dates). It is pretty much advisable to use Adobe Print Forms.
    2. if so - what's the business case in using Adobe forms - We have been looking on the
    SAP Pricing for adobe interactive form, and in our point of view it's grotesque high
      We can use Adobe Print Forms where ever we can able to use SApscripts/PDF print Forms.
    3. What other options do we have - do we need to settle with SAP Script / Smartforms ?
      It is better to settle with Adobe forms rather than using SAPscript/Smart forms. One of the main reason for this is maintainance is much easier than SAPscript/Smart forms.
    But remember that Java Stack need to be installed in order to use Adobe Forms.
    Please visit the below SDN area on Adobe forms for more details.
    https://www.sdn.sap.com/irj/sdn/interactiveforms
    Thanks
    Ramakrishna
    Message was edited by:
            Ramakrishna Ramisetti

  • I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build.  The same call works fine when running on the device

    I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build. The same call works fine when running on the device (iPhone) using debug build. When running with a release build, the result handler is never called (nor is the fault handler called). Viewing the BlazeDS logs in debug mode, the call is received and send back with data. I've narrowed it down to what seems to be a data size issue.
    I have targeted one specific data call that returns in the String value a string length of 44kb, which fails in the release build (result or fault handler never called), but the result handler is called as expected in debug build. When I do not populate the String value (in server side Java code) on the object (just set it empty string), the result handler is then called, and the object is returned (release build).
    The custom object being returned in the call is a very a simple object, with getters/setters for simple types boolean, int, String, and one org.23c.dom.Document type. This same object type is used on other other RemoteObject calls (different data) and works fine (release and debug builds). I originally was returning as a Document, but, just to make sure this wasn't the problem, changed the value to be returned to a String, just to rule out XML/Dom issues in serialization.
    I don't understand 1) why the release build vs. debug build behavior is different for a RemoteObject call, 2) why the calls work in debug build when sending over a somewhat large (but, not unreasonable) amount of data in a String object, but not in release build.
    I have't tried to find out exactly where the failure point in size is, but, not sure that's even relevant, since 44kb isn't an unreasonable size to expect.
    By turning on the Debug mode in BlazeDS, I can see the object and it's attributes being serialized and everything looks good there. The calls are received and processed appropriately in BlazeDS for both debug and release build testing.
    Anyone have an idea on other things to try to debug/resolve this?
    Platform testing is BlazeDS 4, Flashbuilder 4.7, Websphere 8 server, iPhone (iOS 7.1.2). Tried using multiple Flex SDK's 4.12 to the latest 4.13, with no change in behavior.
    Thanks!

    After a week's worth of debugging, I found the issue.
    The Java type returned from the call was defined as ArrayList.  Changing it to List resolved the problem.
    I'm not sure why ArrayList isn't a valid return type, I've been looking at the Adobe docs, and still can't see why this isn't valid.  And, why it works in Debug mode and not in Release build is even stranger.  Maybe someone can shed some light on the logic here to me.

  • Is Adobe Flex suitable to build a Multimedia Presentation?

    I am looking for some advice on the suitability of using
    Adobe Flex for building a Multimedia presentation system. I have
    watched numerous videos about Flex and even tried some tutorials
    but before I make a decision on Technologies for a project I am
    working on, I wanted to consult the Flex community for some advice.
    I have to take Multimedia Presentation made using PowerPoint
    and build it into a custom made Multimedia Presentation that has
    similar functionality. Would Adobe Flex would be a suitable tool?
    The Presentation must be viewable on the Internet and be deployed
    to the Desktop so combining Flex with Adobe AIR would be needed to
    meet this requirement.
    I guess the general requirements are as follows:-
    The user must be able to navigate forward and backward
    through pages of the presentation.
    The Presentation must be able to display Flash video's. When
    video is played, the video must open in a new window infront of the
    main application. Images and animated GIF'S must have the same
    functionality.
    Based on these requirements, would Flex be suitable?
    Thanks in advance for you help and advice.

    I think Flex would be very suitable for building a multimedia
    presentation system. Once you create your Flex app and generate the
    SWF file, you can post it on the web, or view it on the desltop,
    even without AIR. You could use view states to transition between
    pages, though you would have other options as well. You could
    display Flash videos easily, and I believe you could have the video
    open in a new top window. Same with images and gifs. Flex would be
    a very good choice I believe.

Maybe you are looking for

  • How do I get songs back that I've purchased but my itunes has lost all record of it because I changed laptops?!!

    Hey, can anyone help me?  Some of my albums have songs missing.  I tried to download purchases but it says that all songs have been downloaded!  Help

  • How to get the web of document from the URL

    Hi All, Need small help here, I have SharePoint doc URL as below: http://sharepoint.com/sub1/sub2/sub3/documents/TestFile.docx Here, TestFile existed in document library of Subsite i.e. sub3. If I give above URL as input, I should be able to get "sub

  • Saving the text in text editor changes text line format

    In my program I have an output witha  text editor box where we type in text and save , and if we want to print it it prints it out on a smartform. When I type in a text on the text editor box for example : "This will include a policy and best practic

  • File Info Copyright Status

    When I right-click on a file to acces the File Info, and then select the Description Tab (if it is not already selected), the Copyright Status drop down menu gives me only three choices: Unknown Copyright Public Domain Which slection do I use for Cre

  • Getting Error file not found

    So I have applied a new theme I found on topsharepoint.com on my spd2010 and I made a new site page from the master page I imported on my spd via create from now my problem here is whenever I use another user and try to view the page on the browser t