Simple layout question, shrinking TextField and TextArea inside VBox

Given:
        VBox root = new VBox(10);
        root.getChildren().addAll(new TextField(), new TextArea());
        Scene scene = new Scene(root, 300, 250);When I shrink the application window vertically, the textfield starts to shrink first, while the text area stays its size, then when the textfield is only a narrow strip, the text area starts to shrink.
1) Is this expected?
2) Is it by design? If so, why?
3) How can I avoid it, i.e. have the text area shrink first, then the textfield?
It think the behaviour in 3) makes more sense, since a text area by its nature can have different heights; a text field on the other hand I would expect to have the height of a single line of text unless there is absolutely no space for it in its container. It doesn't make sense to have a textfield that is a fraction of the height of a line of text.
I have tried various combinations of minHeight and prefHeight, but without luck.

Hey,
1) Yes, this is expected!
2) Yes, why.. well I don't know why the minimum height of a TextField is smaller than the pref size.
3) This can be avoid by setting your own sizes (min size - pref size - max size)
        VBox root = new VBox(10);
        root.setStyle("-fx-background-color: lightgray");
        TextField tf = new TextField();
        tf.setMinHeight(Control.USE_PREF_SIZE); //the minimum height = the preferred height
        TextArea ta = new TextArea();
        ta.setMinHeight(30);
        ta.setPrefHeight(50);
        ta.setMaxHeight(Double.MAX_VALUE); //maximum height, depends on the parent
        VBox.setVgrow(ta, Priority.ALWAYS); //use the maximum height available
        root.getChildren().addAll(tf, ta);
        Scene scene = new Scene(root, 300, 250);Edited by: FXdude on 21-jan-2013 6:13

