Make string of MCs invisible/visible...

I have a map of states state when a particular state is clicked on, the fla centers on and zooms to that state.  When you click on a state a unique ID is pulled from an xml.  Using this ID, I can then call all the counties that are part of this state through the county's xml which is also loaded on my stage.
For example if I click on Arizona, it zooms and I get a trace of all the instance names of the counties within Arizona.
//call all instance names of Arizona counties
cldcnfips=(cntXml.Records.Record.(STATE_FIPS==cldstfips).afips.children());
trace(cldcnfips);
//The trace looks like this
a04001a04003a04005a04007a04009a04011a04012a04013a04015a04017a04019a04021a04023a04025a04027
//where "a" is the first character in each county's instance name
One of my first lines of code makes my counties invisible.
//dont show the counties yet
this.cnt.all_cnt.visible=false;
What I'd like to do is make just the called state's counties visible on zoom.
Since I've created a var which is a string of the counties I am interested in, can I specify that just those counties become visible?  I've tried this code but it does not work
this.cnt.all_cnt[cldcnfips].visible=true
I am worried that the string I am pulling as a reference for those counties (cldcnfips) might not work for calling those instances.
Does anyone have any suggestions or insights?

The only hitch is making all the states visible when i tween over to a new state...
For example.. This code is the final step in my tween.. It scales the parent mc and makes the state invisible..  It is rerun everytime a select a new state.
function zoomhide(){
          cnt.scaleX=scprop;
          cnt.scaleY=scprop;
          cnt.all_sts[calledfips].visible=false;
What code can I use to make all state visible so then when i rerun this function, only the selected state is invisible..
I tried placing
cnt.all_sts.visible=true;
Before zoomhide runs but this does not work..  If you'd like to see the whole function that is powering the zoom, tween and scale, here it is..
function ststwn(e:MouseEvent):void{
     //I tried using this to make everything visible before making the selected state invisible
        this.cnt.all_sts.visible=true;
     var calledfips:String;
     calledfips=stsXml.Records.Record.afips[e.currentTarget.ivar];     
     //create vars for x,y cordinates of clicked county (child)
     var calledx:Number;
     calledx=(cnt.all_sts[calledfips].x);
     var calledy:Number;
     calledy=(cnt.all_sts[calledfips].y);
     var goto:Point=new Point(0-calledx,0-calledy);
     TweenLite.to(cnt.all_sts,.5,{x:goto.x,y:goto.y});
     TweenLite.to(cnt.all_cnt,.5,{x:goto.x,y:goto.y});
     TweenLite.to(cnt.stsout,.5,{x:goto.x,y:goto.y,onComplete:twnn});
     var wprop:Number;
     wprop=stage.stageWidth/cnt.all_sts[calledfips].width;
     var hprop:Number;
     hprop=stage.stageHeight/cnt.all_sts[calledfips].height;
     var cldstfips:Number;
     cldstfips=(stsXml.Records.Record.(afips==calledfips).STATE_FIPS);
     var     cldcnfips;
     cldcnfips=(cntXml.Records.Record.(STATE_FIPS==cldstfips).afips.children());
     cnt.all_sts[calledfips].visible=true;
     function cnnn(){
               cnt.all_sts[calledfips].visible=false;
               if (wprop>hprop){
               var scprop:Number=hprop*.85;
                    } else {
                    var scprop:Number=wprop*.85;
     function twnn(){
          cnt.scaleX=scprop;
          cnt.scaleY=scprop;
          cnt.all_sts[calledfips].visible=false;

Similar Messages

  • How do you make columns invisible/visible or hidden with checkbox?

    Hi , i'm trying to make a column in a table either visible or invisible when i click a checkbox or button.
    i have a single row table with mutiple columns of text objects within, i have set the "repeat data for each row item" to min 4, so i have four diplayed on page.
    i have set the checkbox with the following script but it only makes the first row of "Received" visible when i click on the checkbox. and not the other
    3 "Received" textobjects.
    example:
    form1.purchaseOrder.ProductHeader.Receivedchkbox::click - (JavaScript, client)
    if (this.rawValue == "1") {       
        form1.purchaseOrder.Productdetails.detail.received.presence = "visible";
        form1.purchaseOrder.Productdetails.detailHeader.StaticReceived.presence = "visible";
    else
        form1.purchaseOrder.Productdetails.detail.received.presence = "invisible";
        form1.purchaseOrder.Productdetails.detailHeader.StaticReceived.presence = "invisible"
    So what i'm trying to acheive is for the form to make the "Received" textobject "invisible or hidden" at default.
    Then when the form filler clicks the checkbox it become visible and vice versa.
    So How do i apply a script like this to hide all 4 "Received" instances and  also the new ones i add by addinstance script?
    I have attached the form, if someone could give me some help in working it out?
    Thanks!!!

    Hi,
    It does help to see the form!
    Basically you need to loop through all of the instances of the detail row and change the presence of the received object individually.
    First the script would calculate the number of rows:
    var vRows = Productdetails._detail.count;
    The use of _ before the repeating detail is shorthand for instanceManager.
    Then the if statement would change slightly, with the insertion of a for statement which works through all four rows.
    if (Receivedchkbox.rawValue == true) {     
         form1.purchaseOrder.Productdetails.detailHeader.StaticReceived.presence = "visible";
         for(var i=0; i<vRows; i++) {
              xfa.resolveNode("form1.purchaseOrder.Productdetails.detail[" + i + "]").receivedSubform.presence = "visible";
    else ...
    Form attached.
    Good luck,
    Niall

  • How to make IIS on Windows 7 visible from outside my home LAN

    Guidance Needed: How to make IIS on Windows 7 visible from outside my home LAN.
    I am building a learning/demo ASP.NET website on this Win7 PC, using VS2008. 
    I would like to share the website with a client/friend, so I need my local IIS to be visible from outside the home LAN.
    This PC is behind a Netgear WGR614 router, which has a static IP address assigned by my ISP. 
    I have set up port forwarding on the router; port 80 is HTTP.
    I can see the website as http://localhost/ and also as http://192.168.0.2 from other PCs inside the LAN.
    Ping works from outside, but not http.   What am I missing?

    Hi,
    Since this question is related to IIS and we have specific support for IIS related issues or questions, it is also recommended that you go to IIS Forum for help.
    Hope this helps. Thanks.
    Nicholas Li - MSFT

  • How can I make the status bar always visible in safari?

    How can I make the status bar always visible in safari? Even when I go to "View" and then select "show status bar," the status bar still disappears unless my cursor is hovering over it. I want to be able to see the time, battery life etc. while surfing the web in safari!

    When Safari is in FullScreen mode, menu bar will be hidden.
    Safari window to fit the screen?
    Move the mouse pointer to the bottom right corner of the Safari window.
    Double arrows will appear. Drag it to resize the window to fit the screen.

  • How to make a block as invisible at SSCRN Output ?

    Hello All,
            I have 3 Blocks on my SSCRN and  I have 2 Radio Buttons.
    I want to make 2 Blocks as Invisible when one of the radio button is selected.
    Can any one tell me how to do so ?
    Regards,
    Deepu.K

    Hi,
    See the 2 sample codes for doing this and do accordingly
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: pa_file TYPE rlgrap-filename MODIF ID abc,
    pa_lifnr TYPE lfa1-lifnr MODIF ID abc,
    pa_vkorg TYPE vbak-vkorg MODIF ID abc.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    PARAMETERS: pa_kunnr TYPE vbak-kunnr MODIF ID def.
    SELECT-OPTIONS: s_lifnr FOR gs_lfa1-lifnr MODIF ID def,
    s_date FOR gs_lfa1-erdat MODIF ID def,
    s_augru FOR gs_vbak-augru MODIF ID def,
    s_vbeln FOR gs_vbak-vbeln MODIF ID def.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pa_upd RADIOBUTTON GROUP g1 USER-COMMAND uc01 DEFAULT 'X'."#EC *
    SELECTION-SCREEN COMMENT 3(60) text-004 FOR FIELD pa_upd.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pa_rep RADIOBUTTON GROUP g1 ."#EC *
    SELECTION-SCREEN COMMENT 3(60) text-005 FOR FIELD pa_rep.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b3.
    IF pa_rep EQ gc_x.
    LOOP AT SCREEN.
    IF screen-group1 = gc_abc.
    screen-input = gc_zero_num.
    ELSEIF screen-group1 = gc_def.
    screen-active = gc_one_num.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    ELSEIF pa_upd EQ gc_x.
    *For Reprocessing
    LOOP AT SCREEN.
    IF screen-group1 = gc_def.
    screen-input = gc_zero_num.
    ELSEIF screen-group1 = gc_abc.
    screen-active = gc_one_num.
    ENDIF.
    MODIFY SCREEN.
    CLEAR pa_upd.
    ENDLOOP.
    ENDIF.
    REPORT zrich_001.
    PARAMETERS: p_rad1 RADIOBUTTON GROUP grp1 DEFAULT 'X'
                            user-command chk,
                p_rad2 RADIOBUTTON GROUP grp1.
    SELECT-OPTIONS: s_datum1 FOR sy-datum MODIF ID d1,
                    s_datum2 FOR sy-datum MODIF ID d2.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF p_rad1 = 'X'
          AND screen-group1 = 'D2'.
          screen-active = '0'.
        ENDIF.
        IF p_rad2 = 'X'
         AND screen-group1 = 'D1'.
          screen-active = '0'.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    reward if sueful
    regards,
    ANJI

  • How to make only some open Invoices visible in Incoming Payments Wizard ?

    I want only to make only some Open Invoices visible in Incoming Payment. Can i use series (Document Numbering) ? Lets say I have SBO in 2 cities and want to user of city A only se open invoices of city A in incoming Payments , and user of city B to see only invoices created in city B . Any ideas ?

    You may use Project code to reach your goal.
    Thanks,
    Gordon

  • How to make material number field invisible in MM60?

    Dear expert,
    Is there any way to make material number field invisible in MM60 for one user?
    Best regards

    Hello,
    You may create a transaction variant for MM60 and hide Material code using SHD0. Then create Variant group and assign users to this group.
    Thanks,
    Venu

  • How to programmatically make pages of a book visible or invisible

    My portal page has three placeholders: Left, center and Right.
    In the right there are simple static pages giving some information and news that
    are irrelevant
    to the whole quesry so dont bother about them.
    In the center placeholder, I have put a book which has four pages. The labels
    of these pages are
    : pageA,pageB,pageC and pageD respectivbely.
    In each of these pages there are simple portlets which just display a different
    static msg so
    that i know that the different pages are displayed
    In the left placeholder, I have put a portlet which consists of a simple pageFlow.
    The page flow
    consists of a sinlge jsp called index.jsp. Index.jsp has four anchor tags, which
    display which
    pagelabel and also pass the page label as a paramter within those tags. For e.g
    this is one of
    the anchor tags:
    <netui:anchor action="showPage">PAge A
    <netui:parameter name="pageName" value="pageA"></netui:parameter>
    </netui:anchor>
    Similarly, there are three other anchor tags. Now, clicking on this anchor tag,
    the function
    showPage of the controller is called. In showPage, I have written code to specifically
    show the
    particular page in the book present in the center placeholder.
    The code i have written is as follows:
    protected Forward showFunction()
    request = this.getRequest();
    String functionName = request.getParameter("pageName");
    //following line gets the context for the entire main page
    pageContext = PageBackingContext.getPageBackingContext(request);
    /following line gets the list of children contexts in the main page
    list = pageContext.getWindowBackingContexts();
    /following snippet get the book context of the book in the centerplaceholder.
    int size = list.size();
    for(int i=0; i<size; i++)
    if (list.get(i) instanceof BookBackingContext)
    bookContext = (BookBackingContext) list.get(i);
    //following line I get the context if the page i want to display
    pageContext = bookContext.getPageBackingContextByDefinitionLabel(functionName);
    //I set that page as the Active page
    pageContext.setActive(true);
         return new Forward ("success");
    But the code does not work!! The default page of the book which is display when
    the portal file
    is opened for the first time which ever link is clicked. I have been at this program
    for 5 hours straight but the thing just wont work. PLEASE HELP !!!

    To do it properly you need something like this:
    http://news.cnet.com/8301-11386_3-10232931-76.html
    Got $6000 to spare? Go for it!  
    http://search.sys-con.com/node/1162841

  • How to make a movie clip invisible depending on a value in another layer?

    I am trying to make an "achievements" page for my game, where if the user has a high score greater than 100, then the achievement can be unlocked. I tried using a code like this, but it didn't seem to work!
    function Check();
    if(endscreen_mc.highscore_txt > 100)
    medals.roachLock.visible = false;
    else if(endscreen_mc.highscore_txt < 100)
    medals.roachLock.visible = true;
    else if(endscreen_mc.visible == 100)
    medals.roachLock.visible = true;
    The high score value is saved inside a shared object. What's wrong with my code, and what can I do to fix it?

    I tried doing this, but it's still not working.. 
    function Check():void
    if(Number(endscreen_mc.highscore_txt.text) > 100)
    medals_mc.roachLock.visible = false;
    medals_mc.medal_mc.visible = true;
    else if(Number(endscreen_mc.highscore_txt.text) <= 100)
        medals.roachLock.visible = true;
    This is what's inside my endscreen layer
    function showresults():void
              Rchannel.stop();
       // display current score
       endscreen_mc.scoreR_txt.text = String(score);
       // calculate, display and save (if necessary) a new highscore
       var so:SharedObject = SharedObject.getLocal("alltimeHighScore");
       if (!so.data.score || score > so.data.score)
           endscreen_mc.highscore_txt.text = String(score);
           so.data.score = score;
           so.flush();
                 Check();
       else
           endscreen_mc.highscore_txt.text = String(so.data.score);
       if(so.data.score==score)
                        endscreen_mc.score_txt.text = String(score);
                        endscreen_mc.highscore_txt.text = String(score);

  • How can i make Labels on JSP invisible on demand

    Hi All,
    I need to make the Labels on JSP page invisible based the diffrent selctions on the page. So is this possible to do in Java Script at client side by calling on change function.
    Please post a small code if possible.
    Thanks in advance for the answer.

    Well javascript, HTML and CSS are part of JSP solutions, so why wouldn't those questions be answered here?
    The solution lies in either the "display" or "visibility" css properties of any html element.
    display: can be "block" or "none". When you set it to none the element basically disappears entirely from the page. It will not even use up space anymore. This can make other elements surrounding it move a little, depending on your page layout.
    visibility: "visible" or "hidden". When you hide an element it will vanish, but it will still use up space on the page, leaving an empty spot. This will keep other elements in their place.
    You can change either property using javascript:
    document.getElementById("yourelement").style.visibility = "hidden";or
    document.getElementById("yourelement").style.display = "none";

  • How to make a Tree Node invisible?

    Hi
    I have got a JTree where I have created a DefaultTreeModel and a DefaultTreeCellRenderer. The JTree is filled to data from data base. These nodes after are used to do querys to a data base. But when in tree's level 2 has got only a child, this node I want to set like not visible. because this node i need it do querys.
    I have found a thread to explain something:
    http://forum.java.sun.com/thread.jsp?forum=57&thread=126031
    a) A kind to do, it is so
    I make a new Class extends DefaultTreeCellRenderer, but it doesn't work, the code is here
    public class SegnalarNodoRender extends DefaultTreeCellRenderer {
      public SegnalarNodoRender() {
      public Component getTreeCellRendererComponent(JTree tree, Object value,
                                                    boolean sel, boolean expanded, boolean leaf,
                                                    int row, boolean hasFocus) {
               Component comp;
              DefaultMutableTreeNode nodo = (DefaultMutableTreeNode) value;
              DefaultMutableTreeNode padreNodo = (DefaultMutableTreeNode) nodo.getParent();
               if (leaf && sel)  {
                 return super.getTreeCellRendererComponent(tree,value,sel,
                                                           expanded,leaf,row,hasFocus);}
               else
                 if (!leaf && nodo.getLevel()==2 && padreNodo.getChildCount()==1 ) {
                 //Set not visible
                   this.setVisible(false);
                   return  super.getTreeCellRendererComponent(tree, value, false,
                                                             expanded, leaf, row, hasFocus);
                 else {
                   return super.getTreeCellRendererComponent(tree, value, false,
                                                             expanded, leaf, row, hasFocus);
    }b) the anoher kinds it explains how to make it. It is extended a class from DefaultTreeModel, But it is in this function the this class(botton), where I don't know how the node sets to invisible. Why NodoPadre hasn't any function to set invisible.
    public Object getChild(Object parent, int index) {
      // DefaultMutableTreeNode NodoPadre = (DefaultMutableTreeNode) parent;
      // TreeNode p;
      // p = NodoPadre.getParent();
       return parent;
    }I hope somebody can help me.
    thanks in advanced.

    Hi,
    I have the same problem and would realy like to know how to do this´, using ADF Faces 11G with the up to date JDeveloper.
    I've found some blog entries in the web showing how to do this with a POJO-based approach. They insert Data programmatically based on a view object's result set, reading all data and inserting the data to the POJO.
    However, I like to
    1) Drag-And-Drop the data-control (based on one master and one details - view object and a view link) to a page and add it as tree table
    2) Get the folder icon only displayed when there are children
    3) get the last child (=leaf) displayed without folder icon.
    To make this possible, we should somehow extend the TreeModel Class and override the function isContainer
    @Override
    public boolean isContainer() {
      if (getRowData() != null) {
         MyRowImpl value = (MyRowImpl) getRowData();
        if (value.getChildValues() != null &&
           value.getChildValues().size() > 0) {
          return true;
        return false;
    }Can somehow please give me a hint how to extend the tree model base class (What class?) and how to get the framework to use this model class?
    Maybe there is a sample application for 11g somewhere?
    Thanks,
    Stefan
    Edited by: Stefan1979 on 04.11.2009 18:10

  • Make an object into invisible in report builder

    Hi,
    I want to make invisible an object in report builder and i tried following things.
    I made visibility mode to :NO and
    Print object On:All pages and default
    In these levels i tried but am able to find object in report output.
    Can any one please suggest an solution for this
    Thnaks,
    Ayrus

    You posted it in wrong forum.You shoud have posted it in Oracle reports.If you simply set Visible property to No it should work..Strange if tht does not work.

  • Captivate 6 - Trying to make all click boxes not visible in output

    Adobe Captivate 6 - how do you make all the click boxes not visible in output.  Help says to uncheck the Visible in Output box, easy enough, then it say to click the Apply to all icon and there is no such icon.  Do I have to go through every single slide and manually do each one?

    Hello and welcome to the forum,
    I think you want to 'hide' the click box, so that it is not active, in the Properties panel? A click box itself is never visible to the user on the stage, but can be active or not.
    I always copy/paste an invisible object, it will keep its properties. Since a click box has no style, you cannot apply a style to all click boxes.
    Lilybiri

  • Installing 10.5.1 and other Apple Software makes my Boot Drive Invisible !

    Hi There,
    I need help,
    after installing the leopard Update 10.5.1 my System booted just fine but after logging in I noticed that my boot drive WAS NOT visible in the finder sidebar or desktop...
    I opened Tinkertool System and looked at my hard drive. And it had mysteriously been set to "INVISIBLE" in the HFS and Finder Attibutes.... After setting it to "Visible" again I could see it in the finder....
    Can someone PLEASE explain this.....
    Leopard is great but one has to do a BUNCH Of trouble shooting to get it to purr

    SteveDjokes wrote:
    I did NOT have any 3rd pty. enhancements active as I did the Install...
    Thanks 4 posting anyway
    The installation instructions state "installed" not "active'
    I don't believe Apple makes Tinkertool. You should have uninstalled it before upgrading.
    I believe Tinkertool qualifies as a system modification.
    The install instructions cleary say
    Important: Read before installing
    You may experience unexpected results if you have third-party system software modifications installed, or if you've modified the operating system through other means. (This does not apply to normal application software installation.)

  • To make a push button invisible when a Radio button is selected.

    Hi,
         There are 5 radio buttons in a group. Out of those when st and 3rd are selected a push button should be made visible else invisible.
        The problem is that when the transaction is executed by default the first radio button will be selected but the push button wont be visible.But if i re-select the 1st radio button then the push button will be visible.
        So is there any way to make the push button visible when the transaction is executed(ie bcoz the 1st radio button is by default selected) or neither of the radio buttons should be selected by default.
    Thanks in advance.

    Hi Sridhar,
    For example say your PF sataus name is 'STATUS-100'  which contains the push button and function code for the button in 'PUSH', then in your part of code use the following syntax,
    Here 'rb_select' is your radio button.
    IF rb_select EQ 'X'.
        SET PF-STATUS 'STATUS-100' EXCLUDING 'PUSH'.
    ENDIF
    I hope this will help you.
    Regards,
    Manoj Kumar P
    Edited by: Manoj Kumar on Dec 15, 2008 12:03 PM
    Edited by: Manoj Kumar on Dec 15, 2008 12:03 PM

Maybe you are looking for

  • Replication of custom z fields from CRM to ECC

    Hello, I have created custom fields in CRM - Order using EEWB.  Similarly I have created custom fields in ECC - VBAK.  I want to replicate these custom fields from CRM to ECC.  Somebody had suggested to use CRM_DATAEXCHG_BADI and method -  CRM_DATAEX

  • Airport loses connection sometimes

    Hi guys....need help! I bought my macbook pro 13 inch some time in September 2009. Brand new. Up until 2-3 months ago, things were running smoothly in regards to my wireless connection. Lately (for the past 2-3 months) when I close the lid of the mac

  • Nokia 5530 HomeScreen issue - not showing email no...

    Hi All, I have just bought Nokia 5530 XM and it was working fine previously but just got an issue yesterday that it is not showing the email notification on the home screen, just showing the empty bar on the place of the email notification and when i

  • 2 Phones, one account IOS6 confusion

    I have read many versions of this question online today and virtually every answer says "gah, idiot, look on Apple support" but there is no answer that deals with my question in its entirety (plus the rudeness is unhelpful). Or maybe I really am just

  • Help with MDX formula

    Hi All, I have MDX formula which is validating but not producing result, can you guide me in right direction to fix the issue. What i am trying to accomplish is?      View 1 (Raw)                    View 2 (Adjusted)      ACT     FCST     Calc