retrieve the scene of a node

Hello
I have two components that need to "iconize" of the host (such as stage.setIconified) window.
These nodes are placed in 2 different windows, and the problem is that I can't recover the phase which contains a node.

Right now, I use a static method in the main class (the one with the start method).

public static {getStage() scene
Return globalStage.
}

but I think this isn't the best solution.

Do you know how to solve the problem by taking a scene from a node reference?

Thank'you!

Retrieve the scene of a node

Button btn = new Button();
Stage st =  (Stage)btn.getScene().getWindow();

Tags: Java

Similar Questions

  • Can I put user data on a node in the scene Builder?

    I wish I could (somehow) set the user on each node data when you use the generator from the scene.

    Is this possible?  All I really need is to be able to assign the name of the class to the user data object, but I don't see that he listed in the properties pane.

    You need to do when running after loading FXML.

    Or simply by editing the FXML after you've built with SceneBuilder. It works fine:

    
    
    
    
    
    
    
    
    
    
    
      
  • Failed to retrieve the configuration of database file when installing EBS on 2 nodes

    I try to install EBS 12.1.1 on two different nodes on Redhat Linux 5. After properly installing the database on node1 (ebsdb), I started rapidwiz on node2 (ebsapps) to install the application technology. When I get to the screen where it asks "Do you want to create a new configuration or load a saved?", I chose to load a saved configuration, typied in the database connection information (ebsdb.sparkdb.com:PROD:1521) and get the following error. Anyone know what I am doing wrong? I am able to ssh to ebsdb to ebsapps and vice versa, and the database and listener is in place.

    Failed to retrieve the database configuration file.

    user564785 wrote:
    What file must be copied from DB node to the node of Apps and what place?

    conf_.txt - http://docs.oracle.com/cd/E18727_01/doc.121/e12842/T422699g54568.htm

    You can copy the file to any place on the application-level nodes.

    Thank you
    Hussein

  • How to retrieve the value of base on the value on other nodes

    Hi, I have a XML below
    <? XML version = "1.0" encoding = "iso-8859-1"? > <? XML-stylesheet type = "text/xsl" href="C:\temp\horizontal.xsl"? " >
    < Type report = "REPORT" >
    < prop Type = 'Result' Flags = "0 x 0" > "
    < prop Name = 'STEP' Type = "Obj" Flags = "0 x 0" > "
    < prop Name = 'Sequence' >
    < prop Name = 'RList' >
    < ArrayElementPrototype Type = "TEResult" Flags = "0 x 0" > "
    < / ArrayElementPrototype >
    < value ID "[0]" = >
    < prop Type = 'Result' Flags = "0 x 0" > "
    < prop Name = "Status" Type = "String" Flags = "0x400000" > "
    < value > < / value >
    < / prop >
    < prop Name = "ReportText" Type = "String" Flags = "0x400000" > "
    < value > < / value >
    < / prop >
    < prop Name = "Common" Type = "Obj" TypeName = "CommonResults" Flags = "0 x 0" > "
    < / prop >

    < / prop >
    < / value >
    < value ID "[60]" = > = > ID is not set
    < prop Type = 'Result' Flags = "0 x 0" > "
    < prop Name = "Error" Type = "Obj" TypeName = "Error" Flags = "0x400000" > "
    < prop Name = "Code" Type = "Number" Flags = "0x400000" > "
    < value > 0 < / value >
    < / prop >
    < prop Name = "Msg" Type = "String" Flags = "0x400000" > "
    < value > < / value >
    < / prop >
    < prop Name = "occurred" Type = "Boolean" Flags = "0x400000" > "
    < value > false < / value >
    < / prop >
    < / prop >
    < prop Name = "Status" Type = "String" Flags = "0x400000" > "
    < value > spent < / value >
    < / prop >
    < prop Name = "Numeric" Type = "Number" NumFmt = "%i" Flags = "0 x 2400" > "
    < Value > * 88 * < / value > = > value I want back
    < / prop >
    < prop Name = "ReportText" Type = "String" Flags = "0x400000" > "
    < value > < / value >
    < / prop >
    < prop Name = "Common" Type = "Obj" TypeName = "CommonResults" Flags = "0 x 0" > "
    < / prop >
    < prop Name = "Units" Type = "String" Flags = "0x2000" > "
    < Value >TESTDATA< / value > = > basic data
    < / prop >

    < / prop >
    < / value >

    < / prop >
    < / prop >
    < / prop >
    < / prop >
    < / report >

    I want to retrieve the value 88 the TESTDATA found in this node, can someone show me how to recover?

    Thank you

    Vincent

    Published by: pj * April 29, 2011 01:14

    Yes, it is possible, but the query will be slightly less effective.

    SELECT XMLQuery(
            'for $i in $d/descendant::Value/Prop
             where $i/Prop[@Name="Units"]/Value = $PropValue
             return $i/Prop[@Name="Numeric"]/Value/text()'
             passing t.object_value as "d"
                   , sys_xmlgen('TESTDATA') as "PropValue"
             returning content
           ).getNumberVal()
           as result
    FROM test_xml t
    ;
    
  • Why jump nodes in my group originally from the root of the scene?

    My project code is too big to post, so I'll try to explain the problem that I am facing. I'm creating a tool of graphic layout as part of the largest visualization tool which we build.

    The problem I have is a group that I've positioned using layoutX, we jump to the origin whenever we do the graphic layout.

    Here is the basic flow of the program:

    1. We create a graph of JUNG's Circle (vertices) and Lines (edge)
    2. JUNG layout classes allows us to generate a layout for the chart. The layout generates an x, position y for each vertex in the graph in a particular area. Say a box of 400 by 400.
    3. We use the positions generated to define the properties centerX, centerY of the circles. The lines are tied to the centers of the nodes they're going between, so they update automatically.

    All this is done to present the original graphic layout. The user can select nodes and choose them to be prepared in a new way. This creates a sublayout on the Web. When the circles are selected move us to a group position in the exact spot where they were selected. The groups are made adjustable and can be moved across the canvas. Update the lines and circles do not move compared to the benchmark of their parent group. Only their container is moved inside sceneRoot.

    The scengraph looks like:

    VBox

    Group: sceneRoot

    Circles and lines that make up the original graph

    Group: sublayout

    Circles and selected lines

    The problem comes when we try to make the layout of the selected nodes. We generate a subgraph of JUNG. Then we make the graphical layout with the subgraph to the circles that it contains new positions. We ask the page layout to generate a layout, the size of the sublayout group. This method works. JUNG generates new values for the positions of the circles. When we created the centers of the circles, the group goes to the top left corner - origin of the sceneRoot. In my view, the Group should not move at all. Is layoutX, there have been established and the circles are positioned relative to origin of sublayout. I can't understand why the group jumps to the origin. It should stay in place.

    I thought about it!

    The problem was by using a group as the root of the Web. Limits of the group are the sum of the limits of his childhood. This means that the limits of the group will change according to what is in it. When the VBox kicked out, it would move because the new bounding box. The fix was to use a component. A pane is resized according to the rules of pref/min/max and does not fear for the sum of its children. This is one containing more "solid".

  • How can I get the content of a node TreeField?

    I need to keep the contents of a TreeField.

    I believe that the only way to do that is to keep the content of the tree instead of the tree itself.

    However, I can't drive how to get the content of a node.

    I found the method to get the node ID, but nothing to get the string value that contains the node.

    Any suggestions?

    Thank you.

    the objects contained in a treefield are known cookies.
    You can use http://www.blackberry.com/developers/docs/6.0.0api/net/rim/device/api/ui/component/TreeField.html#ge...
    to retrieve one for the node id.

  • Failed to retrieve the site definition for the ATG 11.1 site id

    Hello

    I'm trying to access a page /browse created under the site of siteStoreUs in the experience Manager. If I try to access the page of the application, observe the error with the blank page below.

    We work with ATG 11.1

    Please help me to solve this error.

    18:08:32, 401 SEVERE [atg.endeca.assembler.multisite.ExtendedSiteManager] (http-/0.0.0.0:8080-6) unable to retrieve the site for the site id of the site definition: /siteStoreUS: com.endeca.store.exceptions.

    PathNotFoundException: No node found at path: [pages].

    at com.endeca.store.configuration.InternalNode.getNode(InternalNode.java:153) [_DAF. [Endeca.Assembler_slib_sendeca__assembler__core - 11.1.0.jar:11.1.0]

    at com.endeca.store.configuration.InternalNode.getNodeInfo(InternalNode.java:221) [_DAF. [Endeca.Assembler_slib_sendeca__assembler__core - 11.1.0.jar:11.1.0]

    Thanks in advance,

    Ravinder Pogulakonda

    The resolution is here;

    Set storeFactory = / atg/short/assembler/cartridge/manager/DefaultFileStoreFactory in /atg/endeca/assembler/cartridge/manager/DefaultWorkbenchContentSource.properties

    Make sure of course below are configured correctly

    -Site of short Id to the element of site must correspond with the name of the site in the Manager(Ex: If the site name in XM is "homeSite", then Endeca site id in the site item should be "/homeSite") experience

    -Set configurationPath=C:/Endeca/ToolsAndFrameworks/11.1.0/server/workspace/state/repository/ /atg/endeca/assembler/cartridge/manager/DefaultFileStoreFactory.properties

    -Create the user segment in XM to /homeSite as site.homeSite.

    I hope this helps

    Thank you

    Ravinder

  • Retrieve the element of the SOAP response

    Hello world

    DB version 11.2.0.4

    Tool: pl/sql developer

    How can I retrieve the element of NfeLinkDanfe by using the xmlQuery? It is a SOAP response...

    With this query, I can retrieve the node "SOAP - ENV:Body", but I Don t know how to get an attribute of the child:

    Select (xmlcast)
    XMLQUERY)
    ' declare namespace SOAP-ENV = "http://schemas.xmlsoap.org/soap/envelope/"; (:
    declare namespace xx = "GXX_KB001_v2.1.0.0"; (:
    / SOAP-ENV:Envelope/SOAP-ENV:Body/WSRecepcaoNFe.ExecuteResponse'
    from t.a.
    contents of return
    )
    as varchar2 (100)
    )
    of tmp_xml t

    It's the soap response:

    " < SOAP - ENV:Envelope xmlns:SOAP - ENV =" http://schemas.xmlsoap.org/SOAP/envelope/ "
    " container = ' http://www.w3.org/2001/XMLSchema "
    " xmlns:SOAP - ENC =" http://schemas.xmlsoap.org/SOAP/encoding/ "
    " xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance ">
    < SOAP - ENV:Body >
    < WSRNF. ExecuteResponse xmlns = "GXX_YYY_v1" >
    < Retornows >
    < Message >
    < Code > 500 < / code >
    < message > xxxxxxxx! < / Mensagem >
    < / Mensagem >
    < NotasFiscais >
    < NFe >
    < NfeNumero > 123458 < / NfeNumero >
    < NfeSerie > 123 < / NfeSerie >
    < NfeChaAcesso > 43130806354976000149551230001234581000009575 < / NfeChaAcesso >
    < NfeLinkDanfe > https://hml.com/hnfe055.aspx?RomMsABbcWZNFMWmvpu8Cky0j6BoT8JvrPTqRtREFzYC10ULxD4eFTdP< / NfeLinkDanfe >
    < NfeLinkXML > https://192.168.1.20 HML.com hnfe055.aspx
    ? RomMsABbcWZNFMWmvpu8Cky0j6BoT8JvrPTqRtREFzYaqLRr % 2fXw74KgR< / NfeLinkXML >
    < NfeMensagem / >
    < SitGNFe >
    < SitStatus > 3 < / SitStatus >
    < SitProcessamento > P < / SitProcessamento >
    < / SitGNFe >
    < SitSEFAZ >
    < SitCodigo > 100 < / SitCodigo >
    < SitDescricao > smoking o uso da NF-e < / SitDescricao >
    < / SitSEFAZ >
    < / CHILD >
    < / NotasFiscais >
    < / Retornows >
    < / WSRNF. ExecuteResponse >
    < / SOAP - ENV:Body >
    < / SOAP - ENV:Envelope >

    Thanks in advance!

    Henderson

    Just specify the full path to the item of interest and be careful with the namespaces:

    Select (xmlcast)

    XMLQUERY)

    ' declare SOAP namespace = "http://schemas.xmlsoap.org/soap/envelope/"; (::)

    declare default element names 'GXX_YYY_v1 '; (::)

    /SOAP:envelope / soap: Body / WSRNF. ExecuteResponse/Retornows/NotasFiscais/ENF/NfeLinkDanfe '

    in passing t.object_value

    contents of return

    )

    as varchar2 (100)

    )

    of tmp_xml t.

  • Add JPG to the scene and controls visibility

    Hi all. I am a newbie in JAVA and I'm trying to teach me JAVA FX. I use Netbeans 7.3 and stage Builder 1.1. I'm working on my first application. I am trying to create a simple
    Application of TIC-TAC-TOE. I was able to get the stage to display the outline of TIC-TAC-TOE hash mark. I created a x.jpg and an o.jpg and put these graphics in the src/images to my project folder. The outline of TIC-TAC-TOE was created in a file FXML and it is loaded on an AnchorPane named page.

    In the stage Builder, I created 4 lines on the AnchorPane. I guess these 4 lines are "children" of the Anchorpane? I also created an ImageView in the generator from the scene and which placed instead of the center of the TIC-TAC-TOE grid. In the section of code to the constructor of the scene to the ImageView to the FX:ID I typed mm which for me is synonymous with medium-medium square. I guess that the mm could be used to describe this particular ImageView node in java as well as the CSS code?

    The problem I'm having is to find how to reference this ImageView node so that it can display an X or an O? I tried from the CSS and code, but I couldn't so he could display anything in the center square. Here is my code. If you can help a beginner to understand this basic concept, I would appreciate it.
    /*
     * To change this template, choose Tools | Templates
     * and open the template in the editor.
     */
    package tictactoe;
    
    
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javafx.application.Application;
    import javafx.fxml.FXMLLoader;
    import javafx.scene.*;
    import javafx.scene.image.Image;
    import javafx.scene.image.ImageView;
    import javafx.scene.layout.AnchorPane;
    import javafx.stage.Stage;
    
    /**
     *
     * @author David
     */
    public class Main extends Application {
    //private ImageView imgX;
    //private ImageView ImgO;
        /**
         * @param args the command line arguments
         */
        public void main(String[] args) {
            Application.launch(Main.class, (java.lang.String[])null);
        }
    
        @Override
        public void start(Stage primaryStage) {
            //imgX = new ImageView (new javafx.scene.image.Image(Main.class.getResourceAsStream("images/x.jpg")));
            
            try {
                
                
                AnchorPane page = (AnchorPane) FXMLLoader.load(Main.class.getResource("TicTacToe.fxml"));
                Scene scene = new Scene(page);
                primaryStage.setScene(scene);
                scene.getStylesheets().add("tictactoe/tictactoe.css");
                primaryStage.setTitle("TicTacToe");
                ImageView mm =new ImageView();
                mm.setImage(new Image("tictactoe/images/x.jpg"));
                
                
                primaryStage.show();
                                   } catch (Exception ex) {
                Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    }
    And here is my stylesheet:
    /* 
        Document   : tictactoe
        Created on : Mar 6, 2013, 8:12:51 AM
        Author     : David
        Description:
            Purpose of the stylesheet follows.
    */
    
    root { 
        display: block;    
    }
    .mm {
        
        visibility: visible;
    }
    Thank you

    David Warwick

    Published by: 992325 on 6 March 2013 17:38

    You must add the ImageView to the AnchorPane (i.e. the ImageView must also be a child of AnchorPane in order to appear on the subject)...

    page.getChildren().add(mm);
    

    This should bring up (probably in the upper left corner). You need to set its location to place it in the AnchorPane...

    mm.relocate(x, y);
    

    You don't need the entry of visibility in your CSS.

    Published by: SnowyWreath on 6 March 2013 19:36

  • How to know the size of a node until it is displayed?

    Hello

    I am trying to anchor two nodes (say A & B) near the top of a component to anchor such as B set out below A. To do this, I provide an offset to anchor for the order of B, who must be the height of node A. However, as the scene containing has not yet been demonstrated, the method for the node getWidth() returns 0 (zero). Since the size node A is calculated based on the content, I can't hard-code size. So I am at a loss how to provide the height of node A in a dynamic way.

    Please do not hesitate to ask me to clarify the matter, if I myself not clear enough.

    Thank you.

    You have more than two answers, but if you continue in this way, the links can help you:

    VBox A = new VBox();
    A.widthProperty().addListener(new ChangeListener() {
    
                public void changed(ObservableValue ov, Number t, Number t1) {
                    AnchorPane.setTopAnchor(B,  t1);
                }
            });
    

    I like the answer which recommends another provision.

    Published by: ciruman on July 13, 2012 05:10

  • How do I listen for the change in the position of a node

    Hello

    I want to create a knot of thread/connection between two nodes of the scene. I want this thread node to be updated when one of the nodes is moving. In the common scenario I'd listen for change events in the nodes of the target of the post and update the thread:

    targetNode1.translateXProperty () .addListener (new ChangeListener < number > () {}
    public void changed (value of ObservableValue, oldValue, newValue number number) {}
    wire.setStartX (targetNode1.getTranslateX ());
    wire.setStartX (targetNode1.getTranslateY ());

    wire.setEndX (targetNode2.getTranslateX ());
    wire.setEndY (targetNode2.getTranslateY ());
    }
    });



    The problem is that the target nodes are children of a different container nodes (who are moving in fact). To listen for change events in the properties to translate target nodes does not work (their parent nodes are moving actually)

    Is there way of list of change in the overall position of the target relative to the scene nodes?

    That's right, it's not a super easy way to do. You need to connect listeners to each node in the parent hierarchy. The reason for which we do not have this feature built-in, is because it is extremely expensive (early versions of JavaFX 1.0 pre had "boundsInScene" but which was incredibly convenient, also completely killed performance). Do this for a few nodes is not a problem, but the fact for each node in the scene would be your 3 GHz machine to its knees :-).

    Richard

  • How to retrieve the XML values in a plsql table type

    Hello

    I have an XML doc as below which is a Web Service response message.

    <? XML version = "1.0" encoding = "UTF-8"? >
    < SOAP - ENV:Envelope
    xmlns:SOAP - ENV = "http://schemas.xmlsoap.org/soap/envelope/".
    container = "http://www.w3.org/2001/XMLSchema".
    xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" >
    < SOAP - ENV:Body >
    < GetOrgInput xmlns = "http://www.example.org/ComplianceServices" >
    < ProgramName > PgmA-Srsf < / ProgramName >
    < > 800 ADSL ItemName < / ItemName >
    < org > 923 < / org >
    < org > 1163 < / org >
    < org > 1103 < / org >
    < / GetOrgInput >
    < / SOAP - ENV:Body >
    < / SOAP - ENV:Envelope >

    The doc above, you could see that I have several occurrences of the element "Ent". I usually use the .extract and. getSTringVal() to retrieve the values as below.

    l_string_variable: = p_response.doc.extract ('/ /'| p_name |) ' /Child::Text()',p_namespace).getStringVal();

    But in this case if I do that, I get value as 92311631103. I need to get them in a table of the number type. Pls advice me on how to do this.

    Thank you
    PKV

    I'm guessing it's a bug fixed when Oracle 10.2 is released. I can reproduce your lack of results on 10.1.0.4 and as shown in my post above, it works correctly on 10.2.0.4.

    Here is a modification of the script that shows what is happening that I have that debugging. (It took me a bit to realize the difference that it wasn't what I was expecting)

    declare
       p_response_doc XMLTYPE;
       l_new_doc      XMLTYPE;
    begin
       p_response_doc := XMLTYPE('
    
    
    
    1163
    1103
    
    
    ');
       SELECT p_response_doc.extract('/*/*/*/CompliantOrgs','xmlns="http://www.example.org/ComplianceServices"')
         INTO l_new_doc
          FROM dual;
       dbms_output.put_line(l_new_doc.getStringVal());
       dbms_output.put_line('before loop');
       FOR r_rec IN (SELECT value(t) val
    --   FOR r_rec IN (SELECT extractvalue(value(t)
    --      , '/CompliantOrgs'
    --      , 'xmlns="http://www.example.org/ComplianceServices"' ) val
          -- BULK COLLECT INTO l_nm_array
          FROM TABLE(
            XMLSequence(
              p_response_doc.extract('/*/*/*/CompliantOrgs','xmlns="http://www.example.org/ComplianceServices"')
              )
            ) t
       ) LOOP
          dbms_output.put_line(r_rec.val.getStringVal());
    --      dbms_output.put_line(r_rec.val);
       END LOOP;
       dbms_output.put_line('After output');
    end;
    

    10.2.0.4 on this product

    1163
    1103
    
    before loop
    1163
    1103
    After output
    

    It produces on 10.1.0.4

    1163
    1103
    
    before loop
    1163
    
    1103
    
    After output
    

    As you can see, Oracle is to detach (well technically not add) the space of default names to the nodes retrieved. To compensate, you need to change your loop to look like

       FOR r_rec IN (SELECT extractvalue(value(t)
          , '/CompliantOrgs') val
    --      , 'xmlns="http://www.example.org/ComplianceServices"' ) val
          -- BULK COLLECT INTO l_nm_array
          FROM TABLE(
            XMLSequence(
              p_response_doc.extract('//CompliantOrgs','xmlns="http://www.example.org/ComplianceServices"')
              )
            ) t
       ) LOOP
    

    so extractValue does not expect the namespaces associated with the nodes.

    I would suggest you document it so that you know why things break if you upgrade to 10.2 or later at some point in the future.

  • Where is the witness of the scene above the stage?

    Wishes of Flash users,

    The 'bar' scene (don't know the official name), which is supposed to be directly above the stage, does not appear on my Pro CS4 version.  It is visible on the computers at school, but it does not appear on my screen on my Mac.  How can I make it appear?  A search in preferences did nothing.  Without tab or small things click around the stage space, either.

    It is not to be confused with the palette of the scene in the menu drop-down superior. NOT for windows > other panels > scene. 

    1 million thanks!

    This is called the "Edit Bar". You can retrieve it with window > toolbars > edit bar.

  • How can I position MCs in the scene as words wrapped in a page? Mathematical problem.

    Hello world

    I am trying to position a few MCs in rows in the scene (dynamically created MCs) in such a way that, when they reach a max width they jump up to a line, such as words wrapped in a page with left alignment, or to explain, as the scheme of image attached. Each MC has a different width.

    I tried a lot of things without success. But I guess that I'm almost there. Right now I use a table that retrieves each width of MCs and another who gets the sum of the widths.

    Here is my code, important elements in red:

    CREATE MENU CONTAINER.

    var menuContainer:MovieClip = new MovieClip();

    menuContainer.x = 10;

    menuContainer.y = 500;

    addChild (menuContainer);

    CREATE IMAGES CONTAINING MC.

    var imagesContainer:MovieClip = new MovieClip();

    imagesContainer.x = 10;

    imagesContainer.y = 10;

    addChild (imagesContainer);

    CHARGERS IMAGE.

    var imagesLoader:Loader;

    var bigImagesLoader:Loader;

    TABLES.

    var imageLoadArray:Array; stores the respective URL of each image in each button

    function sum(array:Array,_ini:int=0,_fin:int=-1):Number {/ / function to sum bays}

    fin = (is-1)? array.length: end;

    var sumArrays:Number = 0;

    for (var u: uint = ini; u < fin; u ++) { }

    If (typeof (array [u]) == 'number') { }

    sumArrays += array [u];

    }

    }

    return sumArrays;

    }

    var imgPosArray:Array = new Array (); creates the table that defines the position of the images in the Gallery

    var imgPos:Number;

    LOAD THE XML.

    var xmlLoader:URLLoader = new URLLoader();

    xmlLoader.addEventListener (Event.COMPLETE, whenLoaded);

    xmlLoader.load (new URLRequest("XML/roiaXML.xml"));

    var xml;

    function whenLoaded(evt:Event):void {}

    xml = new XML (evt.target.data);

    var mySetsList:XMLList=xml.children();

    / / / MENU BUTTONS.

    / / POSITIONING of the BUTTONS on the INSIDE OF THE CONTAINER MENU.

    var rowMaxWidth:Number = 500;

    var totalWidth:Number;

    Var: line number;


    var cellWidthArray:Array = new Array();

    var sumCellWidthArray:Array = new Array();

    / / CREATE BUTTONS.

    for (var i: int = 0; i < mySetsList.length (); i ++) {}

    var newSetButtonMC:setButtonMC = new setButtonMC();

    //

    imageLoadArray = new Array();

    for (var j: int = 0; j < mySetsList [i].) IMAGE.length (); j++) {

    imageLoadArray [imageLoadArray.length] = mySetsList [i]. IMAGE [j]. Attribute ("smallURL");

    }

    newSetButtonMC.imageArray = imageLoadArray;

    //

    newSetButtonMC.setButtonText.text = mySetsList.attribute ("setTitle") [i];

    newSetButtonMC.setButtonText.autoSize = TextFieldAutoSize.LEFT;

    //

    cellWidthArray [cellWidthArray.length] = newSetButtonMC.setButtonText.width;

    sumCellWidthArray [sumCellWidthArray.length] = sum(cellWidthArray,0,i);

    trace(cellWidthArray[i]);

    totalWidth = sum(cellWidthArray,0,i);

    row = Math.floor (totalWidth/rowMaxWidth);


    newSetButtonMC.x = sumCellWidthArray [i] +(i*10);

    newSetButtonMC.y = (newSetButtonMC.height + 10) * rank;

    newSetButtonMC.buttonMode = true;

    newSetButtonMC.addEventListener (MouseEvent.CLICK, onClickButton);

    menuContainer.addChild (newSetButtonMC);

    }

    / / / MENU BUTTONS ACTIONS.

    function onClickButton(mevt:MouseEvent):void {}

    / / LOAD the IMAGES in the GALLERY.

    var targetButton:setButtonMC = setButtonMC (mevt.currentTarget);

    imgPos = 0;

    imgPosArray.length = 0;

    for (i = 0; i < targetButton.imageArray.length; i ++) {}

    imagesLoader = new Loader();

    imagesLoader.load (new URLRequest (targetButton.imageArray [i]));

    imagesLoader.contentLoaderInfo.addEventListener (Event.INIT, getImageWidth);

    imagesLoader.x = i 200;

    imagesContainer.addChild (imagesLoader);

    / / BIG LOAD IMAGE WHEN click ON the IMAGE OF the GALLERY.

    imagesLoader.addEventListener (MouseEvent.CLICK, loadBigImage);

    }

    }

    function getImageWidth(evt:Event):void {/ / this function get the widths of images}

    imgPos = evt.currentTarget.width;

    / / trace (imgPos);

    imgPosArray [imgPosArray.length] = imgPos;

    trace (imgPosArray);

    }

    function loadBigImage(evt:MouseEvent):void {}

    trace ("ok");

    }

    }

    Thank you very much

    Abstrato

    If one is your array of movieclips and space is white space between the end of a movieclip and the start of the next leading is the space between adjacent lines and width is the maximum width of your lines and you want your movieclips begin to startX, startY, you can use the function below to organize your movieclips:

    function arrangeMCF (a: startX:uint, startY: uint, space: uint, attack: uint, table, width: uint) {}

    var curentX:Number = startX;

    var YCourant: Number = startY;

    for (var i: uint = 0; i<>

    If (a [i] .width + currentX<>

    a [i] .x = currentX;

    a [i] there = currentY;

    currentX += [i] .width + space;

    } else {}

    currentX = startX;

    += currentY leading;

    a [i] .x = currentX;

    a [i] there = currentY;

    currentX += [i] .width + space;

    }

    }

    }

  • Popup lov (retrieves the filters and the first set of rows) returns the id

    Hello

    I have a problem when using a popup lov (retrieves the filters and the first set of rows). My LOV is a list of people posting their names, and it works very well when the popup opens. But in the "textfield" showing that you have chosen the corresponding id is displayed. This is not what I want. I want the name to be displayed.

    Any help would be greatly appreciated,

    Bram.

    Bram

    The text field is filled in with the return value.

    If you have

    SELECT name, id
    FROM table
    

    ID will be returned to the text field. If you want the name displayed, then it should be...

    SELECT name a, name b
    FROM table
    

    If you want to use the ID later, behind the scenes, then you could calculate it according to the name.

    See you soon

    Ben

