resetting content and application

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default resetting content and application

    hi there,

    i have a fairly complex application with a multitude of sections and
    sub-sections in it. i'd very much like to be able to reset all the forms and
    tab selections etc. to their starting states when a user logs out and then logs
    back in again. i'd also like to be able to reset sub-sections tab selections
    and form input when a user selects a different section and the returns to the
    section they were in origionally.

    is there an easy way of doing this or am i going to have to setup restting
    functions for every element of my app and then call them all when a user logs
    in or changes sections?

    thanks a mil',
    nikki

    nif Guest

  2. Similar Questions and Discussions

    1. How to use a Sprite or a MoveClip as content of aPanel/Container in MXML application
      I've been writing a MXML application, where i want to control some animation. A animation is being acheived thru creating a custom MovieClip using...
    2. Web content root ?= CF application root?
      Are there any benefits to using a web content root that differs from the CF application root of (on Windows)...
    3. Resetting Scene
      Hey there, http://home.iprimus.com.au/gwallis/first_character.zip this is my file as i have created for a guy to kick a soccer ball. You will...
    4. Client found response content type of 'application/soap'
      My client is an ASP .NET Web Application developed with .NET Framework 1.1 and VS .NET 2003 I used "Add Web Reference" and pointed VS .NET at the...
    5. RegisterHiddenField to Capture Enter Resetting Application
      Hi - I wanted to capture the enter button on a form since I have a datagrid with the first column being a delete button and if someone hits enter...
  3. #2

    Default Re: resetting content and application

    Well easy is a relative term. If you've already built your application it may
    be a bit of rework. Look into using states (mx:States).

    You can creates multiple states and this just move from state to state by
    setting currentState. However as in everything else there is no free lunch
    as you must implement what you want the state to be in the mx:States tag.

    Below is an example of a simple state that sets a form back to login.

    <mx:states>
    <mx:State name="login">
    <mx:SetProperty target="{loginButton}"
    name="label" value="{logonLabel}"/>
    <mx:SetProperty target="{userId}"
    name="enabled" value="true"/>
    <mx:SetProperty target="{password}"
    name="enabled" value="true"/>
    </mx:State>
    </mx:states.

    JKohn99 Guest

  4. #3

    Default Re: resetting content and application

    hi there,

    thanks for the reply. unfortunately i'm quite far into development already and
    won't be able to restructure at this point.
    i guess that means i'll have to write reset functins for everything... oh boy!

    thanks,
    nikki

    nif Guest

  5. #4

    Default Re: resetting content and application

    The simplest way to do this is to use navigateToUrl() to call the url for the applications wrapper. This will reload the appliction completely. It is wht I do.

    Tracy
    ntsiii Guest

  6. #5

    Default Re: resetting content and application

    I was messing around with google sites and wrote up this flex tutorial for an
    application framework. It might fit what you are needing as long as your
    sections are mxml components or actionscript classes.


    [url]http://sites.google.com/site/flex-tutorials/tutorials/tutorial-1--building-an-ap[/url]
    plication-framework

    Bryan Dresselhaus Guest

  7. #6

    Default Re: resetting content and application

    thanks for all the replies. i think i am going to reload... i origionally
    wanted to have a nice smooth transition using effects, but the reload option is
    quick and easy and that's more important right now.

    nif Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139