BB10: How to create multiple lists (one next to the other)

Hello world

I need to create a menu similar to the following image:

In this menu list:

  1. The user could drag vertically and navigate between ELEMENTS (ITEM1, ITEM2, ITEM3,...). In addition, headers of title (like tete2) would remain on the top, I mean, they hide when sliding down.
  2. The user can drag as horizontally. And a new list of ITEMS will be displayed. And the header titles will be moved as well.

So, in a nutshell, what I need is something like several vertical inside a horizontal list lists.

Any ideas?

Thanks in advance.

Hi guys,.

I finally understood how do.

Here's how I did it:

  1. I created several containers, one for each vertical list. The 1st container is visible to the user. The 2nd is hidden just then (right) at the 1st. the 3rd one is hidden just then (right) on the 2nd. And so on.
  2. I used getures to catch any user to slide. Whenever the user calls, either to the left or to the right, I use animations to hide the visible screen and make it visible, the following. You should also block the selection of list items any time you catch the user, cause you don't want the user to swipe and select both Sam.
  3. The headers have been the biggest problem. I created a container of the stack layout page-fromLeftToRight for the headers. This container has a very large "minWidth", and in it I put a label for each header. In order to locate each header in the Middle, no matter how long the text it contains, I used 'LayoutUpdateHandler' Manager for each label. This handler gives the current width of the label you and from there, you can calculate and set the position of the label he.
  4. I used gestures and animations to move headers. Just as I did with the lists.

The good things is that it works, and it does so very smoothly.

I know the tabs would be a much easier solution, but my client wanted something more will you allow. Thank you very much for your good help.

Hope this helps someone.

Thanks again guys.

Tags: BlackBerry Developers