Maybe you are looking for

  • When I upgraded my extesnions 11.0 all disappeared, he says that I did not add ons. Where are they? s

    When I upgraded my extesnions 11.0 all disappeared, he says that I did not add ons. Where are they?

  • Access to multiple Windows 10 accounts iTunes library

    I have a system 10 Windows with a user account for each Member of the family (4 Standard accounts and 1 Administrator account).  iTunes Media folder is located at C:\Users\Public\Music\iTunes media and this has been selected in the iTunes preferences

  • Can't see the different files open at the same time

    Hi all! I have this serious bug which is very difficult to describe... I'll use a picture to explain it better. Normally, it is possible to open different types of files on the same desktop and see them at the same time (such as writing on a file tex

  • iPad latest itunes needs

    When I connect air ipad 2 (about a year) to macbook pro os 10.3.6 (it says "unusable ipad because it requires newer itunes" go to www.itunes.com.) But there is no download link there. How to get the most recent itunes? I don't know how to see what ve

  • ERROR 9 C 48 / INTERNET EXPLORER UNSTABLE

    INTERNET EXPLORE 9 UNLOADED AUTOMATIC AND COMPUTER UPDATED ME 9 48 ERROR APPEARED. NOW, I CAN'T DO MORE UPDATES / INTERNET EXPLORE AND COMPUTER VERY UNSTABLE. NOT ABLE TO DO MANY THINGS. I CANNOT DOWN RC48 OR NOT UNSTALL INTERNET EXPLORER 9 / / / NEE