How to hide objects in this array

hi so i want to hide these object in this array
        var rdCounts:Array = [2,4 ,58 ,3,7,8 9]
        var NewPassenger:Array= new Array();
im spawning movie clips to the numbers u see in rdCount, and i an using push to put then on NewPassenge i was wondering how can i make them all invisible uing .visible = false;
thanks,
hen

What are those values in the rdCounts supposed to be doing for you?  5516/1000 = 5.516....  so...
var theAmount:int = rdCounts[timeline_slider.value];
doesn't make much sense, especially since most of the array values will result in the same int value of 5.
One thing you have said, at leasnce... "i have a ratio buttion called original_rb everytime it is selected all the movieclips that is spawning from the code up there i want to be invisible, becuase i have a nother graph set to become visible when original_rb is selected.
But the function you showed is not being called for clicking the original_rb, it is being called for clicking le_rb.  So maybe that's what you are missing... targeting the wrong rb for clicking.
I am not intending this as an insult, but I think you might have homed in on the main problem when you said...
"ive had alot of hep with this so it might not make sense"
If you don't know if it makes sense and you don't understand it then you probably need to spend more time trying to.  If someone else did what you are showing for you, they might need some more experience as well.
Radio buttons are usually used as a group, where one of the group is selected.  You seem to be using radio buttons where checkboxes or buttons would be more appropriate.
The code that has answered you questions so far would work if your design supports it.  So chances are you design isn't what your code is aimed at... though I would expect error messages in that case.
There have been quite a few questions asked that have not been answered yet.  Probably the most meaningful of them is whether or not you are getting error messages. If you are, including the entire error message(s) in your posting is key to getting help.

