How can I make the Stock Market Panel load AFTER the User Enters correct password?

Can someone PLEASE help me. I need the Second part of this code(the Stock Market Panel) to be display after the user enters the correct username and password I have predefine. I really need to complete this project for school, Last Semester and i want to finally graduate!
<?xml version="1.0"?>
<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                                 xmlns:mx="library://ns.adobe.com/flex/mx"
                                 xmlns:s="library://ns.adobe.com/flex/spark">
          <fx:Script>
                    <![CDATA[
                              import mx.controls.Alert;
                              public var u:String;
                              public var p:String;
                              public function log():void
                                        u=user.text.toLowerCase();
                                        p=pass.text.toLowerCase();
                                        if((u==''||u!='webmultimedia')||(p==''||p!='abc'))
                                                  Alert.show('Wrong userid or Password','Sorry',Alert.OK | Alert.CANCEL);
                                        else
                                                  Alert.show('Hi','Welcome',mx.controls.Alert.OK);
                              public function clear():void
                                        user.text='';
                                        pass.text='';
                    ]]>
          </fx:Script>
          <mx:Panel id="NewForm" title="Please Log In" height="214" width="285" horizontalAlign="center" verticalAlign="middle" horizontalCenter="23" verticalCenter="2">
                    <mx:Label id="User Name" text="User Name"/> 
                    <mx:TextInput id="user" />
                    <mx:Label id="password" text="Password"/>
                    <mx:TextInput id="pass" displayAsPassword="true"/>   
                    <mx:Button id="submit" label="Submit" click="log()"/>
          </mx:Panel>
          <mx:Panel width="349" height="383" chromeColor="#1B8905" color="#FFFFFF" focusColor="#0F3CFF"
                                fontFamily="Georgia" fontSize="21" fontWeight="bold" paddingBottom="10"
                                paddingLeft="10" paddingRight="10" paddingTop="10" title="Stock Market">
                    <!--First Pane Of TabNavigator-->
                    <mx:TabNavigator borderStyle="solid">
                              <mx:VBox y="71" width="371" height="334" label="Dow Jones"
                                                   chromeColor="#0A741C">
                                        <mx:Image id="loader1" source="http://dl.dropbox.com/u/8861424/stock1.png"/>
                                        <mx:RichTextEditor id="myRTE" width="355" height="286" borderVisible="true"
                                                                                   color="#000000" text="Enter Stock Comment"/>
                              </mx:VBox>
                              <!-- Second pane of TabNavigator -->
                              <mx:VBox label="SandP" width="500" height="350">
                                        <mx:Image id="loader2" source="http://dl.dropbox.com/u/8861424/Untitled.png"/>
                                        <mx:RichTextEditor id="myRTE2" width="355" height="286" borderVisible="true"
                                                                                   color="#000000" text="Enter Stock Comment"/>
                              </mx:VBox>
                              <!-- Second pane of TabNavigator -->
                              <mx:VBox label="Nasdaq" width="500" height="350">
                                        <mx:Image id="loader3" source="http://dl.dropbox.com/u/8861424/stock2.png"/>
                                        <mx:RichTextEditor id="myRTE3" width="355" height="286" borderVisible="true"
                                                                                   color="#000000" text="Enter Stock Comment"/>
                              </mx:VBox>
                    </mx:TabNavigator>
          </mx:Panel> 
</mx:Application>

