Newbie Question re showing new windows.

IM used to VB, where I could design several forms, for example starts with a splash screen, then that unload and load a login form, then hide and display the main form etc.

IM really struggling to understand how you get celebrate do the same thing in flexbuilder.

How do you get the app to start with a 'form', and then on a user event that close and open the main application?

A simple example, say a page with just a text area and a button above that da clicked opens a second app page that shows the text entered in step one (IE how to pass variables in all forms) it would help me to much to get my head around the concept in flex...

It's just so different from what I'm used to, im faced with stuff that really should be easy and feel a bit ridiculous

can any help?

Hello

Flex uses different States.  You can set States using code similar to this.


       
       
   

And then you can include certain components in some States or all States using code similar to the following

This will ensure that the textinput appears only on the first and not the second.  Allows it to appear on all the States simply omit the includein statement.

You can then navigate through different States on the events of the user by using a function such as

private void clicky (): void
{
currentState = "second";
}

And assigning attributes click to a button or something similar

This will mean when we click on the button that the State being viewed changes from 'first' to the 'second '.

In any case, here is a small example to ask for a name and then Exchange States, click on the button and display host + the subject name.


http://ns.Adobe.com/MXML/2009.
xmlns:s = "library://ns.adobe.com/flex/spark".
xmlns:MX = "library://ns.adobe.com/flex/mx" width = "346" height = "242" >
   
       
       
   

   
       
   

   
   
        private void clicky (): void
{
currentState = "second";
welcome_lbl. Text = "Welcome" + name_txt.text;
}
           
]]>
   

   
   
   
   
   

Hope this helps

Tags: Flex