Similar Messages

  • How to hide object name in tray of pages

    Hi everybody,
    I want to hide the object name in the tray of a page.
    I act as follows: open Page in VC --> Configure Page --> Look & Feel --> unselct "Show Object name in Tray"
    I thought that is the right way, but every time I want to deploy, the option is true again.
    Could anybody help me?

    Hi Robert,
    Unfortunately, evrytime you open the model, it shows default values for the fieds. The only field for which it shows the correct value in the dashboard is 'Show Help Option'. However, at runtime, it does reflect the changes you make. You can check that in PCD.
    e.g. If you uncheck the checkbox for 'Show object name' and deploy the first time. The page should reflect the change on the Portal in PCD, however in the model shows the default value i.e. the checked checkbox. If you deploy it again, it won't change the value on the portal. It will still retain the value(unchecked,) on the portal. In order to change the value back to what it was (checked) originally, you have to uncehck the checkbox and check it again and then deploy. The values will change on the portal.
    I don't know the reason behind this behaviour though.
    Regards,
    Ajay

  • How to hide objects in subsequent floating forms

    Hello,
    I have a subform which has an 'Add' button.  When user clicks on the add button, a new subform is added.  I, however, don't want to show this 'Add' button in the subsequent forms.  I want to show it in the 1st form only.  Also, the user can only add max 3 forms.  Thus, as the form number reaches 3, I want to disable/hide the 'Add' button.
    Is there a way to do that?  Could someone show me how?
    Thanks in advance for your help.

    Hi,
    For the first part, the easiest way would be to take the button out of the repeating subform. Maybe place it just above the subform. Then it will not appear in other instances. You could include script in the initialize event, but this would not be the preferred route. Se how you get on with the button out of the subform and if you end up needing the script come back to us.
    To disable the button, you will need script in the layout:ready event of the button. This is not the most efficient, because the layout:ready event fires so often (see here http://assure.ly/nB0Bvz). If your form is not too lengthy then you mightn't notice too much of a performance hit.
    So, if your repeating subform is called myRepeatingSubform, the following in the layout:ready event of the button should get you close:
    if (_myRepeatingSubform.count >= 3) {
         this.presence = "invisible";
    else {
         this.presence = "visible";
    Hope that helps,
    Niall

  • How i create object of this class

    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.print.PrinterException;
    import java.text.MessageFormat;
    import javax.swing.JButton;
    import javax.swing.JDialog;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    public class vendor extends JDialog // probably best to use a JDialog, not a JFrame here
    // make some instance variables
    private String rows[][] =
    {"A", "a"},
    {"B", "b"},
    {"E", "e"}
    private String headers[] =
    "Upper", "Lower"
    private JTable table = new JTable(rows, headers);
    // here's the constructor.
    public MainClass(JFrame frame, String title, boolean modal)
    super(frame, title, modal);
    //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    JScrollPane scrollPane = new JScrollPane(table);
    add(scrollPane, BorderLayout.CENTER);
    JButton button = new JButton("Print");
    ActionListener printAction = new ActionListener()
    public void actionPerformed(ActionEvent e)
    printActionPerformed(e);
    button.addActionListener(printAction);
    add(button, BorderLayout.SOUTH);
    setPreferredSize(new Dimension(300, 150));
    //frame.setSize(300, 150);
    //frame.setVisible(true);
    private void printActionPerformed(ActionEvent e)
    try
    MessageFormat headerFormat = new MessageFormat("Page {0}");
    MessageFormat footerFormat = new MessageFormat("- {0} -");
    table.print(JTable.PrintMode.FIT_WIDTH, headerFormat,
    footerFormat);
    catch (PrinterException pe)
    System.err.println("Error printing: " + pe.getMessage());
         public static void main(String x[])
    {new vendor();}
    }

    You have to call it from a JFrame or other root container:
    import java.awt.Dimension;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.SwingUtilities;
    public class UseDialog extends JPanel
        private JFrame frame = null;
        private MainClass myDialog = null;
        public UseDialog(JFrame frame)
            setPreferredSize(new Dimension(300, 200));
            this.frame = frame;
            JButton showDialogBtn = new JButton("Show Dialog");
            add(showDialogBtn);
            showDialogBtn.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    showDialogBtnAction(e);
        private void showDialogBtnAction(ActionEvent e)
            //*********** here is where it is called **************
            myDialog = new MainClass(frame, "My Dialog", true);
            myDialog.pack();
            myDialog.setVisible(true);
        private static void createAndShowGUI()
            JFrame frame = new JFrame("UseDialog Application");
            frame.getContentPane().add(new UseDialog(frame));
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.pack();
            frame.setLocationRelativeTo(null);
            frame.setVisible(true);
        public static void main(String[] args)
            SwingUtilities.invokeLater(new Runnable()
                public void run()
                    createAndShowGUI();
    }Also, when posting your code, please use code tags so that your code will be well-formatted and readable. To do this, place the tag [code] at the top of your block of code and the tag [/code] at the bottom, like so:
    [code]
      // your code block goes here.
    [/code]good luck

  • How to hide parameters in bar address ? (GET vs POST)

    Hello,
    I have to develop a web application and I would like to resolve some security issues.
    My problem is that, when I pass parameters from a stored procedure to another, every parameters are shown in the bar address.
    According to you, what is the best solution ?
    I have tried to use the POST method for forms but it only works for one button.
    Example :
    /* -------- Form -------- */
    HTP.PRINT('<form name="subProjectManagement" action="./C3bd7.incr2n.addSubProject">');
          HTP.PRINT('<input type="hidden" name ="p_id_proj" value="2060" />');
          HTP.PRINT('<input type="hidden" name ="error" value="" />');
          /* -------- "Add" Button -------- */
          HTP.PRINT('<input type="button" name="add" value="Add" onClick= this.subProjectManagement.submit()/>');
          /* -------- "Delete" Button -------- */
          HTP.PRINT('<input type="button" name="delete" value="Delete" onClick="Delete()"');     
    HTP.FORMCLOSE;- When I click on the "Add" button, the procedure addSubProject is called and the parameters are well hidden in the bad adderss.
    - For the "Delete" button, I made a different process because I can't put two different submit buttons in one form. In another word, the POST mechanism can't work for the "Delete" button so I do not know how to hide parameters in this case.
    As for direct links, I do not know what do to.
    Example :
    HTP.PRINT('<a href="./c3bd7.incr2n.subprojectList?p_id_proj=' ||p_id|| '">Go back</a>');- I am using this kind of link to switch from a page to another, and once again I do not know how to hide the parameters...
    The official documentation encourages to use cookies (http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_web.htm#CHECAHEB) : is it easy to implement ?
    Thank you a lot in advance !
    Best regards.
    Edited by: user11922628 on 12 janv. 2010 04:42

    Hi,
    if you willing to investigate how one could reuse session variables, then that might offer you some solution. Browser session variables can be passed on from page to page. Trouble is, back and forward browser buttons don't work so well.
    P;

  • Converting object wrapper type array into equivalent primary type array

    Hi All!
    My question is how to convert object wrapper type array into equivalent prime type array, e.g. Integer[] -> int[] or Float[] -> float[] etc.
    Is sound like a trivial task however the problem is that I do not know the type I work with. To understand what I mean, please read the following code -
    //Method signature
    Object createArray( Class clazz, String value ) throws Exception;
    //and usage should be as follows:
    Object arr = createArray( Integer.class, "2%%3%%4" );
    //"arr" will be passed as a parameter of a method again via reflection
    public void compute( Object... args ) {
        a = (int[])args[0];
    //or
    Object arr = createArray( Double.class, "2%%3%%4" );
    public void compute( Object... args ) {
        b = (double[])args[0];
    //and the method implementation -
    Object createArray( Class clazz, String value ) throws Exception {
         String[] split = value.split( "%%" );
         //create array, e.g. Integer[] or Double[] etc.
         Object[] o = (Object[])Array.newInstance( clazz, split.length );
         //fill the array with parsed values, on parse error exception will be thrown
         for (int i = 0; i < split.length; i++) {
              Method meth = clazz.getMethod( "valueOf", new Class[]{ String.class });
              o[i] = meth.invoke( null, new Object[]{ split[i] });
         //here convert Object[] to Object of type int[] or double[] etc...
         /* and return that object*/
         //NB!!! I want to avoid the following code:
         if( o instanceof Integer[] ) {
              int[] ar = new int[o.length];
              for (int i = 0; i < o.length; i++) {
                   ar[i] = (Integer)o;
              return ar;
         } else if( o instanceof Double[] ) {
         //...repeat "else if" for all primary types... :(
         return null;
    Unfortunately I was unable to find any useful method in Java API (I work with 1.5).
    Did I make myself clear? :)
    Thanks in advance,
    Pavel Grigorenko

    I think I've found the answer myself ;-)
    Never thought I could use something like int.class or double.class,
    so the next statement holds int[] q = (int[])Array.newInstance( int.class, 2 );
    and the easy solution is the following -
    Object primeArray = Array.newInstance( token.getPrimeClass(), split.length );
    for (int j = 0; j < split.length; j++) {
         Method meth = clazz.getMethod( "valueOf", new Class[]{ String.class });
         Object val = meth.invoke( null, new Object[]{ split[j] });
         Array.set( primeArray, j, val );
    }where "token.getPrimeClass()" return appropriate Class, i.e. int.class, float.class etc.

  • How to hide Compounding object in report

    Hi friends
    We want to display region in our reports , But when I execute the query region is coming along with county (eg: US/TX , US/CA etc..) ...this is because of country is a compunding object of region...Can any body let me know how to hide country ...We just want to show TX,CA etc..
    regards

    Please search...this has been answered many times here.

  • How can i convert object to byte array very*100 fast?

    i need to transfer a object by datagram packet in embeded system.
    i make a code fallowing sequence.
    1) convert object to byte array ( i append object attribute to byte[] sequencailly )
    2) send the byte array by datagram packet ( by JNI )
    but, it's not satisfied my requirement.
    it must be finished in 1ms.
    but, converting is spending 2ms.
    network speed is not bottleneck. ( transfer time is 0.3ms and packet size is 4096 bytes )
    Using ObjectOutputStream is very slow, so i'm using this way.
    is there antoher way? or how can i improve?
    Edited by: JongpilKim on May 17, 2009 10:48 PM
    Edited by: JongpilKim on May 17, 2009 10:51 PM
    Edited by: JongpilKim on May 17, 2009 10:53 PM

    thanks a lot for your reply.
    now, i use udp socket for communication, but, i must use hardware pci communication later.
    so, i wrap the communication logic to use jni.
    for convert a object to byte array,
    i used ObjectInputStream before, but it was so slow.
    so, i change the implementation to use byte array directly, like ByteBuffer.
    ex)
    public class ByteArrayHelper {
    private byte[] buf = new byte[1024];
    int idx = 0;
    public void putInt(int val){
    buf[idx++] = (byte)(val & 0xff);
    buf[idx++] = (byte)((val>>8) & 0xff);
    buf[idx++] = (byte)((val>>16) & 0xff);
    buf[idx++] = (byte)((val>>24) & 0xff);
    public void putDouble(double val){ .... }
    public void putFloat(float val){ ... }
    public byte[] toByteArray(){ return this.buf; }
    public class PacketData {
    priavte int a;
    private int b;
    public byte[] getByteArray(){
    ByteArrayHelper helper = new ByteArrayHelper();
    helper.putInt(a);
    helper.putInt(b);
    return helper.toByteArray();
    but, it's not enough.
    is there another way to send a object data?
    in java language, i can't access memory directly.
    in c language, if i use struct, i can send struct data to copy memory by socket and it's very fast.
    Edited by: JongpilKim on May 18, 2009 5:26 PM

  • How to 'hide' one stroked-only object behind another?

    I'm struggling with something that shouldn't be this difficult!
    I'm laying-out a white-only T-Shirt logo (to go on a dark-green T-shirt)
    For the sake of simplicity, let's say I have two ovals with no fill, just a white stroke.  A small oval overlapping (on-top-of) part of the edge of a larger (underneath) oval.    I
    Any advice on how to 'hide' the line that's 'behind' the top object?
    Thusly: http://i.imgur.com/ZghWTMa.jpg  

    Actually, I'm not completely sure yet.
    Steve's answer assumes screen printing with a single opaque white ink. It won't work if printing to non-opaque composite transfers, or cutting from aplique vinyl, or if you're going to import the two-ellipse artwork for combination with other artwork.
    Since you don't know:
    1. Draw the two circles with a stroke color and a fill color (ex: black Stroke, white fill) on both.
    2. Apply the desired stroke weight.
    3. Object>Path>Outline Stroke.
    4. Pathfinder palette: Merge.
    5. White pointer: Select the two inside regions and delete.
    6. You now have a single Compound Path; no overlapping objects, and actual "holes" where you want the substrate to show through. Apply whatever fill color (white, etc.) you need.
    But bear in mind what has already been stated: White, unless defined as a Spot Color, does not "print." Think in terms of inks, not in terms of "color". In a program like Illustrator, "white" normally means "no ink." And you always have to know what printing method you are designing for.
    JET

  • How to access child movieclip info of an object in an array?

    Hi
    I've dynamically created a whole bunch of movieclips.
    I've given each clip a name based on a variable number:
         mc.name = "mc"+i;
    I've also use addChild to add a couple of dynamic text fields to each movieClip, named myText1 and myText2.
    I then push each movieClip object into an array:
         myArray.push(mc);
    When I addChild the movieClips, they display fine, complete with each textField.  And if I use the following loop to trace the name of each clip in the array, I get:
         for(var i=0; i<myArray.length; i++)
                   trace(myArray[i].name);
    output:
         mc1
         mc2
         mc3
         mc4
    etc
    What I want to now is be able to access the text fields within each movieclip in the array.  However, I am getting errors when I try different ways.  For example:
         for(var i=0; i<myArray.length; i++)
                   trace(myArray[i].myText1.text);
    gives the error: A term is undefined and has no properties.
    How do you access the values and contents of the children of movieClip objects that are stored in arrays?
    Thanks
    Shaun

    For whatever reason, dynamically added children cannot be targeted that way.  If you added the textfields dynamically you may need to use getChildByName() to target them.  It partly depends on how you created them and whether or not you have direct access to them.  Aside from that you could also assign the textfields to variables that you create for the mc and target those by their variable names.
    The following demos these two approaches:
    var mc:MovieClip = new MovieClip();
    addChild(mc);
    var tf:TextField = new TextField();
    tf.text = "this is text";
    mc.addChild(tf);
    // first way
    tf.name = "tfield";
    trace(TextField(mc.getChildByName("tfield")).text);
    // second way
    mc.tfid = tf;
    trace(mc.tfid.text);
    You could also store the textfields in arrays as they are created and have direct access to them with out the need to target the mc... the index should be the same as that which you use for the mc anyways.

  • How do I convert an Object into an Array?

    If I have an instance of type object that I know is really a DataGrid row that was cast into an object when passed to a function, how can I cast that Object to an array, such that each index of this array would correspond to the information in a given column of the row?

    @Sathyamoorthi
    Can you please explain what this function does? Essentially, what should be contained in the String?
    I printed out the string and it seems like I am getting a random row in the Object, as opposed to first or last. Why is that?
    UPDATE: I printed out the value of dataGrid0.columns[5].dataField but it just turned out to be the id of the column.

  • How to hide this method?

    I want to use Protection Proxy Pattern,but I feel nervous about my
    real method,how can i hide it(such as set it friendly or protected)?
    you can see this code:
    interface Safe{
         public String getSecret();
    class RealSafe implements Safe{
         public String getSecret(){
              return new String("You can get the secret");
    class ProtectionProxy implements Safe{
         private String password=null;
         public ProtectionProxy(String temp){
              password=temp;
         public String getSecret(){
              if(password.equals("I have the rights")){
                   RealSafe realobj=new RealSafe();
                   return realobj.getSecret();
              else{
                   return new String("Illegal password,You can't get the secret");
    How to hide the getSecret() in class RealSafe with the precondition of using Protection Proxy Pattern???????
    How can i do? i need your help,please!

    You can't prevent a malicious developer constructing an instance of RealSafe. They could always decompile your application and make changes to it if they wanted anyway!
    The ProtectionProxy is really just a convenience for users of your API. It provides "reasonable" security through a means of determining whether the current user has access to the data. It does not provide a means of determining whether the current developer has access to it!
    Your proxy lays down the rules for accessing the class being proxied. This works when the client application plays by the rules (as most applications do).
    So all you need to do is make sure that developers who play by the rules can't construct an instance of RealSafe:
    public class SafeFactory
      public static Safe getSafe(...)
        Safe safe = new RealSafe(...);
        return new ProtectionProxy(safe);
    class RealSafe implements Safe
      RealSafe(...)
    class ProtectedSafe implements Safe
      private Safe safe;
      ProtectedSafe(Safe safe)
        this.safe = safe;
    }Thus the only way for a developer to get hold of an instance of Safe is to use SafeFactory.getSafe which always returns a ProtectedSafe.
    Make sure you don't mistake this sort of pattern for robust security, though. It simply allows your client application to catch "UnauthorizedExceptions" and react accordingly. As pointed out in this thread there're various ways of getting at the data that's hiding inside a Proxy. If you're really concerned about preventing someone viewing your data unless they are authorised you need to either encrypt it or only load it (and not cache it) when their credentials have been provided.
    Hope this helps.

  • How to hide front panel objects behind other front panel objects

    Hi,
    I need tho change an existing project and to make it simple just want to hide some front panel objects behind others. But I can't find how to put the one I wnt to the front hiding all others. So now there are some in front that should be hidden.
    Is there a button or menu item "Move to front / back" like in many other programs?
    Thanks
    Martin
    Solved!
    Go to Solution.

    Hi Martin,
    what about the link I provided in my previous post? What else do you need?
    What about the chapter "fundamentals" in the LabVIEW help?
    Going the way "Fundamentals -> Building the FrontPanel -> How-To -> Reordering Objects" seems rather logically to me…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • TS1702 How do I hide purchased apps with iOS 6? With iOS 5 you can swipe the unwanted app to hide it, but this doesn't work with iOS 6.

    How can I hide an app from the list of purchased apps using iOS6? With iOS 5 you can swipe the icon to display a red Hide icon, but this doesn't work with iOS 6. Suggestions (that work) will be appreciated.

    Yes. On a computer. Not ios6.
    On iTunes on your computer under purchased, select the x on the top corner. That will hide them.

  • How do I insert an object in an array?

    How can I insert an object in an array of variable size?
    I input two numbers from keyboard
    1
    2that form the following object (Pair)
    (1,2)
    how can I add such objects to an array
    private Pair s[];
    e.g.
    public PairList(int x){
    top = -1;
    s = new Pair[x];
    }//constructor
    public void getPairs()throws FullException{
    BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
    try{
    a=input.readLine();b=input.readLine();
    }//try
    catch(IOException e){System.out.println("Can't read input");}//catch
    int x=0;
    int y=0;
    try{
    x=Integer.parseInt(a);}//try
    catch(NumberFormatException e){}
    try{
    y=Integer.parseInt(b);}//try
    catch(NumberFormatException e){}
    Pair k=new Pair(x,y);
    System.out.println(k);
    s[++top]=k; --here is my problem
    }//getPairs

    I tried making as few changes to your code as possible, but your idea should basically work. Potential problems:
    1. Doesn't allow for more input than 1 pair.
    2. By storing pair in an array, you must know the exact size of the array you will need beforehand. You might be better off storing the Pair(s) in a Vector and then converting that to an array.
    3.Your exception handlers need some work. Basically, your exception handlers put out a message or do nothing and then you continue processing. Not good.
    4. No cleanup of file resources after you have completed
    import java.io.*;
    public class PairList{
         private Pair s[];
         private int top;
         public PairList(int x){
              top = -1;
              s = new Pair[x];
         }//constructor
         public void getPairs()throws Exception{
              BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
              String a = null, b = null;
              try{
                   a=input.readLine();
                   b=input.readLine();
              }//try
              catch(IOException e){
                   System.out.println("Can't read input");
              }//catch
              int x=0;
              int y=0;
              try{
                   x=Integer.parseInt(a);
              }//try
              catch(NumberFormatException e){
              try{
                   y=Integer.parseInt(b);}//try
              catch(NumberFormatException e){
              Pair k=new Pair(x,y);
              System.out.println(k.toString());
              s[++top]=k; //here is my problem
         }//getPairs
    class Pair {
         private int xx;
         private int yy;
         public Pair(int x, int y) {
              xx = x;
              yy = y;
         public String toString() {
              return("X = " + xx + "  Y = " + yy);
    }

Maybe you are looking for