it's probably not the correct way to do it but I am more familiar with Flex4 (which use states) but this works
however i had to remove your Alert they were throwing an error
<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                                        xmlns:mx="library://ns.adobe.com/flex/mx"
                                        xmlns:s="library://ns.adobe.com/flex/spark">
          <fx:Script>
                    <![CDATA[
                              import mx.controls.Alert;
                              public var u:String;
                              public var p:String;
                              public function log():void
                                        u = user.text.toLowerCase();
                                        p = pass.text.toLowerCase();
                                        if ((u == '' || u != 'webmultimedia') || (p == '' || p != 'abc'))
                                                  //Alert.show('Wrong userid or Password', 'Sorry', Alert.OK | Alert.CANCEL);
                                        else
                                                  //Alert.show('Hi', 'Welcome', mx.controls.Alert.OK);
                                                  stockMarket.visible = true;
                                                  NewForm.visible = false;
                              public function clear():void
                                        user.text = '';
                                        pass.text = '';
                    ]]>
          </fx:Script>
          <mx:Panel id="NewForm"
                                title="Please Log In"
                                height="214"
                                width="285"
                                horizontalAlign="center"
                                verticalAlign="middle"
                                horizontalCenter="23"
                                verticalCenter="2">
                    <mx:Label id="UserName"
                                          text="User Name" />
                    <mx:TextInput id="user" />
                    <mx:Label id="password"
                                          text="Password" />
                    <mx:TextInput id="pass"
                                                    displayAsPassword="true" />
                    <mx:Button id="submit"
                                           label="Submit"
                                           click="log()" />
          </mx:Panel>
          <mx:Panel id="stockMarket"
                                visible="false"
                                width="349"
                                height="383"
                                chromeColor="#1B8905"
                                color="#FFFFFF"
                                focusColor="#0F3CFF"
                                fontFamily="Georgia"
                                fontSize="21"
                                fontWeight="bold"
                                paddingBottom="10"
                                paddingLeft="10"
                                paddingRight="10"
                                paddingTop="10"
                                title="Stock Market">
                    <!--First Pane Of TabNavigator-->
                    <mx:TabNavigator borderStyle="solid">
                              <mx:VBox y="71"
                                                   width="371"
                                                   height="334"
                                                   label="Dow Jones"
                                                   chromeColor="#0A741C">
                                        <mx:Image id="loader1"
                                                              source="http://dl.dropbox.com/u/8861424/stock1.png" />
                                        <mx:RichTextEditor id="myRTE"
                                                                                   width="355"
                                                                                   height="286"
                                                                                   borderVisible="true"
                                                                                   color="#000000"
                                                                                   text="Enter Stock Comment" />
                              </mx:VBox>
                              <!-- Second pane of TabNavigator -->
                              <mx:VBox label="SandP"
                                                   width="500"
                                                   height="350">
                                        <mx:Image id="loader2"
                                                              source="http://dl.dropbox.com/u/8861424/Untitled.png" />
                                        <mx:RichTextEditor id="myRTE2"
                                                                                   width="355"
                                                                                   height="286"
                                                                                   borderVisible="true"
                                                                                   color="#000000"
                                                                                   text="Enter Stock Comment" />
                              </mx:VBox>
                              <!-- Second pane of TabNavigator -->
                              <mx:VBox label="Nasdaq"
                                                   width="500"
                                                   height="350">
                                        <mx:Image id="loader3"
                                                              source="http://dl.dropbox.com/u/8861424/stock2.png" />
                                        <mx:RichTextEditor id="myRTE3"
                                                                                   width="355"
                                                                                   height="286"
                                                                                   borderVisible="true"
                                                                                   color="#000000"
                                                                                   text="Enter Stock Comment" />
                              </mx:VBox>
                    </mx:TabNavigator>
          </mx:Panel>
</mx:Application>