Similar Questions

  • How to create a list of permissions in the wizard for registration of components?

    Dear friends,

    Hello. I have just finished developing my first PeopleSoft application in the Application Designer and try to save the component using the registration wizard. I have 2 questions:

    When to use select button to select an allow list, first of all, there is no list of permission to select from my computer. So creating a list of permissions in the registration wizard?

    Secondly, in content reference window, click the "select" button to select the name of the portal and the name of the folder. Then click on the button "Open Selected", it is supposed to launch a browser that takes the administration page to create a new folder if necessary. But in my computer, the browser is a message: "page cannot display." What is going on?

    Friends can help answer these 2 questions? Thank you.



    Lucy

    Lucy,

    You cannot create a list of permissions in the registration wizard, only selection from a list of those that already exist. Note that when you choose the selection... button, there is another selection button in the popup window that acts first as a search button, and assuming that it returns a list of highlight or authorization lists you want to include and use the Select button. You can enter search criteria before using the Select button, or leave it blank to see everything.

    In response to your second question, the selected button open for content references will not work unless you set the URI correctly on the browser under Tools-> Options tab in the App Designer.

    Kind regards
    Bob

  • Install firefox on both machines and created account on one sync. The other is will not sync

    I just recently installed the latest Firefox on both machines. Created a new account on one of them and started to download add-ons and changed preferences, then got to another and signed in. He finished syncing, but none of my changes have been applied to the second machine.

    For now, the Add-ons had synchronized but the customization that I made to the look of it did not.
    These customizations are: move the button right next to the home button and remove the search bar.

    Conclusion: it takes some time (about an hour) to synchronize these things, at least that's what happened with me if my connection was normal and slow at all.

  • I have 2 databases I use Lightroom how to identify objects in one and not the other, I changed

    I use my cell phone as my computer on travel. When I come home, I transfer my data to my main catalog on my desktop. Sometimes, the files remain on my laptop and I made changes to some of my files.

    I was trying to identify objects through finder that I've changed since I added changed files from my laptop to my desktop. My intention was to identify the XMP files that have changed since I added the files from my laptop to my desktop.

    By analyzing what I see in the finder, I find that Lightroom data seem unwise. For example, is as follows the first line in the finder

    File: _MG_1180.xmp

    Date added: 05/05/16

    Creation date: 16/04/16

    Update: 16/04/16

    1. I've been constantly adding to my catalog when I import my SD card in my laptop. I'm waiting for my date added date should be the same as the date of the creation Date. Why date is later than the date of creation?

    2. to play back my 2 libraries, can I just move my files from one to the other xmp?

    Do not do this through xmp. Some elements are never written to .xmp.

    To do this through the sequence of command as follows:

    • On the laptop, in Lightroom, select the photos you want, then use the menu file-> export as catalog command. If the pictures are not on the desktop, check the box that says "negative."
    • Copy all the files created on the desktop
    • On the desktop, use the command file-> import from another catalog and point Lightroom in the laptop just transferred catalog file.

    Which leaves the question of how to identify the photos changed recently. Create a collection of smart with the criterion that the modification Date is greater than YYYY-MM-DD, where of course which is the date of interest.

  • How to create a movie clip and place the other clips to move inside?

    I followed a tutorial of ping pong (http://www.webzo.org/tutorials/flash/ping-pong-ball-movement.php).

    In the fourth step, it is said to

    4 - inside another Clip named 'Limits' place 'Pads' and the 'wall '.                           Name of the instance of the pads should be "Pads" and instance of the wall called "border".
    We put the wall and trim inside the same Clip, to use it in order to know when the balloon is collided. And we could not put everything together because the ball behaves differently if hit the wall instead of the pads.

    How to create this clip and put the other clips of film "inside"? Also, if anyone can find, where should I put this clip? Should I put it in the same place as the wall?

    Please help out me.

    When you double-click a movieclip to open for editing, you have a work space to put things inside this movieclip.  That's what I call its Stadium.

  • Acrobat Pro XI: How batch create multiple PDFs to images from the context menu

    After selecting the jpg or png files in a folder I would like to have an option to convert batch of rightclick

    PDF files using the Sub settings.

    converted to automatically save files by using the same file name in the same folder.

    At the present time, in case I for example selects 12 files, Acrobat will open 12 windows, I have to start the recognition of text and save the files.

    I have tried (!) to create an action myself and think it works, but I can't add it to the context menu have Acrobat in the background.

    Thank you

    =

    You cannot have an action from the context menu.

  • How to pass values from one stage to the other

    I have two steps (called primary and secondary). The primary stage creates the secondary stage. When the school is open I can access all the members (say according to) of the 1st stage and try to set a value. But in the 1st stage, I think the value is not defined. I think it is because 1 is executed before the 2nd. I used showAndWait() in 1st then show() on 2nd, then it is thrown exception.

    So I want to use the values defined by the 2nd step of the 1st stage.
    How to synchronize their?
    Thank you.
    package test;
    
    import javafx.application.Application;
    import javafx.event.*;
    import javafx.scene.*;
    import javafx.scene.control.*;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.*;
    import javafx.stage.*;
    
    
    public class Test extends Application {
       
        private int bitNo;
        Stage primaryStage,secondaryStage;    
        TextField textField;    
        double x,y;
       
        public static void main(String[] args) { launch(args); }
    
        
        @Override 
        public void start(final Stage primaryStage) {
            
            this.primaryStage=primaryStage;
            Group rt=new Group();
            Scene sc= new Scene(rt,300,300);
            
            Button button =new Button("Click Me");
            button.setOnAction(new EventHandler<ActionEvent>() {
    
                @Override
                public void handle(ActionEvent event) {
                    secondaryStage=new Stage(StageStyle.TRANSPARENT);
                    secondaryStage.initModality(Modality.WINDOW_MODAL);
                    secondaryStage.initOwner(primaryStage);     
                    
                    showSecondaryWindow();
                }
            });
            
            rt.getChildren().add(button);           
            primaryStage.setScene(sc);
            primaryStage.show();
            
            //primaryStage.showAndWait();
            
            System.out.println("Bit no set= "+bitNo);       
    
     }//start
    
     public void showSecondaryWindow(){
         
         Pane root=new Pane();
         root.setStyle("-fx-background-color: rgb(0,50,70);");
         //root.setPrefSize(200,200);
         Scene scene=new Scene(root,200,300);
                
         Label label=new Label("Data");
         textField=new TextField();
         textField.setUserData("one");
                
         Button ok=new Button("Ok");
         ok.setDefaultButton(true);
         ok.setOnMouseClicked(new EventHandler<MouseEvent>() {
    
            @Override
            public void handle(MouseEvent event) {
                System.out.println("New Stage Mouse Clicked");
                bitNo=Integer.parseInt(textField.getText());
                System.out.println("Bit no set by Secondary= "+bitNo);
                primaryStage.getScene().getRoot().setEffect(null);
                secondaryStage.close();
            }
         });
         Button cancel=ButtonBuilder.create().cancelButton(true).text("Cancel").build();
         cancel.setOnMouseClicked(new EventHandler<MouseEvent>() {  
             @Override
             public void handle(MouseEvent event) {
                 System.out.println("New Stage Mouse Clicked");
                 primaryStage.getScene().getRoot().setEffect(null);
                 secondaryStage.close();
             }
         });
         //VBox vBox =new VBox();
         //vBox.getChildren().addAll(label,textField,ok);
         HBox dataFileds=new HBox(10);
         dataFileds.getChildren().addAll(label,textField);
         HBox buttons=new HBox(10);
         buttons.getChildren().addAll(cancel,ok);
         root.getChildren().add(VBoxBuilder.create().children(dataFileds,buttons).spacing(10).build());
         //scene.getStylesheets().add(Test.class.getResource("Modal.css").toExternalForm());
         secondaryStage.setScene(scene);
         //final Node root = secondaryStage.getScene().getRoot();
         root.setOnMousePressed(new EventHandler<MouseEvent>() {
             @Override public void handle(MouseEvent mouseEvent) {
                 // record distance for the drag and drop operation.
                 x = secondaryStage.getX() - mouseEvent.getScreenX();
                 y = secondaryStage.getY() - mouseEvent.getScreenY();
             }
         });
         root.setOnMouseDragged(new EventHandler<MouseEvent>() {
             @Override public void handle(MouseEvent mouseEvent) {
                 secondaryStage.setX(mouseEvent.getScreenX() +x);
                 secondaryStage.setY(mouseEvent.getScreenY() +y);
             }
         });
         //primaryStage.getScene().getRoot().setEffect(new BoxBlur());
         secondaryStage.show();
         
     }//showSecondaryWindow
        
    }//class

    You can use showAndWait() on your secondary stage. Then execution is blocked, and you will see the change in your variable:

    package test ;
    
    import javafx.application.Application;
    import javafx.event.*;
    import javafx.scene.*;
    import javafx.scene.control.*;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.*;
    import javafx.stage.*;
    
    public class Test extends Application {
    
      private int bitNo;
      Stage primaryStage, secondaryStage;
      TextField textField;
      double x, y;
    
      public static void main(String[] args) {
        launch(args);
      }
    
      @Override
      public void start(final Stage primaryStage) {
    
        this.primaryStage = primaryStage;
        Group rt = new Group();
        Scene sc = new Scene(rt, 300, 300);
    
        Button button = new Button("Click Me");
        button.setOnAction(new EventHandler() {
    
          @Override
          public void handle(ActionEvent event) {
            secondaryStage = new Stage(StageStyle.TRANSPARENT);
            secondaryStage.initModality(Modality.WINDOW_MODAL);
            secondaryStage.initOwner(primaryStage);
    
            // This calls showAndWait(), so execution blocks until the window is closed
            showSecondaryWindow();
            // secondary window is now closed, value should be updated:
            System.out.println("Bit no now: " + bitNo);
          }
        });
    
        rt.getChildren().add(button);
        primaryStage.setScene(sc);
        primaryStage.show();
    
        // primaryStage.showAndWait();
    
        System.out.println("Bit no set= " + bitNo);
    
      }// start
    
      public void showSecondaryWindow() {
    
        Pane root = new Pane();
        root.setStyle("-fx-background-color: rgb(0,50,70);");
        // root.setPrefSize(200,200);
        Scene scene = new Scene(root, 200, 300);
    
        Label label = new Label("Data");
        textField = new TextField();
        textField.setUserData("one");
    
        Button ok = new Button("Ok");
        ok.setDefaultButton(true);
        ok.setOnMouseClicked(new EventHandler() {
    
          @Override
          public void handle(MouseEvent event) {
            System.out.println("New Stage Mouse Clicked");
            bitNo = Integer.parseInt(textField.getText());
            System.out.println("Bit no set by Secondary= " + bitNo);
            primaryStage.getScene().getRoot().setEffect(null);
            secondaryStage.close();
          }
        });
        Button cancel = ButtonBuilder.create().cancelButton(true).text("Cancel")
            .build();
        cancel.setOnMouseClicked(new EventHandler() {
          @Override
          public void handle(MouseEvent event) {
            System.out.println("New Stage Mouse Clicked");
            primaryStage.getScene().getRoot().setEffect(null);
            secondaryStage.close();
          }
        });
        // VBox vBox =new VBox();
        // vBox.getChildren().addAll(label,textField,ok);
        HBox dataFileds = new HBox(10);
        dataFileds.getChildren().addAll(label, textField);
        HBox buttons = new HBox(10);
        buttons.getChildren().addAll(cancel, ok);
        root.getChildren().add(
            VBoxBuilder.create().children(dataFileds, buttons).spacing(10).build());
        // scene.getStylesheets().add(Test.class.getResource("Modal.css").toExternalForm());
        secondaryStage.setScene(scene);
        // final Node root = secondaryStage.getScene().getRoot();
        root.setOnMousePressed(new EventHandler() {
          @Override
          public void handle(MouseEvent mouseEvent) {
            // record distance for the drag and drop operation.
            x = secondaryStage.getX() - mouseEvent.getScreenX();
            y = secondaryStage.getY() - mouseEvent.getScreenY();
          }
        });
        root.setOnMouseDragged(new EventHandler() {
          @Override
          public void handle(MouseEvent mouseEvent) {
            secondaryStage.setX(mouseEvent.getScreenX() + x);
            secondaryStage.setY(mouseEvent.getScreenY() + y);
          }
        });
        // primaryStage.getScene().getRoot().setEffect(new BoxBlur());
        secondaryStage.showAndWait();
    
      }// showSecondaryWindow
    
    }// class
    

    You can also use an IntegerProperty to hold the variable and listening to the amendments on this subject:

    package test ;
    
    import javafx.application.Application;
    import javafx.beans.property.IntegerProperty;
    import javafx.beans.property.SimpleIntegerProperty;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.event.*;
    import javafx.scene.*;
    import javafx.scene.control.*;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.*;
    import javafx.stage.*;
    
    public class Test extends Application {
    
      private IntegerProperty bitNo;
      Stage primaryStage, secondaryStage;
      TextField textField;
      double x, y;
    
      public static void main(String[] args) {
        launch(args);
      }
    
      @Override
      public void start(final Stage primaryStage) {
    
        this.bitNo = new SimpleIntegerProperty();
    
        bitNo.addListener(new ChangeListener() {
    
          @Override
          public void changed(ObservableValue observable,
              Number oldValue, Number newValue) {
            System.out.printf("bit no changed from %d to %d%n", oldValue, newValue);
          }
    
        });
        this.primaryStage = primaryStage;
        Group rt = new Group();
        Scene sc = new Scene(rt, 300, 300);
    
        Button button = new Button("Click Me");
        button.setOnAction(new EventHandler() {
    
          @Override
          public void handle(ActionEvent event) {
            secondaryStage = new Stage(StageStyle.TRANSPARENT);
            secondaryStage.initModality(Modality.WINDOW_MODAL);
            secondaryStage.initOwner(primaryStage);
    
            showSecondaryWindow();
          }
        });
    
        rt.getChildren().add(button);
        primaryStage.setScene(sc);
        primaryStage.show();
    
        // primaryStage.showAndWait();
    
        System.out.println("Bit no set= " + bitNo.get());
    
      }// start
    
      public void showSecondaryWindow() {
    
        Pane root = new Pane();
        root.setStyle("-fx-background-color: rgb(0,50,70);");
        // root.setPrefSize(200,200);
        Scene scene = new Scene(root, 200, 300);
    
        Label label = new Label("Data");
        textField = new TextField();
        textField.setUserData("one");
    
        Button ok = new Button("Ok");
        ok.setDefaultButton(true);
        ok.setOnMouseClicked(new EventHandler() {
    
          @Override
          public void handle(MouseEvent event) {
            System.out.println("New Stage Mouse Clicked");
            bitNo.set(Integer.parseInt(textField.getText()));
            System.out.println("Bit no set by Secondary= " + bitNo);
            primaryStage.getScene().getRoot().setEffect(null);
            secondaryStage.close();
          }
        });
        Button cancel = ButtonBuilder.create().cancelButton(true).text("Cancel")
            .build();
        cancel.setOnMouseClicked(new EventHandler() {
          @Override
          public void handle(MouseEvent event) {
            System.out.println("New Stage Mouse Clicked");
            primaryStage.getScene().getRoot().setEffect(null);
            secondaryStage.close();
          }
        });
        // VBox vBox =new VBox();
        // vBox.getChildren().addAll(label,textField,ok);
        HBox dataFileds = new HBox(10);
        dataFileds.getChildren().addAll(label, textField);
        HBox buttons = new HBox(10);
        buttons.getChildren().addAll(cancel, ok);
        root.getChildren().add(
            VBoxBuilder.create().children(dataFileds, buttons).spacing(10).build());
        // scene.getStylesheets().add(Test.class.getResource("Modal.css").toExternalForm());
        secondaryStage.setScene(scene);
        // final Node root = secondaryStage.getScene().getRoot();
        root.setOnMousePressed(new EventHandler() {
          @Override
          public void handle(MouseEvent mouseEvent) {
            // record distance for the drag and drop operation.
            x = secondaryStage.getX() - mouseEvent.getScreenX();
            y = secondaryStage.getY() - mouseEvent.getScreenY();
          }
        });
        root.setOnMouseDragged(new EventHandler() {
          @Override
          public void handle(MouseEvent mouseEvent) {
            secondaryStage.setX(mouseEvent.getScreenX() + x);
            secondaryStage.setY(mouseEvent.getScreenY() + y);
          }
        });
        // primaryStage.getScene().getRoot().setEffect(new BoxBlur());
        secondaryStage.show();
    
      }// showSecondaryWindow
    
    }// class
    
  • How much to transfer from one machine to the other CS

    I want to delete my apps and the license from one computer to another. I uninstalled CC, but applications are still on the machine and the operation? I will be able to move to a new machine without problem?

    No, there might be a need of according to your preferences.  You are allowed to have two working facilities, so you can keep the original as a backup if you wish.  If this isn't the case, then you must disconnect from the original by the Manager.  To get the software on a new computer, you must install them by using the same installation files that you installed initially... ranging from software from one computer to another does not work.

    Download/install the desktop application, connect and install applications subscription.

    Cloud creation help / download, install, update or uninstall applications

    https://helpx.Adobe.com/creative-cloud/help/install-apps.html

    Cloud creation help / Creative Cloud to desktop

    https://helpx.Adobe.com/creative-cloud/help/creative-cloud-desktop.html

    Cloud creation help / sign out, sign in | Creative office cloud app

    http://helpx.Adobe.com/creative-cloud/KB/sign-in-out-creative-cloud-desktop-app.html

    Help of activation & deactivation

    https://helpx.Adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html#a ctivate-how-to's

    Cloud creation help / install, update or uninstall applications

    http://helpx.Adobe.com/creative-cloud/help/install-apps.html

    Install creative Cloud applications

    http://TV.Adobe.com/watch/CS6-creative-cloud-feature-tour-for-video/installing-desktop-app s-of-creative-cloud.

  • How to pass values from one function to the other

    Hello

    I am a school teacher and a beginner in Flash Actionscript. I am creating a countdown for use in my classroom during testing. The beginning and break according to need, but not the pause button functions. When I click on the pause button, the timer is reset to 0:00:00. Help, please. Here is the code that I had written so far:

    var Subject1timeLeftHr;

    var Subject1timeLeftMin;

    var Subject1timeLeftSec;

    Subject1start_btn._visible = true;

    Subject1pause_btn._visible = false;

    Subject1rotor_mc.gotoAndStop (1);

    Subject1rotor_mc._visible = false;

    Subject1durationHr_txt. Text = "0";

    Subject1durationMin_txt. Text = "00";

    Subject1durationSec_txt. Text = "00";

    Selection.setFocus (Subject1durationHr_txt);

    function SubjectdurationHr (SubjectxdurationHr_txt, SubjectxdurationMin_txt)

    {

    if (SubjectxdurationHr_txt.length == 1)

    {

    Selection.setFocus (SubjectxdurationMin_txt);

    }

    }

    function SubjectdurationMin (SubjectxdurationMin_txt, SubjectxdurationSec_txt)

    {

    if (SubjectxdurationMin_txt.length == 2)

    {

    Selection.setFocus (SubjectxdurationSec_txt);

    }

    }

    function SubjectdurationSec (SubjectxdurationSec_txt, SubjectxdurationHr_txt)

    {

    if (SubjectxdurationSec_txt.length == 2)

    {

    Selection.setFocus (SubjectxdurationHr_txt);

    }

    }

    Subject1durationHr_txt. OnChanged = function()

    {

    SubjectdurationHr (Subject1durationHr_txt, Subject1durationMin_txt);

    };

    Subject1durationMin_txt. OnChanged = function()

    {

    SubjectdurationMin (Subject1durationMin_txt, Subject1durationSec_txt);

    };

    Subject1durationSec_txt. OnChanged = function()

    {

    SubjectdurationSec (Subject1durationSec_txt, Subject1durationHr_txt);

    };

    function startcountdown (SubjectxdurationLeft, SubjectxdurationHr, SubjectxdurationHr_txt, SubjectxdurationMin, SubjectxdurationMin_txt, SubjectxdurationSec, SubjectxdurationSec_txt, Subjectxduration, SubjectxstartTime, SubjectxendTime, Subjectxtimer_mc, Subjectxpause_btn, Subjectxstart_btn, Subjectxrotor_mc, SubjectxtimeLeft, SubjectxtimeLeftHr, SubjectxtimeLeftMin, SubjectxtimeLeftSec, SubjectxtimeLeftHr_txt, SubjectxtimeLeftMin_txt, SubjectxtimeLeftSec_txt)

    {

    delete SubjectxdurationLeft;

    delete SubjectxdurationHr;

    delete SubjectxdurationMin;

    delete SubjectxdurationSec;

    delete Subjectxduration;

    delete SubjectxdurationHr_txt.text;

    delete SubjectxdurationMin_txt.text;

    delete SubjectxdurationSec_txt.text;

    SubjectxstartTime = getTimer();

    Subjectxtimer_mc.onEnterFrame = function()

    {

    if (SubjectxdurationHr_txt.text == Nan |) SubjectxdurationMin_txt.text == Nan | SubjectxdurationSec_txt.text is Nan)

    {

    }

    else

    {

    SubjectxdurationHr = 60 * 60 * 1000 * Number (SubjectxdurationHr_txt.text).

    SubjectxdurationMin = 60 * 1000 * Number (SubjectxdurationMin_txt.text).

    SubjectxdurationSec = 1000 * Number (SubjectxdurationSec_txt.text).

    Subjectxduration = SubjectxdurationHr + SubjectxdurationMin + SubjectxdurationSec;

    SubjectxendTime = SubjectxstartTime + Subjectxduration;

    SubjectxdurationLeft = SubjectxendTime - getTimer();

    if (SubjectxdurationLeft > 0)

    {

    SubjectxdurationHr_txt._visible = false;

    SubjectxdurationMin_txt._visible = false;

    SubjectxdurationSec_txt._visible = false;

    Subjectxpause_btn._visible = true;

    Subjectxstart_btn._visible = false;

    Subjectxrotor_mc._visible = true;

    Subjectxrotor_mc.play ();

    SubjectxtimeLeft = SubjectxdurationLeft / (1000 * 60 * 60);

    SubjectxtimeLeftHr = Math.floor (SubjectxtimeLeft);

    SubjectxtimeLeftMin = Math.floor ((SubjectxtimeLeft-SubjectxtimeLeftHr) * 60);

    SubjectxtimeLeftSec = Math.floor (((SubjectxtimeLeft-SubjectxtimeLeftHr) * 60 - SubjectxtimeLeftMin) * 60);

    SubjectxtimeLeftHr_txt.text = String (SubjectxtimeLeftHr);

    if (SubjectxtimeLeftHr_txt.length < 1)

    {

    SubjectxtimeLeftHr_txt.text = '0' + SubjectxtimeLeftHr_txt.text;

    }

    SubjectxtimeLeftMin_txt.text = String (SubjectxtimeLeftMin);

    if (SubjectxtimeLeftMin_txt.length < 2)

    {

    SubjectxtimeLeftMin_txt.text = '0' + SubjectxtimeLeftMin_txt.text;

    }

    SubjectxtimeLeftSec_txt.text = String (SubjectxtimeLeftSec);

    if (SubjectxtimeLeftSec_txt.length < 2)

    {

    SubjectxtimeLeftSec_txt.text = '0' + SubjectxtimeLeftSec_txt.text;

    }

    }

    else

    {

    delete Subjectxtimer_mc.onEnterFrame;

    SubjectxtimeLeftHr_txt.text = "";

    SubjectxtimeLeftMin_txt.text = "";

    SubjectxtimeLeftSec_txt.text = "";

    SubjectxdurationHr_txt._visible = true;

    SubjectxdurationMin_txt._visible = true;

    SubjectxdurationSec_txt._visible = true;

    Subjectxrotor_mc.gotoAndStop (1);

    Subjectxrotor_mc._visible = false;

    SubjectxdurationHr_txt.text = '0 '.

    SubjectxdurationMin_txt.text = "00";

    SubjectxdurationSec_txt.text = "00";

    Subjectxpause_btn._visible = false;

    Subjectxstart_btn._visible = true;

    Selection.setFocus (SubjectxdurationHr_txt);

    }

    }

    };

    }

    function pausecountdown (SubjectxdurationHr_txt, SubjectxtimeLeftHr, SubjectxdurationMin_txt, SubjectxtimeLeftMin, SubjectxdurationSec_txt, SubjectxtimeLeftSec, Subjectxstart_btn, Subjectxpause_btn, Subjectxrotor_mc)

    {

    delete Subjectxtimer_mc.onEnterFrame;

    SubjectxdurationHr_txt.text = String (SubjectxtimeLeftHr);

    SubjectxdurationMin_txt.text = String (SubjectxtimeLeftMin);

    SubjectxdurationSec_txt.text = String (SubjectxtimeLeftSec);

    Subjectxstart_btn._visible = true;

    Subjectxpause_btn._visible = false;

    Subjectxrotor_mc.stop ();

    }

    Subject1pause_btn.onRelease = function()

    {

    pausecountdown (Subject1durationHr_txt, Subject1timeLeftHr, Subject1durationMin_txt, Subject1t, imeLeftMin, Subject1durationSec_txt, Subject1timeLeftSec, Subject1start_btn, Subject1pause_btn, Subject1rotor_mc);

    };

    Subject1start_btn.onRelease = function()

    {

    startcountdown (Subject1durationLeft, Subject1durationHr, Subject1durationHr_txt, Subject1dura, tionMin, Subject1durationMin_txt, Subject1durationSec, Subject1durationSec_txt, Subject1durati, Subject1startTime, Subject1endTime, Subject1timer_mc, Subject1pause_btn, Subject1start_btn, Subject1rotor_mc, Subject1timeLeft, Subject1timeLeftHr, Subject1timeLeftMin, Subject1timeLeftS ec, Subject1timeLeftHr_txt, Subject1timeLeftMin_txt, Subject1timeLeftSec_txt);

    };

    Subject1cancel_btn.onRelease = function()

    {

    Subject1timeLeftHr_txt.text = "";

    Subject1timeLeftMin_txt.text = "";

    Subject1timeLeftSec_txt.text = "";

    Subject1durationHr_txt._visible = true;

    Subject1durationMin_txt._visible = true;

    Subject1durationSec_txt._visible = true;

    Subject1durationHr_txt.text = '0 '.

    Subject1durationMin_txt.text = "00";

    Subject1durationSec_txt.text = "00";

    Subject1timeLeftHr_txt._visible = true;

    Subject1timeLeftMin_txt._visible = true;

    Subject1timeLeftSec_txt._visible = true;

    Subject1pause_btn._visible = false;

    Subject1start_btn._visible = true;

    Subject1rotor_mc._visible = false;

    Subject1rotor_mc.gotoAndStop (1);

    delete Subject1timer_mc.onEnterFrame;

    delete Subject1durationLeft;

    delete Subject1duration;

    delete Subject1durationHr_txt.text;

    delete Subject1durationMin_txt.text;

    delete Subject1durationSec_txt.text;

    };

    I think you need to spend time by reducing your code at a practical level.  You seem to be any passage in the book in each function and I think that probably none of this is necessary.  If you have declared these variables at the beginning, then you don't need to transfer them to any function, because they are gobally available to one of the functions/code that follows.  Similarly, if you have some textfields on stage, it is pointless to pass those in all functions for the same reason.

    I see you doing the overuse of 'delete' (and possibly errant use as well).  Is probably the only thing you might want or need to use...

    delete Subjectxtimer_mc.onEnterFrame;

    Which stops the enterframe trigger activity, which I think is used to update the textfields which indicate the time.

    And that conditional uses == Nan is not likely to do anything except wonder what is a Nan.  TextFields hold the strings, which are cited.  SO unless you have a variable named Nan somewhere that has a value of string assigned to her, this condition will do nothing for you.  You probably don't need it at all if you get this working properly.

  • How to pass values from one form to the other setting

    Hello

    I have created two forms Form_A and Form_A. Form_B, having a button "submit" and called the new form of B.
    I have done some calculations in form B. Now I want to spend this calculation value back to Form_A when I press
    My Exit in Form_B button.

    In FormA, just before calling FormB declare and initialize a global variable

    :GLOBAL.PASS_BACK := ''; -- declaration and initialization
    CALL_FORM(FORMB,....);
    --> At this point the :GLOBAL.PASS_BACK variable should have the calculated value from FormB
    

    In the B form to trigger after CHANGE calculated item or KEY of VALIDATION or WHEN - click the BUTTON to exit FormB write - anywhere after the calculation were made

    :GLOBAL.PASS_BACK := ;
    

    For more details, search for the global variables in the form builder help.

    Kind regards

  • How to move rows from one partition to the other?

    We have a requirement for data retention for 6 months and after 6 months data can be withdrawn with the exception of a few documents to certain statutes (which cannot be deleted even if they are more than 6 months). We have Oracle 11g.

    I wanted to see if the following strategy works:

    I'll have monthly partitions and 8 sub partitions (hash) in each of the primary partitions. The secondary hash partitions are to spread the load of application data and balance the insertion of data in order to avoid any dispute.

    After 6 months, is it possible for me to spend with the line that must be kept in a different partition and drop the last partition. I wanted to avoid deleting data because we have that dead very shortly of database and delete data require us to coelize the database to avoid fragmentation.
    If I move the data to another partition, how do I do it?

    Thank you

    You guessed it! Exactly what I was trying to convey. That process will work the way you want.

  • How to create a list of button by using the names of a table

    Hi, I want to create an application that displays detailed information about something. for example, as the profile of the users. my application will read an xml response from the server that contains the list of the names of the users. How to create a list of buttons using the names and then each button that displays the name that can be pressed and displays detailed information about the name? I think that it is similar to the BBM app that displays a contact list of the user. Thank you very much

    Create a ButtonField as:

    ButtonField [] users_buttons = new ButtonField [number of users];

    Initialize the uasing dem:

    for (int i = 0; i)<>

    users_buttons [i] = new ButtonField ("user", Field.FIELD_HCENTER |) ButtonField.CONSUME_CLICK);

    Make dem clickable setchangeListener method of buttonField and Ooveride Navigation click to make a few operatoin by clicking on the specific button!

  • How to create multiple CSS navigation bars?

    Hello

    How to create multiple CSS navigation bars?

    I currently have the code below (and it works very well) for a navigation bar, but I'm trying to create navigation bars .  Can I just change the 'nav ul li a""NAV ul li b"(note the 'a' change to a 'b') or something similar?  I can not understand the correct coding...

    Thanks in advance for any help!  I very much appreciate quick and precise Adobe support team answers!

    NAV ul {}

    margin: 0;

    padding: 0;

    }

    NAV ul li {}

    list-style-type: none;

    float: left;

    Display: block;

    height: 60px banner;

    Width: 333px;

    text-align: center;

    line-height: 55px;

    do-family: Arial, Helvetica, without serif.

    font-size: 33px;

    }

    NAV ul li a {}

    text-decoration: none;

    color: white;

    }

    NAV ul li: hover {}

    background-color: rgb (0,0,255);

    }

    NAV li: hover ul a {}

    Display: block;

    color: white;

    }

    No, the 'a' you see is an html element, , you can not change this.

    It's very simple.

    You can create a class, the name you want (I used .yourclass), add it to the second

  • How to create a list of chips which is aligned which can occur over time (such as powerpoint)

    Hi all. I'm trying to figure out how to create a list of chips for a training video that will appear gradually as the voice on reveals each point, without the need to have a separate title for each point. Even if I create bullets, especially how to align and having the good spacing between each sentence. Basically I want it to be like an animated Powerpoint slide! Please can someone give me advice on how to do this than all my text/bullet alignment points and are spaced evenly. Thank you!

    Each line is revealed over time:

    Title

    • Point 1
    • Point 2
    • Point 3

    Do in the Titler, and start with the complete list of ball.

    Then create "new title based on the current title" and remove the bottom line

    Do so until that there is only a line on the left.

  • How can I create a list of choices for the search bit in Oracle 11g ADF fields?

    Hi Experts,

    Please inform how to add some selection list or drop downs on the pane search Oracle 11g ADF.

    I have a requirement to create a list of choices for the search store field. # Please notify.

    SS_SearchCriteriaPage1.png

    Thank you

    David Selvaraj

    You can create a view based on a static list object and attach it to your attribute as lov-driven model.

    Dario

Maybe you are looking for