Need help with display of the container / States

Greetings!

I try to use States to change the content of a canvas that is the second of two within a browser tab. Buttons trigger functions to change the State and replace the selectedIndex property of the browser the second tab.

Functions work very well if you first switch to the second tab. If you click the buttons before watching the second tab, it explodes. Here is a link to the app: http://test.arsandbox.com/player.cfm any idea would be appreciated!

Code:
<? XML version = "1.0" encoding = "utf-8"? >
"" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' creationComplete = "initApp (); ">
< mx:Script > <! [CDATA]
private function initApp (): void {}

}

private function displayDirectory (): void {}
switchTab();
currentState = "stateDirectory";

}

private void displayWriter(selectedWriter:String):void {}
currentState = "stateWriter";
switchTab();
}

private void displaySong(selectedSong:String):void {}
currentState = "stateSong";
switchTab();
}

private function switchTab (): void {}
ContentTabs.selectedIndex = 1;
}

[]] > < / mx:Script >

< mx: states >
< name mx: State = "stateDirectory" >
< mx:SetProperty target = "{directoryBox}" name = 'visible' value = 'true' / >
< mx:SetProperty target = "{writerBox}" name = 'visible' value = "false" / >
< mx:SetProperty target = "{songBox}" name = 'visible' value = "false" / >
< / mx: State >
< name mx: State = "stateWriter" >
< mx:SetProperty target = "{directoryBox}" name = 'visible' value = "false" / >
< mx:SetProperty target = "{writerBox}" name = 'visible' value = 'true' / >
< mx:SetProperty target = "{songBox}" name = 'visible' value = "false" / >
< / mx: State >
< name mx: State = "stateSong" >
< mx:SetProperty target = "{directoryBox}" name = 'visible' value = "false" / >
< mx:SetProperty target = "{writerBox}" name = 'visible' value = "false" / >
< mx:SetProperty target = "{songBox}" name = 'visible' value = 'true' / >
< / mx: State >
< / mx: states >

< mx:Panel id = "Main" width = "100%" height = "100%" layout = "horizontal" title = "Example" horizontalAlign = "center" verticalAlign = "middle" backgroundColor = "0xB3C0C6" >
< mx:DividedBox direction = "horizontal" width = "100%" height = "100%" >
< mx:VBox width = "250" height = "100%" backgroundColor = "#ffffff" >
< mx:Button label = "Directory" click = "displayDirectory (); "/ >
< mx:Button label = "Writer" click = "displayWriter('1'); "/ >
< mx:Button label = "Song" click = "displaySong('1'); "/ >
< / mx:VBox >
< mx:TabNavigator id = "ContentTabs" width = "100%" height = "100%" visible = "true" >
< mx:Canvas label = "Homepage" width = "100%" height = "100 percent" horizontalScrollPolicy = "off" >

< / mx:Canvas >
< mx:Canvas label = "Writers" width = "100%" height = "100%" horizontalScrollPolicy = "off" >
< mx:VBox id = "directoryBox" width = "100%" height = "100%" visible = "true" top = "0" left = "0" >
< mx:Label text = "Directory box" / >
< / mx:VBox >
< mx:VBox id = "writerBox" width = "100%" height = "100%" visible = "false" top = "0" left = "0" >
< mx:Label text = "Writer Box" / >
< / mx:VBox >
< mx:VBox id = "songBox" width = "100%" height = "100%" visible = "false" top = "0" left = "0" >
< mx:Label text = 'Song box' / >
< / mx:VBox >
< / mx:Canvas >
< / mx:TabNavigator >
< / mx:DividedBox >
< / mx:Panel >
< / mx:Application >

The items presented in the second tab are not really created or instantiated until they are first read. It is a performance setting built in Flex. You can however get around the setting and force all the contents of the tab to render immediately when the tab navigator is created. To do this, you set the creationPolicy on the TabNavigator and set the value to 'all '. Beware, this is going to hurt performance if the browser tab has a lot of big kids.

Tags: Flex