Similar Messages

  • How can I make Terminal run Java 7 downloaded from the Oracle Website?

    I've downloaded Java 7 from the Oracle website, and I want the Terminal application to run that Java 7 download. I try to run Java programs that require Java 7, but it runs with the Apple Internal Java 6 release. How can I make it so my MacBook Pro runs the download of Java that I downloaded? I know this sounds stupid, but am I routing my machine to run the internal Java 6 version? I have seen many videos in which people with the same software version as me run Java like this with no problem. Could you please let me know why this is happening and how I can fix it? I really want to be able to use the Java 7, particularly because I'm always getting this "Unsupported Major Minor Version 51.0" from many applications that are Terminal based.
    Thanks!

    I think I've answered your question. The Oracle JRE is a web plugin. The JDK is a development kit for applications with embedded Java. Neither one replaces the Apple-distributed Java frameworks for running standalone applications without embedded Java. Any other questions you have should be answered by the Oracle documentation.

  • How can i make apple mail dislay message body to the left not below the mes

    How can i make apple mail display message body to the left not below the messages
    headers pane ? something like outlook

    There is a plugin to do this in Leopard but currently its not compatible with SL however you might like to try the beta release which has preliminary support for 10.6:
    http://www.macupdate.com/info.php/id/21899

  • How can I make server use single class loader for several applications

    I have several web/ejb applications. These applications use some common libraries and should share instances of classes from those libraries.
    But applications are being deployed independently thus packaging all them to EAR is not acceptable.
    I suppose the problem is that each application uses separate class loader.
    How can I make AS use single class loader for a set of applications?
    Different applications depend on different libraries so I need a way that will not share library for all applications on the domain but only for some exact applications.
    When I placed common jar to *%domain%/lib* - all works. But that jar is shared between all applications on the domain.
    When I tried to place common jar to *%domain%/lib/applibs* and specified --libraries* attribute on deploying I got exception
    java.lang.ClassCastException: a.FirstDao cannot be cast to a.FirstDaoHere http://download.oracle.com/docs/cd/E19879-01/820-4336/6nfqd2b1t/index.html I read:
    If multiple applications or modules refer to the same libraries, classes in those libraries are automatically shared.
    This can reduce the memory footprint and allow sharing of static information.Does it mean that classes should be able to be casted ?

    You didn't specify which version of the application server you are using, but the config is similar as long as you know what to look for. Basically, you need to change the classloader delegation. Here's how it is done in 8.2
    http://download.oracle.com/docs/cd/E19830-01/819-4721/beagb/index.html

  • How can I make my pages a smaller size after completing my work?

    I have finished making some newspaper styled pages, however they are too big (due to poor calculations). How can I make  my pages  smaller, or to be the size I want?
    Thanks!

    As DOD and Peter have suggested, Layout Adjustment is probably the way to go. You will have to do some manual adjustments, but this tool can help save you some time.
    If you are using CS5 or earlier this explains the process:
    For CS6 you can use the Liquid Layout menu to do this:

  • How can I change my original security questions? After changing my AppleID and password, I am not given an opportunity to change my security questions, which I cannot remember the answers to, so I cannot purchase any music.

    How can I change my original security questions? After changing my AppleID and password, I am not given an opportunity to change my security questions, which I cannot remember the answers to, so I cannot purchase any music.

    See my User Tip for some help: Some Solutions for Resetting Forgotten Security Questions: Apple Support Communities.
    Send Apple an email request for help at: Apple - Support - iTunes Store - Contact Us
    Call Apple Support in your country: Customer Service: Contacting Apple for support and service

  • How can I make a tent with two halves of the info ( and pictures one direction and the other half the opposite direction ( towards each other of course)

    How can I make a table tent in PAGES with both halves of the info and pictures turned towards each other?  I can figure out how to turn just the picture upside down  AND the text sideways, but not upside down with the picture included so that it is at the top and not the bottom! 

    Layout the picture and text (in text boxes) the way you want them in the lower half of the page. Then Select All and Group them. With the Group selected, type Cmnd+D to duplicate it and then hold down the Shift and Command keys and grab a corner box (you’ll see a double headed arrow) and rotate the box until it’s upside down. (Holding down the Shift key will constrain the rotation to 45 and 90 degree positions.) Now drag the box into position in the top half of the page.
    Walt

  • How can I make a report for a mistake in the Dictionary application of the iPhone?

    When you highlight something you've written and then you press on "Define"... there is a mistake in one of the entries of the dictionary....How can I make a report to Apple?

    http://www.apple.com/feedback/iphone.html

  • How can I make Firefox recognise that I have changed the DNS servers to use?

    After I edit /etc/resolv.conf to make my computer use more reliable DNS servers, Firefox doesn't notice until I restart it. How can I make Firefox notice the change without restarting it?

    I discovered that I can do this by ticking Work Offline in the File menu, and then immediately unticking it again.
    (I believe this mimics what would happen if the operating system disconnected and reconnected from a wireless network, which would be a situation where Firefox would need to check for new DNS servers. So that explains why it works.)

  • How can I make playlist changes on my iPhone 6 the default sync with iTunes?

    I'm far more often using my iPhone to make iTunes purchases and make changes to my playlists- how can I make *these* the default settings by which iTunes syncs? I have iTunes match, iCloud, etc. Mainly I'd like to easily have iTunes match my iPhone changes, and then when I sync my iPod nano via usb, have the iTunes (ergo iPhone) changes made to the iPod.
    Thanks in advance!

    I'm far more often using my iPhone to make iTunes purchases and make changes to my playlists- how can I make *these* the default settings by which iTunes syncs? I have iTunes match, iCloud, etc. Mainly I'd like to easily have iTunes match my iPhone changes, and then when I sync my iPod nano via usb, have the iTunes (ergo iPhone) changes made to the iPod.
    Thanks in advance!

  • HT1461 How can you make more 'Ram' available using bootcamp, on the windows side of things??

    Hey, i recently bought an iMac 20.5' (i5) and it came with 4gb Ram
    I am a music producer but the program i use is windows based, so i got bootcamp, all that works fine
    but ive been working on a new song for a while now and the prgoram has an 'indicator' showing how much CPU usage % and ram is being used.
    it is now at 1956mb! which should efffect because i have 4gb! right!??.. no it says (in windows sytem) 2.3gb (available)....
    So i went out and bought an extra 4gb, followed the instructions and Ram went int easy!!. I log onto Mac and yep 8 GB Of RAM!!
    so then i log into windows (through bootcamp ofcourse) and still 2.3 gb available....
    anyone know if i can make more avaible?? or do i have to reinstall windows through bootcamp???
    Thankyou
    P.S. 32 but windows 7 is what i use

    Windows installed using Boot Camp uses all your comptrer's resources.
    Windows 7 32 bit can only use about 3 GB of RAM. The limitation is that 32 bits can not address more than this. If you want to address and use more RAM then you need Windows 64 bit.

  • How can I make space in my full HD finding the FATTY folders?

    Hi everybody...
    I have my 80G HD almost full, only 1.1G free. This happened suddenly without me doing nothing. I know I have to have at least 25% free. So I started checking my folders to choose which delete. The biggest one is iTunes with 3.5G.
    I REALLY need help with this and will appreciate it a lot. I'm not a tech soul.
    So, how can I delete 20G? Is there a software, Utilities that can help me with the task?
    I do have an external 250G HD but it's pretty full too. I keep my movies there.
    I emptied Safari's Cache too to no significant change.
    Needless to say my laptop is EXTREMELY slow now, taking ages to open.
    I mostly use daily: Safari, iTunes, Final Draft, Word.
    It also gets VERY HOT almost immediately after opening it with both fans running. Usually it's Safari the culprit, taking like 80% of the CPU when opened.
    I used Disk Utility to repair the HD.
    I know this Power PC is old but right now I can't buy a new Intel replacement.
    Thank you for any advice/directions on solving it.
    Cheers.
    Charles

    Hello Charly,
    How much free space is on the HD, where has all the space gone?
    OmniDiskSweeper is likely the easiest/best, and is now free...
    http://www.omnigroup.com/applications/omnidisksweeper/download/
    Also, open Console in Applications>Utilities & see if you have repeating messages making humongous log files.
    I think you should get Applejack...
    http://www.macupdate.com/info.php/id/15667/applejack
    After installing, reboot holding down CMD+s, (+s), then when the DOS like prompt shows, type in...
    applejack AUTO
    Then let it do all 6 of it's things.
    At least it'll eliminate some questions if it doesn't fix it.
    The 6 things it does are...
    Correct any Disk problems.
    Repair Permissions.
    Clear out Cache Files.
    Repair/check several plist files.
    Dump the VM files for a fresh start.
    Trash old Log files.
    First reboot will be slower, sometimes 2 or 3 restarts will be required for full benefit... my guess is files relying upon other files relying upon other files! :-)
    Disconnect the USB cable from any Uninterruptible Power Supply so the system doesn't shut down in the middle of the process.

  • How can I make a report of all records with the date in the last two weeks?

    Hi!
    I have records with a date field, I want to create a report that only includes records with a date which is within the last two weeks of the system date, is this possible? Surely this is a basic database function, I would have thought, but I can find no help about it and there's very little in Mac Help about doing anything other than simple stuff with reports.
    I'm not a genius with databases, so help with any required formula or what have you would be great!

    Hi Jonathan,
    Here's a formula you can use with the Match function. 'Date' is the name of the date field, which must be a "Date" type field.
    'Date'>NOW()-14
    Match will select (highlight) all records matching the query. You'll then need to use Organize > Hide Unselected to show only the matches.
    Unfortunately, I haven't found a way to make the NOW() function work in a Find request, and neither Match requests nor Hide Unselected can be included in a recorded search, either of which would reduce repeating the report to a one-button operation.
    Regards,
    Barry

  • How can i make a Web application with listboxes as the column value

    Hi,
    I have two tables,one is employeees the other is devices.(Devices is the table for department notebooks).I want to implement an applicatiion for employees in order for them to book department laptops,so everyone will know which devices are in use and book the vacant notebooks.I want to make a view,such that it has a names column with static employee names and a devices column with list boxes for every employees such that they can select pre-registered notebook labels.
    Thanks for your help.
    Best regards,
    Edited by: ebaris on 13.Eki.2008 12:50

    Hi,hello, excuse the delay, the way is the following, I assume you have Application Express.
    In any page of your application click on List of Values.
    Click-on to create.
    Name-list: LOV_NAME.
    Select-type dynamics.
    With the generator creates the SQL queries.
    Click on creating Values list.
    Select the item you want to convert into a selection list (ComboBox).
    In the Show-like property, click on the Selection List.
    Click on the link LOV, select the list of values created.
    Apply changes.
    Roberto.

  • Blank tab position: How can I make new (CTRL+T) tabs open on the left instead of far right?

    When I open a new tab (new, blank tab, from a link), it opens on the far right of the tab bar. This doesn't work for me because when I open a new tab, I use it immediately, so I would like it to be appear adjacent to the tab I'm currently using. I've scoured support and forums without finding a way to change the position of new tabs.
    NOTE: When I say "new tab," I am mean NEW tabs - the kind that contain the new tab page, created using CTRL+T or File->New Tab not tabs opened from links. I am emphasizing this point because I have found plenty of questions and answers about how to make links opened in a new tab open on the far right or next to the current tab by changing the value in browser.tabs.insertRelatedAfterCurrent in about:config.

    The [https://addons.mozilla.org/en-us/firefox/addon/tab-mix-plus/ Tab Mix Plus] extension appears to have this feature, pictured in the screen shot here: http://tmp.garyr.net/help/#Events_-_New_Tabs

Maybe you are looking for

  • Finish date deleted automatically

    If I delete a resource from a taks that is marked as finish, Project automatically (sometimes) marks the task as unfinished. Is there any way to keep Project from trying to be too clever? In most cases there was minimal or no work needed, or done by

  • HT204053 What if I share the iPad with another user?

    How does iCloud work on the iPad if you share it with another user with their own account?

  • Getting two selection screen in one report

    Hello Friends, I am Making report, In my report on first screen i have given two pushbutton, like this : SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-001. PARAMETERS : p1_but RADIOBUTTON GROUP g1,                          p2_but RADIOBUTT

  • Installing Plug-ins LR 2

    I have not been able to successfully install plug-ins. I have tried four different plug-ins from the plug-in web site. In each case the file downloads and extracts successfully but when I use the add button on the plug-in manager screen I get the fol

  • Build/call Query URL with selections using JavaScript???

    I have created a web query to list specific materials and each row has a checkbox for the user to select which materials they would like to work with.  Once they push the "Submit" button I have collected the materials they selected into a Javascript