Similar Messages

  • JavaFX 2.2 TextField and TextArea use black text-fill on select.

    Two of my applications--one FXML and the other UI-coded on NetBeans7.1.1--both have a problem when user selects text in either TextArea or TextField when editing. When content word is double-clicked, the selection background becomes dark blue (dodgerblue) but the text remains BLACK. According to JavaFX-CSS reference the default for -fx-highlight-text-fill is WHITE but this doesn't seem to occur, assuming that "highlight" is the correct operation name.
    I tried an explicit CSS statement: .text-medium {-fx-font: 14 serif;
         -fx-highlight-text-fill: white;
         -fx-highlight-fill: lightgreen;
    } even trying to change the selection background. This also had no effect on selected text color or background.
    Interestingly, other "selection" operations for a TableView or ListView cell work as specified.
    I don't know the JavaFX build version. It came imbedded in jdk1.7.0_03 and was updated with "javafx-windows-i586__Vlatest.exe" download on May 2, 2012.
    Please let me know if this is abnormal and, if so, how it can be fixed.

    MORE INFO:
    The applications and testing is now running on up-to-date platforms: jdk 7.2.0_u4, javafx-2_2_0-beta-b10, NetBeans 7.2 Beta, and JavaFxSceneBuilder 1.0 (which is now somewhat integrated into NB7.2).
    The basic problem--highlighted text-fill color for both TextField and TextArea remains BLACK when double-clicked or selected draging cursor. This should be WHITE by default and the black text is almost invisible.
    Another discovery is that the legendary CTL-Z does not work within TextArea or TextField. All of the other edit keys seem to be fine. My applications have a lot of edit functions so not having an "undo" function is disappointing. Maybe there is some API disclaimer as to CTL-Z being unsupported. Anyone know about this?

  • TextField and TextArea do not update

    I have a table with a TextArea and a TextField. The table shows certain rows from a database based on a filter. The filter basically only shows rows owned by a certain user. When I change ownership, the particular row from the table disappears as it should.
    When I do that however, the TextArea and TextFields from the removed row are now showing on the row that used to be below it. I tried to call dataProvider.refresh() from the button that changes the owenrship and the problem persists. I tried the same in prerender to no avail. However, when I call refresh from another button after the "bad" page renders, the correct values show.
    If I change the TextArea and TextField to Static Text, everything works OK.
    Any ideas? Thanks, Vlad

    Hi,
    Im 95% sure the problem is located in my script ...
    I updated the membersheet of the P_DataSrc dimension and created the business rule according to the HTG.
    I have following dimensions in my default PLANNING application:
    Category, Entity, FLOW, IntCo,P_ACCT, P_Activity, P_DataSrc, RptCurrency, Time
    So what should be my script than? Are the keywords used on the left-hand side of the equasion always the same or do they depend on the dimensions used? I have now for example:
    *RUN_PROGRAM ICDATA
    CATEGORY = %CATEGORY_SET%
    RPTCURRENCY = %RPTCURRENCY_SET%
    P_DATASRC = %P_DATASRC_SET%
    TID_RA= %TIME_SET%
    ENTITY = %ENTITY_SET%
    TYPE = 'I'
    *ENDRUN_PROGRAM
    Points will be awarded
    D

  • Simple parameter question ie db_name and usage in an expression

    Hi,
    I just started with SSIS with an example containing a flat xls file with 5 columns and a source table in sql.
    The example works fine no parameters etc.
    What I want to try out is to make an exception that if a certain db_name = X then the flow should be redirected to another table.
    Basicly I need help how to define a parameter to read from the source database like "select db_name as db_name" and use this in the package flow. When db_name=X then flow A ELSE flow B
    Any help is very appreciated.
    -Miracles are easy, the impossible takes a bit longer-

    Hi Paul,
    Create an object variable with name varObj and create a string variable with name as varDBName
    Use this as source query in execute sql tasK: Select <DBNamefield> from Table. In execute sql task do the following:
    On General tab: set Result set as Full Result Set
    On Result Set tab: Click Add and set Result Name as 0 and select varObj as Variable Name. This variable will capture the value returned from the select statement.
    Take a for each loop container and configure it as:
    On Collection tab: Enumerator: for each ado enumerator; ADO Object source variable: varObj; Enumeration Mode: Rows in first table.
    On Variable Mappings tab: Select varDBName as variable and set Index as 0.
    Inside the for each loop put the data flow task. Configure the data flow task and use a conditional split to redirect the rows based on varDBName as : @[User::varDBName]=="x" and so on for different outputs
    Nitesh Rai- Please mark the post as answered if it answers your question

  • Simple Layout Question

    I need to create an application with the following layout properties:
    a) It's always in the 4;3 ratio with default size of 800x600 and resizeable from 640x480 to 1024x768
    b) It needs to be divided into left side that takes up 20% of space and right side that takes up 80% of space.
    c) Left and right sides are to be independent rectangular areas within which widgets can be docked.
    What is the simplest way for a noob ( : me : ) to do this?
    Thanks.

    Set the layout property of the Application to horizontal
    If your using Flex 3, use <mx:Canvas /> tags
    If using Flex 4, use <s:Group /> tags
    Here's a Flex 4 example:;
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx"
         width="800" height="600" >
         <s:layout>
              <s:HorizontalLayout />
         </s:layout>
         <s:Group width="20%" />
         <s:Group width="80%" />
    </s:Application>

  • Just a simple layout question ;)

    Hi,
    I just want to create a panel (panel got border layout) where the center panel contain a JScrollPane...
    the east panel contain a JScrollPane too - now i want to synchronize the layout i.e. the height of both
    scroll panes ... i.e. if the size of the ground panel change, the height of both scroll panes should change
    in the same way ...
    Now I don't want to add a component listener to update the east scroll pane every time the center scroll
    panes scroll pane change it's height ... so any solutions using a default layout manager?
    regards,
    Olek

    Olek wrote:
    Ok,
    Thank you for the replies.
    The problem is a little bit more complex.
    The east panel is a JXCollapsiblePane from SwingX.
    The collapsible container got VerticalLayout. The contaning JPanel got BorderLayout.
    Now i want to add a JScrollPane centered at this panel. The scrollpane is layed out with
    the preferred size of the JPanel - ok.
    The problem is, that there is much unused space below
    the scroll pane. This results of the preferred size of the JPanel ... now
    i want to synchronize the preferred size of the JPanel on the east with the JScrollPane
    of the center component of the ground panel.
    I actually try to add a component listener... but this is not the solution I prefer...
    OlekSo why do you post a question with missing information?
    This is a specific question related to the components you're using.
    I can't help you unless you post a SSCCE that demonstrates the problem.

  • Beginners CSS layout question - expanding a layer and not overlapping another

    Having got well and truly fed up of using tables to layout
    pages I am trying to gem up on CSS layer based layout. All well and
    good but despite the various tutorials I can't find an answer to
    this question...
    Q. I have a layout with layers to make a three column layout,
    however, I want to have a footer section at the bottom of the page
    that runs the same width as the three columns (you can see my WIP
    example here
    http://www.spiralfilm.com/clients/broadoak/index_css.html
    ). Problem is, as the centre section expands with more content, how
    do I make that section expand and not overrun the current footer
    section? I want it to expand like a table does and push the footer
    down.
    I'm sure it is simple but I just can't get my head around it!
    Thanks in advance for any pointers...

    > However, is the use of div tags the way to seperate
    blocks of content? The
    > DW8
    > help file seems a little unclear on this?
    Yes, it would be one way to do that. A div tag is simply a
    container for
    other HTML elements, like a table. The problem you are having
    comes with
    using DW 'layers' to contain text. As Thierry suggested, this
    is because
    absolutely positioned elements (i.e., DW 'layers') are
    removed from the
    normal flow, preventing them from interacting with adjacent
    page elements -
    this means that when the text inside them expands, it will
    begin to overlap
    other content. See my demonstration of this here -
    http://www.great-web-sights.com/g_layers-overlap.asp
    Try these tutorials -
    http://www.macromedia.com/devnet/mx/dreamweaver/css.html
    http://www.macromedia.com/devnet/dreamweaver/articles/tableless_layout_dw8.html
    http://www.macromedia.com/devnet/dreamweaver/articles/css_concepts.html
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Benfrain" <[email protected]> wrote in
    message
    news:elgpba$qds$[email protected]..
    > Hi, thanks for those links. Sorry to confess they are
    all a little beyond
    > my
    > knowledge. I will read on and see if I can understand
    them.
    >
    > However, is the use of div tags the way to seperate
    blocks of content? The
    > DW8
    > help file seems a little unclear on this?
    >

  • CSS layout question regarding browser sizing

    Hi,
    Basically I want the basis of my site to be - A header, Main content with a background image, A Footer.
    I'm having problems however, I can't seem to get my footer to position where I want it i.e. at the bottom of the browser window at all times. I'm doing it as an AP div and how it should work is that it's fixed at the bottom of the page and then if the user resizes their browser in the y direction the footer moves up with it, over the top of the main content (but not the header which will have a higher z-index).
    The way I THOUGHT to do it was to firstly create a div tag for the whole page (780 pixels wide, auto left and right margins, auto height) and then inside that put my ap div header fixed height at the top and have another ap div as the footer, fixed height and tell it to position 0 pixels from the bottom. However this doesn't seem to do the trick, I'm sure I'm missing something really really simple. Anyone who's vaguely familiar with the program will be able to answer this I'm sure. If my question isn't clear please let me know and I'll rephrase,
    Ta

    There is no reason to use APDivs for such a simple layout.  Default CSS positioning (which is no positioning at all) is typically all you need for most layouts.  Build your HTML markup logically from top to bottom of page and your footer will naturally appear at page bottom.
    Live Demo (view page source to see the code)
    http://alt-web.com/TEMPLATES/Basic-1-col-fixed.html
    Or, for a Sticky Footer using Fixed positioning:
    http://alt-web.com/DEMOS/CSS2-Sticky-Footer.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • Simple layout problem

    Hi,
    I am trying to make a simple graph applet, but the layout of the
    table along the x axis is giving me some problems. If you compile
    and run the following code you will see what I mean
    import java.awt.*;
    import java.applet.*;
    public class Lines2 extends Applet {
            TextField start_prompt;
            TextField stop_prompt;
            TextArea result_area;
    public void init(){
            start_prompt = new TextField();
            stop_prompt = new TextField();
            result_area = new TextArea();
            setLayout(new BorderLayout());
            Panel panel = new Panel();
            Panel panel2 = new Panel();
            panel2.setLayout(new GridLayout(1, 9));
            add(panel2, "South");
            add(panel, "West");
            panel2.add(new Label(""));
            panel2.add(new Label("Sundays"));                                         
            panel2.add(new Label("Mondays"));               
            panel2.add(new Label("Tuesdays"));       
            panel2.add(new Label("Wednesdays"));
            panel2.add(new Label("Thursdays"));
            panel2.add(new Label("Fridays"));
            panel2.add(new Label("Saturdays"));
            panel2.add(new Label(""));
    public void paint(Graphics g){
        g.drawLine(40,330,650,330);
        g.drawLine(40,330,40,40); 
    }The problem is that "Wednesdays" and "Thursdays" are smushed
    together as you can see. I need a way to widen the gap between them.
    I tried adding a blank Label but that made the gap to large. Anybody
    have any ideas that would help me?
    Thks....

    How about panel2.setLayout(new GridLayout(1, 9, 5, 0))?

  • How do I limit the size of a TextField and do an auto advance of that field

    Attached is a copy of my program. It reads a bar code and enters that bar code into a textfield and 2 text areas. everything is working fine except I want the bar code read to trigger a print to the 2 text areas automatically instead of the user having to hit the enter key. Any suggestions on where I should start researching or any snippets of code that I could use would be appreciated.
    //-------------------Buffalo Offline Scan Program------------
    //This program will allow the Buffalo user to continue scanning cases on pallets
    //when the AS\400 is down. The scans will be sent to a flat file that will be
    //FTPed to the AS\400 when it is back up and update the proper files.
    //Program Author: Susan Riggin
    package javalab;
    import javabook.*;
    import javalab.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.applet.*;
    import java.io.*;
    import java.io.File.*;
    import java.util.*;
    public class BuffOff extends Applet implements ActionListener
    //               Data Members
         //Variables
         private int scanCount = 0;
         private int sessionCount = 0;
         //Labels
         private Label buffaloLabel = new Label();
         private Label scanLabel = new Label();
         private Label cPalletLabel = new Label();
         private Label cCountLabel = new Label();
         private Label tPalletLabel = new Label();
         private Label tCountLabel = new Label();
         private Label rButtonLabel = new Label();
         private Label eButtonLabel = new Label();
         //TextFields
         private TextField scanTextField = new TextField(6);
         //Buttons
         private Button rButton = new Button("Reset");
         private Button eButton = new Button("Exit");
         //Text Areas
         private TextArea cTextArea = new TextArea( 10, 40);
         private TextArea tTextArea = new TextArea(10, 40);
         public void paint(Graphics g){
         Toolkit kit = Toolkit.getDefaultToolkit();
         Image imageA = kit.getImage("d:\\\\javaproj\\javalab\\abbott.gif");
         g.drawImage(imageA, 555, 5, 50, 50, this);
    //               Constructor
    public BuffOff()
         //Attach the GUI objects so they will appear on the screen.
         setLayout (null);
         buffaloLabel.setBounds(203, 5, 200, 27);
         buffaloLabel.setFont(new Font ("dialog",Font.BOLD, 18));
         buffaloLabel.setAlignment(Label.CENTER);
         buffaloLabel.setText("Buffalo OffLine Scan");
         cPalletLabel.setBounds(18, 60, 291, 23);
         cPalletLabel.setFont(new Font ("dialog", Font.BOLD, 14));
         cPalletLabel.setAlignment(Label.CENTER);
         cPalletLabel.setText("Current Pallet");
         cPalletLabel.setBackground(Color.cyan);
         tPalletLabel.setBounds(322, 62, 291, 23);
         tPalletLabel.setFont(new Font ("dialog", Font.BOLD, 14));
         tPalletLabel.setAlignment(Label.CENTER);
         tPalletLabel.setText("Total Pallets");
         tPalletLabel.setBackground(Color.pink);
         rButton.setBounds(129, 485, 56, 23);
         rButton.setBackground(Color.cyan);
         rButton.setLabel("Reset");
         eButton.setBounds(459, 485, 56, 23);
         eButton.setBackground(Color.pink);
         eButton.setLabel("Exit");
         cCountLabel.setBounds(18, 88, 291, 23);
         cCountLabel.setFont(new Font("dialog", Font.BOLD, 12));
         cCountLabel.setAlignment(Label.CENTER);
         cCountLabel.setText("Current Pallet Case Count = " + scanCount);
         cCountLabel.setBackground(Color.lightGray);
         tCountLabel.setBounds(322, 88, 291, 23);
         tCountLabel.setFont(new Font("dialog", Font.BOLD, 12));
         tCountLabel.setAlignment(Label.CENTER);
         tCountLabel.setText("Total Pallet Case Count = " + sessionCount);
         tCountLabel.setBackground(Color.lightGray);
         scanLabel.setBounds(120, 33, 160, 23);
         scanLabel.setFont(new Font("dialog", Font.BOLD, 14));
         scanLabel.setAlignment(Label.CENTER);
         scanLabel.setText(" Current Barcode Scan: ");
         scanTextField.setBounds(300, 34, 58, 23);
         scanTextField.setBackground(Color.white);
         eButtonLabel.setBounds(322, 460, 291, 23);
         eButtonLabel.setAlignment(Label.CENTER);
         eButtonLabel.setBackground(Color.pink);
         eButtonLabel.setText("Press Exit to end Program.");
         rButtonLabel.setBounds(18, 460, 291, 23);
         rButtonLabel.setAlignment(Label.CENTER);
         rButtonLabel.setBackground(Color.cyan);
         rButtonLabel.setText("Press Reset for next pallet scan.");
         cTextArea.setBounds(18, 118, 291, 333);
         cTextArea.setBackground(Color.cyan);
         tTextArea.setBounds(322, 118, 291, 333);
         tTextArea.setBackground(Color.pink);
         //Place the GUI objects on the applet.
         add(buffaloLabel);
         add(scanLabel);
         add(cPalletLabel);
         add(cCountLabel);
         add(tCountLabel);
         add(tPalletLabel);
         add(cCountLabel);
         add(rButtonLabel);
         add(eButtonLabel);
         add(scanTextField);
         add(rButton);
         add(eButton);
         add(cTextArea);
         add(tTextArea);
         //Add applet as an action listener.
         scanTextField.addActionListener(this);
         rButton.addActionListener(this);
         eButton.addActionListener(this);
    //               Methods that make the program work
    //---------method for action performed and action event---------
         public void actionPerformed(ActionEvent e)
         if (e.getSource() == eButton) exit();
         if (e.getSource() == scanTextField) {
              try {     
                   scan();
              catch(IOException f){}
         if (e.getSource() == rButton) reset();
    //-------------method for pressing the exit button---------------
         private void exit()
         System.exit(0);
    //------------method for pressing the reset button---------------
         private void reset()
         scanCount = 0;
         scanTextField.setText("");
         cTextArea.setText("");
         cCountLabel.setText("Current Pallet Case Count = " + scanCount);
         scanTextField.requestFocus();
    //------------method for scanning barcode------------------------
         private void scan() throws FileNotFoundException
         String scanText = scanTextField.getText();
         if (scanText.equals("999999")) reset();
         else{
         String cTime, cDate;
         File scan = new File("d:\\\\javaproj\\javalab", "scan.txt");
         //adds the date and time to entries
         Clock myClock = new Clock();
         cTime = myClock.getCurrentTime();
         cDate = myClock.getCurrentDate();
         //Add to counts
         ++scanCount;
         ++sessionCount;     
         //Append scanned data to text areas
         cTextArea.append(scanCount + "->" + scanText + " " + " " + cDate + " " + cTime );
         cCountLabel.setText("Current Pallet Case Count = " + scanCount);
         cTextArea.append("\r\n");
         tTextArea.append(sessionCount + "->" + scanText + " " + " " + cDate + " " + cTime);
         tCountLabel.setText("Total Pallet Case Count = " + sessionCount);
         tTextArea.append("\r\n");
         //Append scanned data directly to flat file.
         try
         FileWriter outputFile = new FileWriter("d:\\\\javaproj\\javalab\\scan.txt", true);
         outputFile.write(scanTextField.getText());
         outputFile.write(myClock.getCurrentDate());
         outputFile.write(myClock.getCurrentTime());
         outputFile.write("\r\n");
         outputFile.close();
    catch (IOException e)
         //clear the scan field
         scanTextField.setText("");
         // position the cursor
         scanTextField.requestFocus();
    Thanking you in advance for your assistance!!!!!!!!!
         

    Sorry that you're still having trouble :-( The title of your post seems a little different to your description of the problem, but I'm assuming you want the textfields to auto-scroll so they always show the last entry?
    Try this://Append scanned data to text areas
    cTextArea.append(scanCount + "->" + scanText + " " + " " + cDate + " " + cTime );
    cCountLabel.setText("Current Pallet Case Count = " + scanCount);
    cTextArea.append("\r\n");
    //ADD CALL TO AUTO-SCROLL METHOD:
    autoScroll(cTextArea);
    tTextArea.append(sessionCount + "->" + scanText + " " + " " + cDate + " " + cTime);
    tCountLabel.setText("Total Pallet Case Count = " + sessionCount);
    tTextArea.append("\r\n");
    //ADD CALL TO AUTO-SCROLL METHOD:
    autoScroll(tTextArea);Then you need to add this method to your class:private void autoScroll(TextArea textArea){
        //get the length of the text in the text area:
        int endOfText = (textArea.getText()).length();
        //...then set the caret position to the end:
        textArea.setCaretPosition(endOfText);

  • (CSS) Can this simple layout idea be better coded?

    Hi guys,
    I'm trying to build a very simple layout made slightly more complex via a background gradient that needs to be in sync with the foreground image.
    http://vilverset.com/murray.php
    As you can see, the layout is supposing a 1000px wide viewport, or bigger. The foreground image is 650px wide, and the text column next to it is 350px wide. This fills up our 1000px viewport.
    Now, normally, I would just apply the image as a background to the text column's container (and make that container 1000px wide), except that there are a few conditions to this layout that make that solution ill-advised.
    When there's enough content to fill it, the text column needs to stretch from the top to the bottom of the viewport, and trigger the main browser vertical scrollbar when exceeding this window.
    When there isn't enough content to fill the length of the column, the content should be vertically centered.
    The image on the left of the column should be vertically centered at all times, or it will lose its sync with the site's background gradient.
    The image on the left of the column should never scroll with the content. It should be fixated.
    The combination of the image and column should be centered in the viewport (both axis).
    You've seen how I did it @ the link above. Div class "image" has the main image as a background, and this image is padded to extend to fill the whole 1000px width of the site layout. It's the only way I could think of to offset the image from the center spot. Ditto the text column, which is in a 350px wide div, that has a 650px left side margin (totalling 1000px).
    The main negative side-effect of this method occurs when you reduce the viewport to less that 1000px in width. The image starts moving AWAY from the column (as you can see by trying it out at the link above).
    If there's a better way to get that image and that column into position, and the combination of both centered on the screen in both axis... I'm willing to try it!

    I'm glad you're pleased with your layout.     I'm having a few problems with it.
    When viewed on a narrow screen such as an iPhone in landscape mode, your image moves leftwards out of view.  And when device is scrolled horizontally to see content, text collides with the image.  Is this what you want to have happen? (see screenshot)
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    mjyeager wrote:
    You tell me these things can't be done, but I've got foreground JPGs with gradients perfectly in sync with the background gradient, and neither of them scrolls with the text content. So not only can it be done, I've done it. Right there, at that link I posted in the OP. And it works in all major browsers, including Safari on Mac.
    I was just wondering if there was a BETTER way to do it. But if people are going to start telling me it simply can't be done, when the proof that it can is staring them in the face, then I guess I'll just count myself lucky that I achieved what I've achieved and stick with what I've got.

  • 4 Simple Flash Questions that Are Stumping Me!

    What is the Frame Rate for Web Animations
    Q1. I am making an animation which will be played on the web. What is the default frame rate (fps) of Flash CS5? And what is the frame rate of for web?
    Q2. My animation needs to be 30 seconds long. So at 15 fps that would mean I need to use 600 frames in Flash?
    How Do I Mask everything so all I see is the Content on the Stage?
    I have a wide image that extends past my movies stage size so when I preview my movie the image is visible. How do I mask out anything that extends past my movies window size? I believe I can create a layer named "mask" and place it above all other layers, but I forget how to make the mask. Any help is appreciated.
    How to Fade a Graphic
    I have a graphic element (some type) and I want it to fade from 0% to 100%. In older versions of Flash I could just select the symbol and then set it's alpha value to 0%, move a few keyframes and then set the alpha to 100%. Voila! but now it doesn't seem to work that way. How can I do this in CS5?

    Ned, it says 24 fps which means there is 24 frames per second so each 24 frames is 1 second.
    Date: Fri, 4 Nov 2011 05:35:16 -0600
    From: [email protected]
    To: [email protected]
    Subject: 4 Simple Flash Questions that Are Stumping Me!
        Re: 4 Simple Flash Questions that Are Stumping Me!
        created by Ned Murphy in Flash Pro - General - View the full discussion
    1 You can create your character as a movieclip and copy/paste that movieclip from one file to another. 2. One way to create a movieclip is to copy all the frame of the animation's timeline (select them all, right click the selection, choose Copy Frames), then create a new movieclip symbol (Insert -> New Symbol...etc) right click on its only keyframe and chhose Paste Frames.  THat will put all the layers and frames you copied into the movieclip The only way to come close to being certain about the timing of you animation is to use code to keep track of the time, something like getTimer()..  The frame rate that a file plays at is not a reliable means of dictating the time it takes due to a variety of factors which include the amount of content you are trying to process and performance limits of the user's machine.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4007420#4007420
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4007420#4007420. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Flash Pro - General by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Simple performance question

    Simple performance question. the simplest way possible, assume
    I have a int[][][][][] matrix, and a boolean add. The array is several dimensions long.
    When add is true, I must add a constant value to each element in the array.
    When add is false, I must subtract a constant value to each element in the array.
    Assume this is very hot code, i.e. it is called very often. How expensive is the condition checking? I present the two scenarios.
    private void process(){
    for (int i=0;i<dimension1;i++)
    for (int ii=0;ii<dimension1;ii++)
      for (int iii=0;iii<dimension1;iii++)
        for (int iiii=0;iiii<dimension1;iiii++)
             if (add)
             matrix[i][ii][iii][...]  += constant;
             else
             matrix[i][ii][iii][...]  -= constant;
    private void process(){
      if (add)
    for (int i=0;i<dimension1;i++)
    for (int ii=0;ii<dimension1;ii++)
      for (int iii=0;iii<dimension1;iii++)
        for (int iiii=0;iiii<dimension1;iiii++)
             matrix[i][ii][iii][...]  += constant;
    else
    for (int i=0;i<dimension1;i++)
    for (int ii=0;ii<dimension1;ii++)
      for (int iii=0;iii<dimension1;iii++)
        for (int iiii=0;iiii<dimension1;iiii++)
           matrix[i][ii][iii][...]  -= constant;
    }Is the second scenario worth a significant performance boost? Without understanding how the compilers generates executable code, it seems that in the first case, n^d conditions are checked, whereas in the second, only 1. It is however, less elegant, but I am willing to do it for a significant improvement.

    erjoalgo wrote:
    I guess my real question is, will the compiler optimize the condition check out when it realizes the boolean value will not change through these iterations, and if it does not, is it worth doing that micro optimization?Almost certainly not; the main reason being that
    matrix[i][ii][iii][...]  +/-= constantis liable to take many times longer than the condition check, and you can't avoid it. That said, Mel's suggestion is probably the best.
    but I will follow amickr advice and not worry about it.Good idea. Saves you getting flamed with all the quotes about premature optimization.
    Winston

  • FCSvr Inital setup layout questions

    Hi -
    We are looking at deploying FCSvr in our video production facilities. I am starting to familiarize myself with the software and what it needs. We want to set it up in our "limited" facilities to test it and learn, but we also want to avoid any pitfalls down the road if/when we pour some money into this project.
    that being said we have the following resources:
    1 XServe RAID (XSR)
    4 Edit stations (G5 Towers With FCP) - one G5 is hooked up to the XSR over FC
    1 24" iMac
    What would be the best way to set up FCSvr in this environment? Of the 4 edit stations, only one is currently connected to the XSR.
    My initial thought was to install FCSvr on the one Edit station G5 so FCSvr would have access to the XSR. That machine would be able to edit in place, and FCSvr could manage all assets on the XSR (production/proxies etc). The other 3 edit stations would have the FCSvr client and would have to "check out" projects. This has a couple of problems though. One, that Edit station would now being pulling double duty, and we'd need to adjust the scanning/automation parts of FCSvr as to not hose the machine.
    The other thought was to install the FCSvr software on the iMac. But, it would then need to access the Xserve RAID via AFP/CIFS (shared off the one G5 edit station). I don't know if this would be too slow or not?
    Ideally, I'd like to get a dedicated Xserve "server" and have it manage the Xserve RAID and run FCSvr software...but there isn't a budget for that.
    Lastly, if we did put fibre channel cards in the other edit stations, and purchased a FC switch - how would we manage volumes on the XSR? You can't have machines all mounting luns with read/write access...
    thanks.

    Hi,
    Let me try to answer your questions.
    rtc is the common namespace that is used for the afcs
    components. So, if you are using the afcs.swc in your project
    library path , and you have this line xmlns:rtc="AfcsNameSpace" in
    your application tag, then you can put rtc:SharedWhiteBoard or
    rtc:AnyCocomoComponent .
    The SharedWhiteboard class lies in com.adobe.rtc.pods folder.
    So, if you want to use your own namespace , something like
    xmlns:pods = "com.adobe.rtc.pods.*" in application tag, then you
    can use pods:SharedWhiteBoard. Though we always recommend you can
    use the default rtc Namespace.
    AFCS Dev Console helps you understand the room and all the
    collection nodes, messages items and nodes inside your room. You
    can also set various properties for room, users , files etc through
    AFCS Dev Console. It is a very handy tool for debugging your
    application. Read more about the Dev Console in afcs.pdf under
    docs/pdf folder.
    Are you sure , you have run your application as host once.
    You need to first enter any application as host to create the
    required collection nodes as guests don't have permission for doing
    that. In the example, I can see you are only passing userName ,
    which will login a user as guest. That is fine as long as you have
    gone once as host and set up the collection nodes.
    All the files are compiled in .swc So, you don't need to add
    any additional files. However, you can link the source code
    sometimes in your source -path for better debugging but no
    additional files are required.
    Hope this helps.
    Thanks
    Hironmay Basu

  • How can I make my question slide look and act like the rest of the project?

    Hi,
    I have created my project without using a template. Each time I needed to create a new screen I simply duplicated the slide and then inserted new text. This worked quite well. However, when I tried to do this for a question slide, it wouldn't let me (obviously).
    Is there a way of customising a question slide to look exactly like the rest of my project (and have the interactivity on the slide that the rest of the project has)? When I tried designing a new template and question template side and applying it to the question slide in my project, I could only insert a static image as the background on the template slide. Needless to say, there was no interactivity on the slide, i.e. no active click boxes etc, and I couldn't add these either when I applied it to the slide.
    Any help is much appreciated. This is for a Masters project, so I'm still learning the basics.
    Thanks.

    Hi Lilybiri,
    I am using Captivate 4. All of my screens so far look like a website - with menus and makeshift spry menus (image maps with click boxes). My preference is to use this layout for the question slides. However, it sounds like this isn't possible. What do other people do to make their question slides look a part of the course?
    Thanks.

Maybe you are looking for

  • Error Message while doing Order CLSD

    Hi, I am getting error message while doing Order CLSD... Error Msg: Invalid cost element(XXXX) for reservation item 010. please suggest me...how to solve this issue. regards, Venkatesan Anandan

  • Adding files to iWeb site using .mac

    Hi Apologies if this has been answered before but I would like to achieve the following: I have an iWeb site published to a .mac account. I would like to add links to other files such as m3u or qtl playlists and host the mp3/mov files somewhere else

  • Place a PDF file in IDCS2

    I have begun to get a error message "failed to open PDF" when placing a pdf file into a ID document. This started suddenly so I assume some preference setting got changed, but I am at a loss of where to turn next. I am running IMAC G5 using OSX10.4.1

  • JAR file which needs other JAR files

    Hi, I try to run a jar file, which imports some external classes. These classes are in the library "reader.jar", which is added to the classpath. But if I start it with ...      D:\TestProject>java -cp ./reader.jar -jar viewer.jar ... I get an error:

  • Intergrated Camera B5400 listed as working but no picture

    Hi, I have a B5400 laptop, my built in camera worked on purchase but has since stopped.  It is listed in the device manager and says its working OK.  When I try to use it on Skype I can record sound but no video. I have downloaded latest drivers and