Similar Questions

  • Newbie question on merging 3 - Windows 7 (upgrade) and virtual disk

    Hello

    I apologize if these questions were discussed on other threads, but I looked and did not find those specific to what I do. Since I am a new user, my experience with the merger is limited only to the few days of operational use.

    I received my iMac the other day and wanted to install Windows 7 (upgraded version) using Boot Camp and access either by booting natively to Win7 or through merger to access the Boot Camp. My friend, who has more experience than me has suggested, I use VMware Fusion for Win7 do run a vitural drive and not worth using Boot Camp, and a "hard" partition He said it would be faster and easier to manage (not sure now).

    I set up a disc in this drive and external created 4 partitions, which was intended for Win7. Then I installed VMware Fusion on iMac and went on loading windows on the external drive using the easy method. Easy installation application the activation code for Win7 and I provided at the specified location. Everything was humming along nicely until Windows 7 complained that he could not find a version support for Windows earilier. I had a Windows XP genuine disc ready to throw on the iMac, as soon as she needed, but instead he has cancelled installation.

    Then, I went to Google and searched for some answers and discovered that Win7 install in Fusion without an activation code. I uninstalled VMware and reinstalled, restarted the process, do not put in the Win7 activation code and everything was fine... except now, there is no Windows activation request. I've searched and anywhere to click on a link to activate Windows, or indeed could not find a place to write in the activation key.

    What is happening with this?

    Ron

    Windows installation without a product key is convenient to have more options to activate Windows later.  Don't worry, Windows will "ask" you activate in the near future, but if you are willing to 'true' then go to properties of the icon of the computer and at the bottom you will see the activation state and you can change/enter your product key.

  • Newbie question-hide/show content of layers when you click on the button

    HI guys, I have very limited knowledge of Flash and Action script 2, but I would like to solve this problem.

    I have an animation that shows the items highlighted in a diagram. As the elements are highlighted, the audio will play (to explain the animation). because we create for people with disabilities as possible, we have also created captions with text to audio. Thus, in separate layers, we created bubbles and text that is synchronized with the actions of animation on the screen. It is also synchronized with the audio.  We want to have a button (button close captioning) when users embed it, they see the text captions and if they push it again, they do not see the text captions.

    my questions are

    (1) what is the best way to create the effect I'm looking for?

    (2) will what order actionscript take for the button actions?

    Thank you

    That's the problem.  When click you on your button the first time, you have set the onRelease Manager.  then he works with the following clicks.

    to remedy this, use the code exactly as I gave it BUT attach it to the frame of the timeline that contains your key for the button itself.

  • new newbie question

    A few background questions: I'm new cs4, Web page design, so I decided to give it a go and have a bit of frustration but love all the DW. I did not any computer of programming since the BACK on a commodore 128 in high school... Although w3schools, adobe tv and youtube are moving me... lol

    I use 3 columns locked with header and footer

    1. I added a table to the my content, just below the title of the content and three photos.  Each photo (jpg) is taken from my site images folder and inserted in the top row.  They were previously seen on the design and mode live view and preview in the browser but now just shows Design view and does not appear in mode live view or seen by Preview in the browser. I deleted and reinserted them without change and I've debugged and have no problem but me being a novice... what I am doing wrong or is - it a bug and some simple, easy for a guy not experienced to understand?

    2. can you use the panels reducible spry in a table?  I tried earlier and my site got weird on me, so I removed it.  I already have my nav, so it would be more than a list of data in the area of the environment page?  Can I use the data list instead?  I like the idea that it is reducible to a type of menu.

    I have also read through the forums and hats help for us newbies

    Thank you

    I can't see your pictures so I have no way of knowing which ones shows and those who don't.  This is why it is so much better for us if you download the page to the web server and that you post a URL for us to see.

    In your code, I see problems with path. You have this in the header:

    Followed by here later on (notice the first slash images before?):

    airportpic
    

    and this in your footer (no slash leader before the images):

    I hope that this will put you on the right PATH.

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    www.Alt-Web.com/
    www.Twitter.com/ALTWEB
    www.Alt-Web.blogspot.com

  • When you click on "don't show this again option" in "Firefox prevented this page to open in a new window or tab," How do you get the window of options again?

    I clicked by mistake on the choice of "don't show this again option" in the "Firefox prevented this page open in a new window or tab", and now I can't understand how "uncheck" the box and back again once the window options.

    My bad - it was the pop up Adblock Plus 0.7 Addon.

    "I went just the Firefox button orange > Modules > Adblock Plus pop-up Addon 0.7 - > Options > my site rules > the site right click > edit > checked 'Block all pop-up windows' and unchecked" this rule applies to: 'New Windows' and 'new tab '.

    Presto! Firefox works as before.

    I didn't know I had controls within the addon that would affect the Firefox popup blocks the action.

    Please call the attention on the "details of the system more.»

  • Using firefox 14.0.1. Load a link using the right click and "Open link in new window", translates into a new window opens but doesn't show URL address bar...

    Using firefox 14.0.1. Load a link using the right click and "Open link in new window", translates into a new window opens but doesn't show URL address bar. However, if I click with the right button on a link and select "Open link in a new tab", the tab displays the URL in the address bar. If it works when a new tab it's not in a new window.

    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your vital information.
    Note: This will make you lose all the Extensions, open Web sites and preferences.

    To reset Firefox, perform the following steps:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the button 'Reset Firefox'.
    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

  • I installed Identity Finder, and I have to enter a password to enter in Firefox, what pleases me. However, even if my settings are set on "show my windows and tabs from last time ', I have to manually click on each one to add in a new tab of each hour.

    I installed a security program called Identity Finder whick requires a master password in Firefox on my laptop, I love. However, even if my settings are "show my windows and tabs from last time ', I have to manually add each link in a new tab each time. Any suggestions? Thanks in advance.

    Pure speculation, but maybe the program Identity Finder is delete your browsing history which is the way Firefox restores the tabs, windows, and the previous session. Check with the technical support for this program or look at the manual.

  • How can I change the Menu Windows Contacts bar to show new Contacts, new Group Contacts, etc.. ?

    I have Windows Vista with Windows Mail. In Windows Mail, my Contacts are displayed, but the Menu bar icons related to the Windows images. How can I change the Menu Windows Contacts bar to show new Contacts, new Group Contacts, etc.. ?

    Original title: Windows Mail with Vista

    Missing the Windows Contacts toolbar buttons
    http://www.wintuts.com/missing-buttons-from-Windows-contacts-toolbar

    Vista - "New Contact" and "Contact Group on new" button missing
    http://www.Vistax64.com/tutorials/186477-new-contact-new-contact-group-button-missing.html

  • New tab page shows icons only when I open a new window, not when I open additional tabs in the existing window. Help!

    When I click on the + sign up open a new empty tab, I don't see any of my favorite sites / pins. I see this when I start a new window browser and only for the 'landing page '. Once I go to any other page, I can't get my new tabs tabbed page to display.

    I fixed it. I went in: config and had to change browser.newtab.url to about: newtab

    Thank you very much! Mark as resolved, have a nice day

  • RT 8 Windows Server 2008 newbie question

    Hi guys,.

    Just saw a difference between server 08 & 08 RT server is that RT is only 64-bit. Is this to say that the server is accessible only by the 64-bit systems?

    Also, I'll be able to connect to the server with older versions of windows / other operating systems?

    Thank you!

    Hello

    Transfer your question on the Forum Windows Server help.

  • Newbie question re: 'break' a path

    Hello... Sorry for the newbie question... I imported this vector image in Illustrator CS5:

    5-3-2012 10-42-59 PM.jpg

    I want to isolate each of the children, so I can use the live paint to color to each child a different color.

    I can do this:

    5-3-2012 10-48-56 PM.jpg

    But I want every child to be a different color. And it's all a way.

    Thank you.

    I find the tool knife difficult to control unless it is a straight line, but you can draw a path and with the selected path only, choose object > path > divide objects below. The image below shows a path that I draw pretty closely with the pencil tool. You can also correct and refine tracks selected by drawing the wire segments of them using the pencil tool and all in using it, holding that alt will smooth the path. To control how the pencil tool behave click twice on the tool in the tool box and it will display a window with options.

    However, in this case, most likely I'll do it in another way.

    First of all, copy the path and paste it at the front 5 times (for 5 children). While the path top of the stack is still selected, change the color of it with the color for the first child, and then using the pencil tool as described above, correct the path to limit it to the silhouette of the first child. The red line on the image below shows where I've drawn with the pencil tool to limit the upper path for the first child. Important during the correction of the paths with the pencil tool is to begin and end the segment based on the original path, or if you start or finish too far from the path, you will create a new path instead of correct that you selected. After correcting the path for the first child, you can select the following path and continue as it fix the paths for each child. Alternatively, instead of paste all roads at the beginning you can stick behind or in front after having corrected the path for each child. Also, except for children at the ends, he must correct the path for other children with both hands. The advantage of this method in the first (with dividing the items below) is that you can move and the path of each child space independently and the hands will look always complete.

  • Newbie questions

    Greetings

    After nearly 40 years, using Windows, I ordered an iMac 27 "(renovated)."  I had an Apple II at the end of the 1970s beginning in the 1980s and had an iPhone 4 and still have an iPad 2, but my office has always been a windows box.  So I'm really a newbie on the Mac.  My main job is as an image maker and photographer, using Adobe products. I am become familiar with the software and the new terms and had a few questions.

    My Windows workstation had 4 screens and would like to have 3 screens, on the iMac.  I understand the port Thunderbolt is what I would use, but don't know if I should get some sort of converter hub and put a Thunderbolt port or run each monitor on its own Port. I don't know, what other material may be used on the stroke, if you want advice from other users.  Even if my PC monitors are near the resolution of the iMac, and most of my image work will be done on the main screen, other screens will be used for e-mail, research on the web and others.

    I also use a mouse from the ball on my PC (usb) and I was wondering if it will work on the material of the iMac.  I have a little of magic, as seems to be quite an easy and intuitive interface.

    In any case, I'm sure it's frustrating for users of long-time Mac products to meet a beginner, but advice, links or suggestions would be greatly appreciated.

    Thank you very much.

    You can use any external screen mini display port. Plug the cable from port mini display on the Thunderbolt on Mac ports, and then you're in business. Connection of external monitors an iMac is extremely simple to do. Apple explains in OS x: how to use several displays with your Mac in Lion mountain and even before - Apple Support. Although this letter of advice is a bit outdated, it should still work properly with your new iMac.

    Insofar as your new magic Track Pad, it may take a little 'getting used to' However, after a week or two, you will get the hang of it. You can find the gestures to use multi-touch on your Mac - Apple Support useful too.

    There is a plethora of information available for Windows users, go on a Mac. I would like to start with https://www.apple.com/support/macbasics/

    Furthermore, to make your messages more readable, use paragraph breaks. We would appreciate that.

  • Why the tabs that require authentication moving in a new window?

    I start the value "show my windows and tabs from last time '. Many of these tabs require authentication and once the authentication to complete the tab is moved to a new window. This behavior started only recently. I saw this happen on at least two computers.

    This seems to be fixed on its own. Maybe an update fixed. To answer you question cor - el, all pages are opened by clicking the sign + to open a new tab and this by clicking on a bookmark on the bookmarks bar. As I said above I keep several tabs always open and a few require authentication. When close firefox and then running it again, after the Authentication tab moves to a new window.

    In any case thanks for the replies.

  • Open a new window VI

    Hi all

    I am new user of Labview, so I need your help.

    I'm trying to create a block of the system interface and I need to control and monitoring.

    The main idea is to have different push button and when I press on them to open a new window (VI) to cardiac control and monitoring of each of them (for example, when I press the button of a temperature sensor to be able to open a new window and show the average temperature and if I want to open a cooler fan).

    The question is whether it is possible to do something like this or I have to do in the same window (because I have 6 sensors and for each of them, I want to separate window).

    Thanks in advance and waiting for your answers

    Hi kb88

    Welcome to the forums and LabVIEW.

    I have provided an example for you look - however as a new user, you must first take the time to learn a few LabVIEW using the line found help and tutorials at http://www.ni.com/academic/labview_training/.

    To understand the code, I have included you should look at while loops, event and business management and properties VI structures (the Subvi you want to start must have its properties' VI' the "Dialog" value so that it appears as such)

    Kind regards

  • The new Windows XP Update site is broken. Can someone check?

    The new Windows XP Update site is broken. Can someone check and confirm?

    http://update.Microsoft.com/microsoftupdate/v6/muoptdefault.aspx?ReturnUrl=http://update.Microsoft.com/microsoftupdate&ln=en-us&muopt=6

    Hello

    The description of the problem seems a little unclear and I wish I had a better understanding before you start working on it. I would really appreciate if you could answer the following questions:

    1. what exactly is the problem you are experiencing in your computer?

    2. your computer installed with Service Pack 3 is?

    3. you receive an error code or message?

    4. have you made any recent hardware or exchange of software on your computer before the show?

    Please provide us with more information on the specific question to help you to fix as soon as possible.

    Your response is very important for us to ensure a proper resolution. Please get back to us with the information above to help you accordingly.

Maybe you are looking for