Similar Questions

  • Need help with auto-fill the fields

    Hello

    I need help with a form that has multiple pages.  I have some areas I are duplicated in my document.  How I got these fields auto fill throughout the form/paper? For example, I'm going to fname lname, address, telephone, etc... How can I get these fields automatically on the other pages of the form?  Is this possible?  Any suggestions are welcome.

    Thank you in advance.

    If it's just a fill operation then make sure the fields have the same name. Then set the binding to the global level and all the fields with the same name will get the same value.

    Paul

  • Need help with activation of the CC training plan

    Hey, I made a purchase order for a comprehensive cloud was created for students and teachers two weeks ago.

    1.5 week ago , made the payment but I do not have any new informations and I still can not use any application.

    Track version was released. CC cannont find my subsrciption associated with my Adobe ID

    Last email that I received said I'll be getting another within 24 hours, still no response.

    Order No. AD001694082EDPL

    Support information can not help with this problem.

    Customer support Adobe please help!

    Hi gregnawrat,

    My apologies for the delay in response.

    I just checked your account and found that you have tried to make the payment by Paypal, Paypal however rejected the transaction.

    Please check with them and place a new order, this order is not yet confirmed.

    I hope this helps!

  • Need help with XML, view the data by scanning/click

    Hello.

    I am creating a moibile app that displays XML data. It is a telephone directory. I want the data to change when we slide. I can get the data very well. I can get it to display fine. I do not see the correct image first, however. I think it's a problem with my imagenum variable.

    Then, I want to change what is displayed when the user clicks/slide on the screen. How do I do that?

    Stop();
    var nameArray:Array = new Array();
    var countryArray:Array = new Array();
    var portraitArray:Array = new Array();
    var flagArray:Array = new Array();
    var jobtitleArray:Array = new Array();

    var imageNum:Number = 0;
    var totalImages:Number;

    Loading XML
    var XMLURLLoader:URLLoader = new URLLoader();
    XMLURLLoader.load (new URLRequest ("recbook.xml"));


    XMLURLLoader.addEventListener (Event.COMPLETE, processXML);


    function processXML(event:Event):void {}

    var theXMLData:XML = new XML (XMLURLLoader.data);
    totalImages = theXMLData.name.length ();
    for (var i: Number = 0; i < totalImages; i ++) {}
    Data in the tables xml push
    nameArray.push (theXMLData.name [i]);
    countryArray.push (theXMLData.country [i]);
    portraitArray.push (theXMLData.portrait [i]);
    flagArray.push (theXMLData.flag [i]);
    jobtitleArray.push (theXMLData.jobtitle [i]);
    }
    the data is processed

    loadData();
    }

    function loadData (): void {}

    var thisPortrait:String = portraitArray [imageNum];
    var thisCountry:String = countryArray [imageNum];
    var thisName:String = NomTableau [imageNum];
    var thisJobtitle:String = jobtitleArray [imageNum];
    var thisFlag:String = flagArray [imageNum];

    var dataLoader:Loader = new Loader();
    dataLoader.load (new URLRequest (portraitArray [imageNum]));
    dataLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, dataLoaded);
    function dataLoaded(event:Event):void {}

    I want to start with 0 (img1.jpg) image and scroll with a click of the mouse (finger on iOS kick)
    stage.addEventListener (MouseEvent.CLICK, loadMainImage1);
    function loadMainImage1(event:MouseEvent):void {}
    portraitUILoader.source = thisPortrait;
    flagUILoader.source = thisFlag;
    selectedName.text = thisName;
    selectedCountry.text = thisCountry;
    selectedJobtitle.text = thisJobtitle;
    }
    }

    Add to imageNum (1);
    imageNum ++;
    If (imageNum < totalImages) {//stopping to img2
    trace ("imageNum" + imageNum);
    trace ("name of the image (tomyline)" + tomyline "); losing picture 4 somewhere

    loadData();
    }

    trace ("Total Images" + totalImages);

    }

    Click here to pass the screenI House would this gap. do not know how.
    homeScreen_mc.addEventListener (MouseEvent.CLICK, goNext);

    function goNext(event:MouseEvent):void
    {
    nextFrame();
    }


    * / Here is the result:
    imageNum 1
    image name (tomyline) images/img1.jpg
    imageNum 2
    image name (tomyline) images/img2.jpg
    imageNum 3
    image name (tomyline) images/img3.jpg
    Total of 4 Images
    Total of 4 Images
    Total of 4 Images
    Total of 4 Images

    It starts on frame 1 display (the second in the series img2.jpg) * /.

    If (imageNum< totalimages)="" {//stopping="" at="">
    trace ("imageNum" + imageNum);
    trace ("name of the image (tomyline)" + tomyline "); losing picture 4 somewhere
    imageNum ++;
    If (imageNum! = totalImages) loadData();
    }

  • Need help with italics for the ePub and InDesign CS5

    Can anyone one help out me. I can't find the answer to this and I know it must be simple, I just lack.

    I create an ePub from InDesign CS5. All I want to do is have the italics that are displayed in the text box in InDesign, see the in the epub file.

    I prefer not to say what I did (I think I've tried everything, but obviously I got them all wrong, so no point listing them) and I hope that someone can make a simple guide, step by step how to make italics appear in the ePub file.

    Sorry if this question is under everyone, it's really annoying that I can't figure this on my own.

    Yes unfortunately sometimes does. ID is really a ship in order to get the content in epub format.

    You must go through your CSS for every job.

    Addition of

    serif; or without serifs; After each occorence a police.

    also, most in CS5 importanley make sure you have font name in the top of the CSS file "" round then, otherwise it appears correctly in the Adobe Digital Editions software, actually to check the rest of the code in this a well for example:

    {@font-face}
    Police-family: Minion Pro;
    make-style: normal;
    make-weight: normal;
    SRC:URL("fonts/MinionPro-regular.OTF");
    }

    I really only the minimum required in ID and do the rest in dreamweaver

  • Need help with calibration of the battery

    I have a Vn7 - 591 g and it's basically old 1.

    My problem is my laptop stop without noticing low battery notification and without any warning since I updated my windows 10 November pro build.

    First, it would close down to the level of 15% without indication battery and then I looked at here and there and find the calibration procedure as I tried battery as the load calibration procedures to 100% in stop and go in safe mode and let it drain and recharge again, after the fact that now he stops at the level of battery by 30% or 25% without notice or warning.

    I tried battery reset thing pinhole also as suggested somwhere in this discussion.

    One thing I noticed when I put my laptop power in High-Performance option, low battery, that it just goes right into hibernation but when I plug in the AC adapter it shows battery 0% or 1%, and perception.

    so is it problem in my battery or Power Options or the problem is another?

    Any help will be appreciate and please answer quickly because I am sad with this problem. It is a one year old laptop around, I bought new.

    Hello

    Well, the wear level is quite high for a laptop one year old. Do you often use on the farm?

    It is interesting that hwmonitor reads the same amount as that of windows, stop so suddenly, because of the battery not calibrated... I don't think so. It may be the case even if the PCI that controls the battery charging does not correctly read the State. That would mean that you would need to change the battery (the peak is on the battery).

    You can try to run battery Eater: http://www.softpedia.com/get/System/OS-Enhancements/Battery-Eater-Pro.shtml

    This software will monitor your battery while meeting and then make a graph of it after a reboot. I don't remember if trace the graph based on the percentage, or the actual capacity of the battery.

    You can read more about what the software did here:

    http://Lifehacker.com/5657275/battery-Eater-benchmarks-your-batterys-capacity-so-you-know-what-to-ex...

    Also, would probably be a good idea to see if what happens on another operating system as well. For example, you can try to make a USB boot Linux, ubuntu and check if your laptop suddenly stops at the same percentage values. If it is not the case, which is probably something just with windows.

  • Need help with information about the file

    IM and only know basic computer skills. Im having a problem with obtaining correct file information.  I only use MS MediaPlayer.  I have amassed a decent library.  Over the years, I've downloaded music from CD, limewire and what is called a torrent.  My daughter would be to get an education, but she managed.  Songs from a CD are not a problem, but other sources, the news of music might be incorrect or missing.  On my hard drive and the Member for information often is listed as unknown or various artist.  I edited the info on the Congressman, but he will not put these songs in order. Always the groups to the title of an album.  I can't change the information in the properties.  I think I would need to correct the source info in my library, but I don't know how. Any help would be greatly appreciated my OCD insists that my library be in order. Thank you!

    Liner,

    Musician is working hard and deserves to be paid for their work like everyone else, and unless they offer their recordings for free, whenever you download a torrent or P2P service like Limewire, you're basically stealing their intellectual property and taking food off of their plate.

    Most of the people don't post on a Microsoft Forum, ask the help of cataloguing of media that were obtained from these types of sources. In addition, the sources you cite could also distribute unwanted hitchikers (virus, malicious software) as well as the music.

    If you buy the CD you got with torrents and Limewire, you would probably best chance to get the metadata. And it would be "the right thing to do."

  • Need help with regard to the audit

    Hi all
    Im trying to audit the actions of users who access the database.i.e I get requests from users. In the column sqltext from sys.aud$ table im get entries. But the problem is im not getting queries like

    Select employee_id in system.employee; (IE queries containing specific attributes to select)

    but it is audit queries like

    Select * from system.employee;
    Select count (*) in the system.employee;
    Select count (*) in the system.employee, system.department;

    Please help me with this...
    Thanx

    Hello

    As Justin says: maybe you first want to work on the correct schema.
    SYS and SYSTEM schema is not "playgrounds".
    It is strongly deprecated by Oracle to create or modify objects in the schema these.

    Published by: hoek on November 4, 2009 16:34 typo

  • Hello, need help with re install the ambient light.

    I had installed the ambient light in my laptop that has hardware problems now (without monitor) and so I uninstalled it and now trying to install in my new laptop. But could not understand how do. Could someone help me with it please?

    Refer to the link below:

    Lightroom: 5.5 (win),

    Concerning

    Varun

  • Need help with questions from the media

    OK most of my attempts were successful. BUT I have a problem.

    I would like to that column 1 (Site links and column 3 (exclusive items) to hide when the page is located at max-width 500 pixels.) I don't know how to do a CSS sheet remove HTML coding, that's why I came here to ask. Important note: coding for delete are highlighted in red.

    error 6.PNG

    Footer HTML codes:

    <>footer

    < h2 class = "hidden" > our footer < / h2 >

    < id = 'copyright' section >

    < h3 class = "hidden" > Copyright notice < / h3 >

    < div class = 'wrapper' >

    "" "< div class 'social' = > < a href ="index.html"> < img src =" img/G.png' alt = 'G' width = '25' / > < /a > < a href = "index.html" > < img src = "img/U.png" alt = "U" width = "25" / > < /a > < a href = "index.html" > < img src = "img/I.png' alt = 'I' width = '25' / > < /a > < a href =" index.html "> < img src =" img/D.png "alt ="D"width ="25"/ > < /a > < a href = "index.html" > < img src = "img/E.png" alt = "E" width = "25" / > < / > < has a href = "index.html" > < img src = "img/S.png" alt = "S" width = "25" / > < /a > < / div > "

    & copy; Copyright 2014 Expertpcguides.com. All rights reserved. < / div >

    < / section >

    < section class = 'wrapper' >

    < h3 class = "hidden" > the footer content < / h3 >

    < item class "column" = >

    < H4 > links < / h4 >

    < div id = 'class 2' >

    < p > < a href = "web - contributors.html ' class ="style10"> developers/contributors < /a > < /p >

    < / div >

    < div id = 'class 2' >

    < p > < a href = "create-a - page.html" class = "style10" > create a page < /a > < /p >

    < / div >

    < div id = 'class 2' >

    < p > < a href = 'point - system.html' class = "style10" > system of rewards < /a > < /p >

    < / div >

    < div id = 'class 2' >

    < p > < a href = 'privacy' class = "style10" > privacy < /a > < /p >

    < / div >

    < / item >

    < section class = "column midlist2" >

    < h4 class = "style4" > follow us < / h4 >

    < ul class = "style4" >

    < li >

    < div id = 'class 2' >

    " < p > < a href =" javascript:void (0) "> < img src =" img/Facebook logo.png"alt ="Image of Twitter"width ="30"height ="33"/ > < /a > < a href =" https://www.Facebook.com/expertpcguides "class ="style18"> Facebook < /a > < /p > "

    < / div > < /li >

    < class li 'style10' = >

    < div id = 'class 2' >

    " < p > < a href =" javascript:void (0) "> < img src = ' img/Twitter thanks' alt ="Image of Twitter"width ="30"height ="33"/ > < /a > < a href =" https://Twitter.com/ExpertPcGuides "class ="style18"> Twitter < /a > < /p > "

    < / div >

    < /li >

    < class li 'style10' = >

    < div id = "class3" >

    < p > < a href = "javascript:void (0)" > < img src = "" img / Google + thanks "alt ="Google + Image"width ="30"height ="33"" / > < /a > < a href = " " https://plus.Google.com/115474035983654843441 "class ="style18"> Google more < /a > < /p > "

    < / div >

    < /li >

    < class li 'style10' = >

    < div id = 'class 4' >

    < p > < a href = "javascript:void (0)" > < img src = "img/Pininterest Logo.png" alt = "Google + Image" width = "30" height = "32" "/ > < /a > < a href =" " http://www.Pinterest.com/expertpcguides/ "class ="style18"> Pininterest < /a > < /p > "

    < / div >

    < /li >

    < /ul >

    < / item >

    < section class = "column rightlist" >

    < h4 class = "style4" > interested in exclusive items? < / h4 >

    < div id = 'class 2' >

    < p > < a href = "login.html" class = "style10" > all you need to do is connect / register < /a > < /p > "

    < / div >

    < / item >

    < / section >

    < section class = 'wrapper' > < / section >

    < / footer >

    Snapshot of the coding CSS stylesheet:

    @media (max-width: 500px)

    #four_columns

    {

    Width: 500px;

    display: none;

    }

    Add a class of "skin" on the Site links

    tag as below:

    Site links

    You already have a class of "rightlist" for the person concerned in exclusive items? tag

    so we'll use it.

    Interested in exclusive items?

    Add this application to your css styles:

  • Need help with SQL for the following logic.

    I have a table with 3 columns and the following data:
    DATE NAME S_NO
    1 ABC1 JANUARY 1, 2001
    1 ABC2 JANUARY 10, 2001
    1 ABC3
    1 ABC4
    ABC1 2 1 DECEMBER 2010
    ABC2 2
    2 ABC3 DECEMBER 10, 2010
    2 ABC4 DECEMBER 5, 2010
    3 XYZ1 FEBRUARY 1, 2001
    3 XYZ2 FEBRUARY 2, 2001

    I need to retrieve the value of NAME for each S_NO corresponding to the maximum DATE. In the above example, it will be:
    1 ABC2
    2 ABC3
    3 XYZ2
    /* Formatted on 9/10/2012 2:50:13 PM (QP5 v5.139.911.3011) */
    WITH t AS (SELECT 1 S_NO, 'ABC1' NAME, '1-JAN-2001' dt FROM DUAL
               UNION ALL
               SELECT 1, 'ABC2', ' 10-JAN-2001' FROM DUAL
               UNION ALL
               SELECT 1, 'ABC3', NULL FROM DUAL
               UNION ALL
               SELECT 1, 'ABC4', NULL FROM DUAL
               UNION ALL
               SELECT 2, 'ABC1', '1-DEC-2010' FROM DUAL
               UNION ALL
               SELECT 2, 'ABC2', NULL FROM DUAL
               UNION ALL
               SELECT 2, 'ABC3', '10-DEC-2010' FROM DUAL
               UNION ALL
               SELECT 2, 'ABC4', '5-DEC-2010' FROM DUAL
               UNION ALL
               SELECT 3, 'XYZ1', '1-FEB-2001' FROM DUAL
               UNION ALL
               SELECT 3, 'XYZ2', '2-FEB-2001' FROM DUAL)
    SELECT *
      FROM (SELECT S_NO,
                   name,
                   RANK ()
                   OVER (PARTITION BY s_no
                         ORDER BY TO_DATE (dt, 'dd-mon-yyyy') DESC)
                      rk
              FROM t
             WHERE dt IS NOT NULL)
     WHERE 1 = RK
    
  • Need help with commands from the console.

    Guys,

    I'm discovering nuer console which is attached to a particular hba.  I have connected to the console and you have run the following command

    cat/proc/vmware/scsi/vmhba1

    It returns a message saying something like "this is a directory" now all I have is a blank screen with a blinking cursor and I can't go back to the root.  Can someone help me to pease keep in mind Im these commands do not at all know.

    Thank you.

    ... try with CTRL + C or ": q!"

    CAD commands reference

    Bye bye

  • Need help with treatment of the raw image data

    I found that I can access the input raw through params [0]-> u.ld image and the output image I can write via the output in the rendering parameter works. I get most of the information required by the data, the width, the height and rowbytes members of these structures, but I can't understand how to determine the format or bit per pixel images. I would like the process, the data of params [0]-> u.ld.data and write directly to the output-> data, but I need to know the pixel format to correctly interpret image data.

    How can I get the number of bits of the output images? Is there a way to make my plugin support only 128 bits per pixel floatin' fist data?

    the best way to tell the depth of the incoming world is:

    extra-> input-> bitdepth;

    It gives all of the following values: 8, 16, 32.

    the 'extra' is one of the parameters passed to your plugin in the smart_render call, and this is true for the worlds of entry and exit.

    the second way is a little heavier, but you can check everyone with it:

    PF_WorldSuite2 * wsP = NULL;

    ERR (suites. Pica()-> AcquireSuite (kPFWorldSuite, kPFWorldSuiteVersion2, (const void *) &wsP));)

    ERR (wsP-> PF_GetPixelFormat (inputP, pixelFormat));

    ERR (suites. Pica()-> ReleaseSuite (kPFWorldSuite, kPFWorldSuiteVersion2));

    the type of pixel AE uses always is ARGB.

  • I need help with Java Script if/then statement

    I have absolutily no experience writing Java Script any help at all would be appreciated.

    I am working on a form in which I need a box for the person filling out the form click if they are a company be exempt from taxes. Well, obviously when they check the box I need field sales tax to change $ 0.00 total cost will only be calculated on the price of the items.

    Currently I use steps in the field of calculation for my Salestax.

    var k = this.getField ("SubTotal");

    K.value = Event.Value * 0.0825;

    Yet once, all possible assistance would be greatly appreciated.

    Tiffany

    Let's say the name of the box is "IsTaxExempt". Then you can use this code as the field of Salestax calcluation:

    If (this.getField("IsTaxExempt").value == "Off") {}

    var k = this.getField ("SubTotal");

    K.value = Event.Value * 0.0825;

    } else event.value = 0;

  • Need help with refreshment/item of session state

    I have an application that allows users to record information for productivity for our employees. There are different types of work they have to do this, the form takes the form of header/multiple / detail and use collections to manage the entire treatment. In the header are the fields that record the time of work. If it is stored in the database as a single field for start of shift and one field for end of quarter, inside it is divided into 9 areas: 3 day, month, year and three more each for departure times, start end of minutes, hours, hours, minutes from the end and AM/PM, which I then concatenate to get to store dates. The update part works fine. When I go in to see each other, I use a SQL query to retrieve only that article at that time.

    The problem I have is that if the user pulls several sheets to change, it keeps these values of time card earlier score and because of the way that the collections update, I can't seem to get each session state setting point (only when Null/always from Source) to achieve the desired result. If I use the option only when Null, I retain the values of the previous score card. If I use the always Source, the user cannot update the time entry.

    Can anyone suggest a solution? I tried a process of session state that fires upon entry to clear these items and ran into the same problem that you use the option always the Source. There must be a way to handle this, but it has left me speechless and my users are calling for a fix.

    Initial loading of the page
    A. before the header process fills jobs and other collection (not the header information), which comes directly from the DB table.
    B. data displays for header (from table) and two sections of details (collections)
    The user presses Submit to save changes
    1. on submit before treatment: updates of work and other collections (to keep the changes in case of validation failure)
    2. check validation codes of safe work are valid, the date is valid, used is valid, etc.
    3. on submit after treatment: writing the changes in the header of the entry form, writes the changes to employment and others from collections of paintings appropriate DB

    I have also two processes on submit after treatment to add white lines - one for each collection. They are triggered through buttons.

    Blair:

    Creating a process "before head" to fill these fields make a difference? The sql could be something like

    select TO_CHAR(TC_START_TIME,'HH') into :P1115_TIME_IN_HH from TC where TC_ID = :P1115_TC_ID;
    

    You must set the "Source" back to "Only when the current value in the session is null" and the «Source Type"to «Assignment (...)» static"and clear the"Source value or expression.

    CITY

Maybe you are looking for