How do you reinitialize a state everytime?

hey guys... so got a quick question... how do i reinitialize a certain group everytime i change states?
for example...
in my parentApplication i have
    <s:states>
        <s:State name="loginPage"/>
        <s:State name="loginSuccess"/>
        <s:State name="apx32" />
        <s:State name="vista" />
    </s:states>
    <vista:vistaTroubleShoot name="vista" includeIn="vista" />
    <apx32:apx32TroubleShoot name="apx32" includeIn="apx32" />
    <panelSelection:loginSuccess name="panelSelect" includeIn="loginSuccess" />
the vista, apx32 and panelSelection are component made of group.. so basically when if im in the component vista, and i change states to apx32
and then from apx32 i change it back to vista i need everything in vista to have been reset....
i hope im making sence...
the problem im having is, when i switch back to vista state the list is selected on the one i selected previously.. lol hope that line makes sence...
any help is greatly appretiated!!

Yes!
Disclaimer:
The two VIs must be running in the same process context
Translation:They both must be started from the same project or both opened without a project.
If the two VI are opened from different projects LV will create a sepearte execution environment for both and they will not be able to to interact with the saem queue.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • How do you save "game state" so the user can continue next time?

    I'm not sure what the correct game terminology is for this, but how do you save "game state" so the user can continue next time?
    This seems like a pretty important feature for building some games, we don't want users to have to start over everytime.
    Any ideas if this is possible?

    Check out my blog post on the PersistenceManager:
    http://www.unitedmindset.com/jonbcampos/2010/11/01/flex-4-5-persistencemanager/
    This will help you understand how to store the data. When the app starts up again get the state information from the persistencemanager and reset you game to the state you need. It requires a bit of code for the startup, but it is relatively simple.

  • How would you change the state to the base state?

    How would you change the state to the base state? Its not
    letting me do something like:
    currentState='<Base State>';

    Sorry about the vagueness of that last reply :)
    What I have done now in my code is this:
    viewstack1.addChildAt(loginCanvas,0);
    toggle.selectedIndex = 0;
    However nothing happens at this line of code:
    toggle.selectedIndex = 0;
    but this works:
    toggle.selectedIndex = 1; or ...
    toggle.selectedIndex = 2;
    toggle.selectedIndex = 3;
    toggle.selectedIndex = 4;
    toggle.selectedIndex = 5;
    toggle.selectedIndex = 6;
    The strange thing is that if I have a button on the screen:
    <mx:Button x="10" y="3" label="Button"
    click="toggle.selectedIndex =0"/>
    and the user clicks it the toggle.selectedIndex = 0; works.
    I'm stumped, any ideas?

  • I downloaded ios 6 for my iPad 2 and some of the upgrades went through but not all. It sounds like I need to reinstall ios 6. How do you do that? Everytime I try to upgrade it says I'm already updated

    I downloaded ios 6 for my iPad 2 and some of the upgrades went through but not all. It sounds like I need to reinstall ios 6. How do you do that? Everytime I try to upgrade it says I'm already updated

    If you mean Siri then that is only on the iPad 3, it is not on the iPad 2 in iOS 6 (possibly because the iPad 2 doesn't have the Audience chip which the iPad 3 does). If there are other things that you think are missing (YouTube has been removed, and Passbooks is iPhone and iPod Touch only) ?

  • How Do You Set the State Of a Custom Compent's Child Custom Compent?

    I'm starting to build very complex interface 'widgets' built by taking simple custom compents and creating more complex custom compents from these compents and then again grouping those to create custom components. However, I'm starting to lose access in Catalyst to set these sub custom compents. It maybe just a noob issue.
    Am I looking at this wrong?
    Should I not be nesting compents?
    Other wise how do I access these?
    I haven't jumped into the code part of FLEX yet but I figured it would be very OOP like, so... (psuedo code)
    myParentCustomComponent.my1stChild.state = myChildsStateOn;
    //( myChildsStateOn, myChildsStateOff, myChildsStateNotVisited )
    myParentCustomComponent.my2ndChild.state = myChildsStateOn;
    //( myChildsStateOn, myChildsStateOff, myChildsStateNotVisited )
    I hope I can set this in Catalyst so that I don't have to do a shallow and very wide state setup like ... (psuedo code)
    myCustomCompent.state = my1stChildIsOn;
    myCustomCompent.state = my1stChildIsOff;
    myCustomCompent.state = my1stChildIsNotVisited;
    myCustomCompent.state = my2ndChildIsOn;
    myCustomCompent.state = my2ndChildIsOff;
    myCustomCompent.state = my2ndChildIsNotVisted;
    PLEASE ADVISE, thank you.
    Best Regards,
    -Truce

    Hi Truce,
         Thank you for your feedback. You have run into a current limitation with the "play transition to state" interaction and the "Set Component State" action in the timeline. Currently the UI that allows you to pick a state only "sees" components that are direct children of your current context. The state picker doesn't allow picking states of components that are more deeply nested.
    We are aware of this issue and how it impacts user's ability to author more complex projects, so we are looking at ways to allow users to pick states deeper within the hierachy when creating interactions.
    One work around that works in *some* cases is to set the state of sub components in a parent component using the PI rather than using interactions.
    If you have a structure like this
    Application
        WidgetA (with state1 and state2)
              WidgetB (with state1 and state2)
              WidgetC (with state1 and state2)
    You can record what state WidgetB and WidgetC are in for each state of WidgetA. To do this double-click WidgetA, select WidgetB and change the current state in the properties editor for WidgetB. That state will be remember for each state of Widget A. Then when you have an interaction at the application level that changes the state of WidgetA, then WidgetB will change state as well. This works well if WidgetB is in the same state for each state of WidgetA. If you want to change WidgetB and WidgetC states directly from the Application level, there isn't currently a way to do this.
    - Ty

  • How do you reinitialize location 2710 database??

    I have just upgraded my location appliance and WCS. However, I cannot get the Network Design  elements to re-synchronize. Keep getting message "A similar element was found in the Server. Please synchronize again to remove any disparities.". Controllers do synchronize OK. Tried reboots; deleting Network Design element (which didn't delete it); Deleteing/adding 2710 to WCS.  So decided I want to reinit the 2710 database instead. I dont need the historical stats. The option 'Clear Configuration' implies this will reset Location appliance to factoiry defaults which is not what I want todo. So does anyone know a procedure to just reinit the 2710 database??

    1.SSH to your location appliance with the root user.
    2.Stop the location daemons: /etc/init.d/locserverd stop
    3.Then clear the database by removing the following file: : rm -rf /opt/locserver/db/linux/server-eng.db
    4. Start the location daemons: /etc/init.d/locserverd start
    And you are done!

  • How do you create down states in FW CS4

    on previous versions you could just double click the button
    and change the state by the tabs up top....i dont see that anymore
    can someone pleas help...thanks

    Open States Panel
    Right click first state and choose Duplicate (add as many
    states needed), then change the properties of the copied objects
    from state to state.
    h

  • How do you do Switch statement in JSP

    using the HTML tags!

    using the HTML tags!HTML has no switch capabilities.
    If you mean using JSTL, then you can use the <c:choose>, <c:when> and <c:otherwise> tags to behave like an if else structure:
    <c:choose>
      <c:when test="${var == 1}">
        //something
      </c:when>
      <c:when test="${var == 2}">
        //something
      </c:when>
      <c:otherwise>
        //something
      </c:otherwise>
    </c:choose>

  • How can I limit the fonts in the Character Map (charmap) and reinitialize the state after use?

    In a WPF application I have a RichTextBox in which users will be inserting text. I also must give the user the ability to insert characters. To do so I have called up charmap.exe using
    Process charProcess = new Process();
    ProcessStartInfo startInfo = new ProcessStartInfo();
    charProcess.StartInfo.FileName = strCharmap;
    charProcess.Start();
    etc., and it works fine. There are several problems I have basically with charmap, however, not with WPF. The first is that because of the subsequent use of the user’s insertion in the RTB, I must restrict the font to “Ariel Unicode
    MS.”  So far all I have been able to do is instruct and warn the user not to change fonts and 
    change back any font change that occurs as a result of use of “Advanced view” features.
    Question number one is, how can I restrict the fonts loaded into charmap to this one font? The second problem is that if another font is called up, or the “Advanced view” state of charmap is closed, or a “Group by” feature is opened, these choices will
    be retained for the next user that opens charmap. How can I initialize the state of charmap for each new user with the correct font and “Advanced view” features showing. It is said,but in old posts, that reinitialization occurs for all but administrative users,
    but this seems to be no longer true. I have tried permission changes in charmap’s Properties, but I can’t get the necessary reinitialization to occur even if user’s don’t have modify permission. Can one use a .ini file, or the .mui file, or make Registry changes
    to accomplish my goals. There seems to be a warning in the .mui file about changing fonts, but is it cancelled? I am using Windows 7 and C#.
    I have looked at other character maps but they are either too complicated for the casual user, or they have no search engine and advanced features, or they have the same problems.
    I am pretty much a novice with respect to the Windows files use and WPF, so please be fairly clear, complete, and prescriptive in your answer. Also so that I and others can learn, it would be nice to have an explanation of why one does whatever you suggest.
    Your help is appreciated.

    Hi,
    Thanks for your post!
    According to your description, I am afraid your problem is out of support in C#language forum. So i move your thread to off-topic forum!
    Best Wishes!
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; the responses that resolved your issue. It is a common way to recognize those who have helped you, and
    makes it easier for other visitors to find the resolution later.

  • How do you set up iphone 5? everytime i put it into the computer it erases all my contacts how do i stop this and get my contacts back?

    how do you set up a iphone 5 everytime i conect it to the computer it erases all my contacts how do i put them back on my phone and stop the computer erasing them again?

    Are your contacts not on your computer?

  • How do you remove back up data from the memory storage? my storage data states that i have over 80gb of data used for back ups and i dont know why as i use a external hard drive as a time machine .now my 250gb flash storage is nearly full

    how do you remove back up data from the memory storage? my storage data states that i have over 80gb of data used for back ups and i dont know why as i use a external hard drive as a time machine .now my 250gb flash storage is nearly full.. HELP!

    When Time Machine backs up a portable Mac, some of the free space will be used to make local snapshots, which are backup copies of recently deleted files. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown as  Backups. The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself. If you followed bad advice to disable local snapshots by running a shell command, you may have ended up with a lot of data in the Other category. Ask for instructions in that case.
    See this support article for some simple ways to free up storage space.

  • How do you get your options in your workflow incamera raw 6.0 to  stay so you don't have to change them everytime?

    How do you get your options in your workflow in camera raw 6.0 to  stay so you don't have to change them everytime?

    No one, absolutely no one should be using Adobe Camera Raw 6.0.  You should be on Camera Raw 6.7.
    Don't rely on the Adobe auto updater to tell you there are no available updates and assume "everything is up to date". That auto updater was totally unreliable until CS6.
    The workflow options are absolutely sticky.  You should not have to change them at all unless you want to.
    If they're not after you update ACR to 6.7, you'd need to troubleshoot your system.
    BOILERPLATE TEXT:
    If you give complete and detailed information about your setup and the issue at hand, such as your platform (Mac or Win), exact versions of your OS, of Photoshop and of Bridge, machine specs, such as total installed RAM, scratch file HDs, video card specs, what troubleshooting steps you have taken so far, what error message(s) you receive, if having issues opening raw files also the exact camera make and model that generated them, etc., someone may be able to help you.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • How Do You "Unload" Using a "While" statement?

    How do you "Unload" or "Exit" using a "While" statement?
    Sample: The console displays "Press Enter to continue".
    Description: It a User press the Enter key, then the application would start over. On the other hand, if a User presses the "0" key, the application ends, exits. What code would be used?
    THANKS ... signed ... VERY NEW at JAVA ...

      input=readInput();
      while (input!=yourExitKey)
        // do stuff here
        input=readInput();
      // End of code

  • How do you execute this program on a DVD in a PowerShell statement

    How do you execute this program on a DVD in a PowerShell statement?
    E:\path /program1

    You should be able to just type the command. You may need to quote the path.
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)

  • I tried to use Battery updater and it failed, now it starts up on my computer boot up evrytime and fails everytime, how do you turn it off or get it to work?

    I tried to use the Battery updater software on my Powerbook G4 and it didn't work, now it starts up on my computer startup everytime, how do you get it to work or turn it off?

    It's possible that your model PowerBook doesn't need the updater.
    Did Software Update offer you the Updater, or did you download it from Apple? This article"
    http://support.apple.com/kb/HT2339
    has a list of the specific Mac models requiring the update and how to tell if you have one of those models--if yours is not among them, the updater shouldn't run.

Maybe you are looking for