How do I set Children Equal Distance Apart?

I am trying to do something like this:
My Code
function drop(e:MouseEvent):void {
     if (e.target.hitTestObject(ObjectsBar)) {
     ObjectsBar.addChild(DisplayObject(e.target));
    */Then how do I make it so all the children added are equal distance apart? I know I can set the X coordinates for each one,
but I want it so that the objects can be added in any sequence and then be set to equal distance apart./*

var nextX:Number=0;
var gapX:Number=10;
function drop(e:MouseEvent):void {
     if (e.target.hitTestObject(ObjectsBar)) {
     ObjectsBar.addChild(DisplayObject(e.target));
  e.target.x=nextX;
nextX+=e.target.width+gapX;

Similar Messages

  • How do I set the scrolling distance to exactly 1 line of text?

    I thought Firefox used to have an option available to scroll by X lines of text. Now it seems to be scrolling by a slight bit more than 3 lines, resulting in misalignment of text with the top of the window when either the scrollbar or down arrow key is used. Where are the controls for making scroll height more predictable, and how do I use them? I am running Firefox 22.0 on Windows 7.

    Hi Brian, there is a setting for the number of lines:
    toolkit.scrollbox.verticalScrollDistance (default value = 3)
    This governs the up and down arrow keys, but doesn't seem to affect the up and down buttons on the scrollbar.
    A "line" can vary greatly in height and I'm not sure how Firefox determines the actual distance to scroll. More research is needed on that. (Note that you cannot adjust the preference to a fraction; it must be a whole number.)
    Have you noticed a differences from Firefox 21? That could be related to your Windows DPI settings, which Firefox now honors. Do you know what percentage you're using at the system level (e.g., 100%, 125%, 150%) and have you adjusted that in Firefox (using the layout.css.devPixelsPerPx preference)?

  • Any Help will be apreciated,  I am having problems printing with my Epson PX720WD using Aperture software.  I am getting banding across the photo equal distances apart (25mm), plus it appears to be printing at high speed.

    When printing on my Epson PX720WD using Aperture 3 I get lines across the photo 25mm apart, it also appears to be printing at high speed.  I have no problems when I print through Epson Easy print.

    Thomas
    Wow - thanks for such a comprehensive post.
    I have Aperture and a 2400 so this information is exceptionally useful to me.
    Again - thanks for caring and sharing
    Brian

  • How do I set up mutiple icloud accounts using my Apple ID but giving my children (and their ipod touches) their own icloud e-mail, so we do not share contacts photos etc

    How do I set up mutiple icloud accounts using my Apple ID but giving my children (and their ipod touches) their own icloud e-mail, so we do not share contacts photos etc

    Welcome to the Apple Community.
    Create an iCloud account for each of them.

  • I have two children each with an ipod which has FaceTime - I have the iphone 4s with FaceTime.  All of these devices are connected to itunes through the one account.  How do I set up the FaceTime on the two ipods so as it doesn't ring both of them?

    I have two children each with an ipod which has FaceTime - I have the iphone 4s with FaceTime.  All of these devices are connected to itunes through the one account.  How do I set up the FaceTime on the two ipods so as it doesn't ring both of them?

    I started to do that then it said that this will become their apple I.D or similar and then I thought that will disconnect them from the same iTunes?  I want them still on my iTunes as they are only young (8 and 10)?  Or have I got this all wrong and even if I do set them up with a different e-mail will they still be on my itunes?  For example if they want to purchase an App will it still go through my account even if they use their ipod?

  • How do I set up family sharing if all my family members emails are already associated with my iTunes account?

    I want to set up family sharing but it won't let me because all the emails are already associated with the one iTunes account we have.  I am afraid to delete because my children use that email address for text messaging.  How do I set up family sharing if all my family members emails are already associated with my iTunes account?

    Hey Wendaroski,
    I am not quite sure what you mean by "my family members emails are already associated with my iTunes account" but what you need for each family member is an Apple ID. Yours would be the one for your iTunes account.
    If the other members of the family already have an Apple ID you can invite them to join the family group. If not they will need to create one, using their email address. This article shows how -
    Set up an Apple ID in iTunes - Apple Support
    Thanks for using Apple Support Communities.
    Be well,
    Brett L 

  • How do I set up multiple iCloud accounts on one Apple ID?

    My whole family uses the same Apple ID, but we all want separate iCloud accounts, because I keep on getting contacts from my children's iPhones and iPads. They want accounts between their iPads and iPhones, but I want a separate iCloud. How do they set up a new iCloud on their devices (they don't have Macs)?

    Welcome to the Apple community.
    An apple ID is an account. If your family require that their contacts, calendars etc are separate from each other, they all need their own Apple ID (account).
    iCloud is a different service from iTunes, you can all use different Apple IDs for your iCloud service, would use the same ID for iTunes, thereby being able to share your music, apps, books, TV shows and movies et cetera.

  • How can I set the default line height?

    Greetings,
    I have a report that displays observed behavior in a list format like the one below:
    Behavior Observed:   
        Withdrawn           
        Happy
        Sad
        angry
    There are 5 responses as to the severity of the behavior or it is left blank if the behavior was within normal limits.
    So the output would look like this:  
    Behavior Observed:   
        Withdrawn            (mild)
        Happy
        Sad                      (moderate)
        angry
    The problem is that when this report was designed the details sections were not uniformy formatted and the spacing between data elements is hard to follow from the label to the data field.  I tried to set the details to be uniform by selecting "Arrange Lines",  however when I do this, the data is displayed too close horizontally.  So my question is how do I set the default line height for each field so that they are uniform in distance from each other but not too close due to the font height?
    Does this make sense?
    Thank you,
    Kevin

    I'm confused... How are you associating line height with horizontal field spacing???
    If you have this...
    Behavior Observed:     Severity:
    Withdrawn          (mild)
    Happy
    Sad               (moderate)
    angry
    But want it to look like this...
    Behavior Observed:
    Withdrawn (mild)
    Happy
    Sad (moderate)
    angry
    all you have to do is create a concatenation formula. Something like this...
    {TableName.BehaviorObserved} & " (" & {TableName.Severity} &")"
    Sorry if I've misunderstood what you are trying to do.
    Jason

  • How do I set up Airport extreme as a remote with Gateway 2wire as a base

    I just switched over to sbcglobal from comcast. Before switching, I had been using an APE as a base station connected with ethernet to my G5 and another APE as a remote. With sbcgobal I got a Gateway 2wire modem. What I would like to know is how do I set up my APE as remote? I need this to be able get my G4 powerbook to connect. I can wireless connect using my G4 a short distance away but if I go to the other end of the house no luck. Thats why I need this remote.
    thanks

    With sbcgobal I got a Gateway 2wire modem. What I would like to know is how do I set up my APE as remote?
    Unfortunately, you won't be able to do this as few non-AirPort routers will work with AirPorts in a Wireless Distribution System (WDS).

  • How do I set up my iphone 5 so I can access my family account? I purchased music from itunes using my apple id, and those songs do not appear in our family cloud.

    How do I set up my iphone 5 so that I can access my family account? Recently I purchased music from itunes using my apple id, and now I cannot find those songs in our cloud. I wanted to add those songs to my ipod. Do I have to buy them again using my husband's apple id?

    Welcome to the Apple Community.
    You can use different ID's for iTunes and iCloud.
    Just delete the account in settings > iCloud and create them their own account.
    if the children are minors, you wiil need to create and be responsible for each account yourself.

  • HT1420 How do I set up parental control on book downloads?  My daughter and I use the same Apple ID info.

    How do I set up parental controls on my apple account, I want to censor the books that she's dowloading. We use the same account  Thanks!

    Turning off in-app purchases and the App Store itself would be the best bet for you. You can always unlock these features as needed and lock them again.
    Apart from restricting purchases, there are a number of other restrictions you can setup. You can even setup a safe browser with remote parental controls from the App Store, like the one from Mobicip. You may find this tutorial to be helpful: How to setup Parental Controls on the iPad.
    Hope this helps.
    Disclaimer: This response is posted by a Mobicip representative who may stand to gain indirectly from it.

  • How can I set a default file for JFileChooser

    Hi. I am developing a p2p chat application and I have to unrelated questions.
    1. How can I set a default file name for JFileChooser, to save a completly new file?
    2. I have a JTextArea that I append recieved messages. But when a message is appended, the whole desktop screen refreshes. How can I prevent that?
    Hope I was clear. Thanks in advance.

    Thank you for the first answer, it solved my problem. Here is the code for 2nd question, I've trimmed it a lot, hope I didn't cut off any critical code
    public class ConversationWindow extends JFrame implements KeyListener,MessageArrivedListener,ActionListener,IOnlineUsrComp{
         private TextArea incomingArea;
         private Conversation conversation;
         private JTextField outgoingField;
         private JScrollPane incomingTextScroller;
         private String userName;
         private JButton inviteButton;
         private JButton sendFileButton;
         private JFileChooser fileChooser;
         private FontMetrics fontMetrics;
         private HashMap<String, String> onlineUserMap;
         public void MessageArrived(MessageArrivedEvent e) {
              showMessage(e.getArrivedMessage());
         public ConversationWindow(Conversation conversation)
              this.conversation=conversation;
              userName=User.getInstance().getUserName();
              sendFileButton=new JButton("Dosya G�nder");
              sendFileButton.addActionListener(this);
              inviteButton=new JButton("Davet et");
              inviteButton.addActionListener(this);
              incomingArea=new TextArea();
              incomingArea.setEditable(false);
              incomingArea.setFont(new Font("Verdana",Font.PLAIN,12));
              fontMetrics =incomingArea.getFontMetrics(incomingArea.getFont());
              incomingArea.setPreferredSize(new Dimension(300,300));
              outgoingField=new JTextField();
              outgoingField.addKeyListener(this);
              incomingTextScroller=new JScrollPane(incomingArea);          
              JPanel panel=new JPanel();
              panel.setLayout(new BoxLayout(panel,BoxLayout.PAGE_AXIS));
              panel.add(inviteButton);
              panel.add(sendFileButton);
              panel.add(incomingTextScroller);
              panel.add(outgoingField);
              add(panel);
              pack();
              setTitle("Ki&#351;iler:");
              setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              setLocationRelativeTo(null);
              addWindowListener(new CloseAdapter());
         //Sends the message to other end
         public void keyPressed(KeyEvent e) {
              if(e.getKeyCode()==KeyEvent.VK_ENTER && e.getSource()==outgoingField)
                   String message=outgoingField.getText();
                   if(message.equals("")) return;
                   showMessage(userName+": "+message);
                   conversation.sendMessages(userName+": "+message);
                   outgoingField.setText("");     
         //Displays the recieved message
         public void showMessage(String message)
              if(fontMetrics.stringWidth(message)>incomingArea.getWidth())
                   int mid=message.length()/2;
                   StringBuilder sbld=new StringBuilder(message);
                   for(;mid<message.length();mid++)
                        if(message.charAt(mid)==' ')
                             sbld.setCharAt(mid, '\n');
                             message=sbld.toString();
                             break;
              incomingArea.append("\n"+message);
    }

  • How do I set up my AEv5 using DHCP with a Netgear DG834Gv5?

    Hi,
    I've recently bought a MBPro and love it.
    I then bought an Airport Extreme to extend my available Wi-Fi distance and increase its speed. It's good, but it's not currently set up as I'd like it to be.
    My kit...
    Netgear DG834v5 Modem/Wireless Router
    Apple Airport Extreme v5
    Currently the AEv5 is set up in Bridge mode, with the wireless of the Netgear switched off completely. As I understand it, this makes the Netgear a wired modem, from which the AEv5 acts as the replacement (improved) Wi-Fi mast.
    I want to change the AEv5 from Bridge mode to DHCP/DHCP+NAT for the following reasons...
    - I can then set up a 'guest' wi-fi network.
    - I can then see a full list of the devices interacting with my Wi-Fi signal and block any potential intrusions.
    I don't know the implications of whether or not the AEv5 controlling the NAT is a good thing or not, so...
    - Can someone please explain the difference and benefits/drawbacks of the AEv5 controlling NAT as well as DHCP?
    I then need to know...
    - How I can turn off all DHCP/NAT/DHCP+NAT on the Netgear?
    - How I can set up the AEv5 to do the DHCP/NAT/DHCP+NAT itself?
    Any help would be greatly appreciated as I've spent hours searching the net already with no luck. I'm out of my depth and out of ideas; if someone knows anything that could help me it'd be great to hear it!
    Cheers!

    Can't help with Netgear, since I have not used the device that you have there, but can offer a few thoughts about the AirPort Extreme.
    Currently the AEv5 is set up in Bridge mode, with the wireless of the Netgear switched off completely. As I understand it, this makes the Netgear a wired modem, from which the AEv5 acts as the replacement (improved) Wi-Fi mast.
    Correct. This makes the Netgear a wired modem/router, since it is also configured to handle DHCP and NAT services for the network.
    - Can someone please explain the difference and benefits/drawbacks of the AEv5 controlling NAT as well as DHCP?
    If you want to enable the Guest Network, then the AirPort Extreme must be configured to provide DHCP and NAT services.
    If you open AirPort Utility on your Mac, click on the AirPort Extreme icon, click Edit, then click the Network tab at the top of the screen, you will see that the AirPort Extreme is currently configured in a Router Mode of Bridge Mode.....which is the correct setting for the AirPort Extreme with your Netgear modem/router.
    To make the AirPort Extreme provide DHCP and NAT service, you would change the setting for the Router Mode to DHCP and NAT.  But, do not do this....yet.
    The DHCP only setting on the AirPort cannot be used if you want to enable the Guest Network. This setting is rarely used, and would only be required if your Intenet Service Provider is furnishing you with a bank of fixed IP addresses....usually 4 or 5......to use for your connection and devices.
    - How I can turn off all DHCP/NAT/DHCP+NAT on the Netgear?
    Seems like that would be a question for Netgear support. It may....or may not....be possible to do this.
    Even if you do this, there will be no guarantees that this setting will work correctly with AirPort Extreme. 
    But, before you consider doing this, it would be good idea to check with your Internet Service Provider to make sure that they will support this type of configuration.
    I'm sure that you will agree that it would be of little value if you configured the Netgear device to turn off DHCP and NAT and function in Bridge Mode, and then had a connection issue....and your service provider refused to help you.
    Perhaps your service provider has a simple modem that they could offer to you. That would work with the AirPort Extreme and you would not have to worry about trying to configure the Netgear to do something that it was not likely designed to do.

  • How do i set up columns in pages

    How do I set up 2 columns within a page. That is full page, no column text above the columns and text below the columns?
    I have made columns, and have the text above, how do I turn off or set the bottom border of the columns/
    Thanks

    Matchka007 wrote:
    Thank you. Are the start and end locations for columns somewhere I am missing, is it the layout margins section of columns?
    The before seems to move start of columns and creates space after, however I am not understanding what these spaces are.
    A Layout Break cuts all the way across the page. The content will divide between the columns as equally as possible. If you wish to manipulate the way content is apportioned between the columns in a layout, use Column Breaks.
    Jerry

  • How do i set up wifi calling?

    How do i set up wifi calling?

    Doesn't technically exist although there are easy ways around this.
    I had a multi level apartment once. The bedrooms were partially underground. The neighbors had a network extender that caused many problems for our roomates. Luckily it didn't bother my phone.
    Now a days verizon messages will work on wifi. I didn't have that option then so I used Google voice. I also used an app called condi or Tasker and groove ip.
    Groove ip let's you make and receive free calls on wifi. If you have comcast triple play you can use their service too.
    Basically I set my phone up to automatically forward my phone calls to my Google voice number. That way over wifi in my apt there was zero chances I would miss any calls. When I leave the apt and disconnect from wifi it would cancel call forwarding.
    Other option is network extender. If you complain enough to verizon you can get one for $100. No way to prevent others from using it but you can give a certain amount of numbers priority.
    Bottom line, verizon should offer this feature out of the box. But for now there are solutions.

Maybe you are looking for