Some help for a simple condition statement...

Hello! I wanted some help this condition statement...
There are 2 tweens called "mc_sun" and "mc_welcome" I want to
run when someone clicks on a button called "btn_home", but I don't
know exactly how to write the code because I've already tried these
2 modes and noone work at all!
THANKS FOR THE HELP!!!!

I think I know what you're after here ... but I could be
wrong ;) but try this:

Similar Messages

  • I need some help for an explanation. Loop for 1 minute.

              int minute=1;
              long currentTime=System.currentTimeMillis();          
              long stoppingTime = currentTime + (minute * 60 * 1000);
              while (currentTime<stoppingTime) {
                   // do x;
                   currentTime=System.currentTimeMillis();
              }I want to have the loop to run for 1 minute. It does not seem to work.
    What did I miss? I need some help for an explanation.

    Ran:
    class PrintTimeAsProcess {
      public static void main(String[] argv)  throws Exception {
        int minute=1;
        long currentTime=System.currentTimeMillis();
        long stoppingTime = currentTime + (minute * 15 * 1000);
        System.out.println("START Time: "+currentTime);
        while (currentTime<stoppingTime) {
          currentTime=System.currentTimeMillis();
        System.out.println("END Time: "+currentTime);
    }Got:
    START Time: 1149278202718
    END Time: 1149278217718
    1149278217718
    -1149278202718
    15000

  • Pls i need help for this simple problem. i appreciate if somebody would share thier ideas..

    pls i need help for this simple problem of my palm os zire 72. pls share your ideas with me.... i tried to connect my palm os zire72 in my  desktop computer using my usb cable but i can't see it in my computer.. my palm has no problem and it works well. the only problem is that, my  desktop computer can't find my palm when i tried to connect it using usb cable. is thier any certain driver or installer needed for it so that i can view my files in my palm using the computer. where i can download its driver? is there somebody can help me for this problem? just email me pls at [email protected] i really accept any suggestions for this problem. thanks for your help...

    If you are using Windows Vista go to All Programs/Palm and click on the folder and select Hot Sync Manager and then try to sync with the USB cable. If you are using the Windows XP go to Start/Programs/Palm/Hot Sync Manager and then try to sync. If you don’t have the palm folder at all on your PC you have to install it. Here is the link http://kb.palm.com/wps/portal/kb/common/article/33219_en.html that version 4.2.1 will be working for your device Zire 72.

  • Need Help for a simple Keypress to advance to next frame

    Hi all,
    I am pretty weak at Action script.  I need to create a simple presentation that displays a bunch of photos.  I want to be able to hit the space bar to advance to next picture.  I am able to stop the playhead at the picture, but i want to advance to next labelled frame by hitting the space bar.  Some help would be great.
    Thanks
    Anthony

    Thanks for the quick response, I have a 4 pictures on 4 seperate layers.  The starting keyframe for each picture is labeled "Slide 01"," Slide 02" etc.  When i test movie, it automatically plays the first picture labeled "Slide 01".  At the end that slides frames I have a stop action.  When I hit the space bar, i want the playhead to jump to the next slide which it's start keyframe is labeled "Slide 02".  It has a few frames to allow for fadeing in, and then a stop action on the last keyframe. And so on.
    I entered your code and placed the goto and play event handler to jump to the next slide's keyframe which i labeled "Slide 02".  I did get the following error:
    Location: Scene 1, layer 'Scripts', Frame 1, Line 3
    Description: 1046: Type was not found or was not compile-time constant: KeyBoardEvnt.
    Source: function next(event:keyboardEvent):void
    stage.addEventListener(KeyboardEvent.KEY_UP,next);
    function next(event:KeyBoardEvent):void
    if(event.keyCode==Keyboard.SPACE){
      gotoAndPlay("Slide 02");
    Thanks
    Anthony

  • Some 'Help' for Search help

    Hi all! this time i need a simple thing. I have two parameters p_vblnr and p_chect.The firstone has a Search help that i did with se11 and the second one has a standard search help for chects. I want to create a search help for p_chect that only visualice the values related to p_vblnr parameter and <b>replace the standard search help for that field</b>.
    Ej: if p_vblnr is '10021562' i want the search help to visualice the chects related to that vblnr.
    is this possible??????
    i promise rewards points for help!!!!
    thank in advance!

    Andrew,
    Try following sample code.
      CLEAR: t_dynp_flds,
             t_dynp_flds[].
      t_dynp_flds-fieldname = 'LFA1-STCD1'. " ur first parameter
      APPEND t_dynp_flds.
      CLEAR  t_dynp_flds.
    *---  Read screen field values before PAI field transport
      CALL FUNCTION 'DYNP_VALUES_READ'
           EXPORTING
                dyname               = 'ZFFI'
                dynumb               = '1000'
           TABLES
                dynpfields           = t_dynp_flds
           EXCEPTIONS
                invalid_abapworkarea = 1
                invalid_dynprofield  = 2
                invalid_dynproname   = 3
                invalid_dynpronummer = 4
                invalid_request      = 5
                no_fielddescription  = 6
                invalid_parameter    = 7
                undefind_error       = 8
                double_conversion    = 9
                stepl_not_found      = 10
                OTHERS               = 11.
      IF sy-subrc EQ 0.
        READ TABLE t_dynp_flds WITH KEY fieldname = 'LFA1-STCD1'.
        IF sy-subrc EQ 0.
          MOVE t_dynp_flds-fieldvalue TO lfa1-stcd1.
        ENDIF.
      ENDIF.
      IF NOT lfa1-stcd1 IS INITIAL.
        g_stcd = lfa1-stcd1.
    Clear fields
        CLEAR : t_taxid1,
                t_taxid1[].
        t_taxid1-gap2 = space.
    Select vendor and taxids from Vendor Master table
        SELECT lifnr
               name1
          FROM lfa1
          INTO (t_taxid1-lifnr, t_taxid1-name1)
          WHERE stcd1 <> g_stcd AND
                stcd2 <> g_stcd AND
                stcd3 <> g_stcd.
          APPEND t_taxid1.
          CLEAR  t_taxid1.
        ENDSELECT.
        IF sy-subrc NE 0.
      No table entries found
          MESSAGE s001(zffi).
          EXIT.
        ENDIF.
        SORT t_taxid1 BY lifnr.
        DELETE ADJACENT DUPLICATES FROM t_taxid1 COMPARING lifnr.
        CLEAR : g_pop_idx.
    Function module to get Tax code values
        CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
             EXPORTING
                  endpos_col   = 85
                  endpos_row   = 20
                  startpos_col = 20
                  startpos_row = 10
                  titletext    = 'List of Assign Vendors'(t11)
             IMPORTING
                  choise       = g_pop_idx
             TABLES
                  valuetab     = t_taxid1
             EXCEPTIONS
                  break_off    = 1
                  OTHERS       = 2.
        IF sy-subrc EQ 0.
          READ TABLE t_taxid1 INDEX g_pop_idx.
          IF sy-subrc EQ 0.
            CLEAR : t_dynp_flds,
                    t_dynp_flds[].
        Append screen values
            t_dynp_flds-fieldname = 'G_LIFNR'.
            t_dynp_flds-fieldvalue = t_taxid1-lifnr.
            APPEND t_dynp_flds.
            CLEAR  t_dynp_flds.
        Change screen field contents w/o PBO
            CALL FUNCTION 'DYNP_VALUES_UPDATE'
                 EXPORTING
                      dyname               = 'ZFFI'
                      dynumb               = '1000'
                 TABLES
                      dynpfields           = t_dynp_flds
                 EXCEPTIONS
                      invalid_abapworkarea = 1
                      invalid_dynprofield  = 2
                      invalid_dynproname   = 3
                      invalid_dynpronummer = 4
                      invalid_request      = 5
                      no_fielddescription  = 6
                      undefind_error       = 7
                      OTHERS               = 8.
            IF sy-subrc NE 0.
              CLEAR : t_dynp_flds,
                      t_dynp_flds[],
                      lfa1-lifnr,
                      lfa1-stcd1,
                      lfa1-name1.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
    -Anu

  • I need some help , for create some paper on air

    Hi everyone
    I need some help , i work in a static sequence from Tehran street (1 frame), i paint damages on this frame in Photoshop because i need war atmosphere, then i add some smoke and cloud with particular .
    but i think this sequence is not realistic yet
    now i want add some moving paper in air and on street
    do u have any solution for how can i make this paper and moving those
    Thanks a lot
    and pardon me for bad English
    Ali Molavi

    The best tool to add this kind of particle is After Effects.
    If you have the Creative Cloud then I recommend you download that.
    Slightly annoying voice over, but here is a youtube tutorial you can follow top make floating particals. You can adjust it to make it look exactly as you want.
    http://www.youtube.com/watch?v=dq2op6yqvFk&noredirect=1

  • Drawing and some layout help for a simple control: thin lines and application start

    I am trying to create a new, simple control. The control should act as a grouping marker much like that found in the Mathematica notebook interface. It is designed to sit to the right of a node and draw a simple bracket. The look of the bracket changes depending on whether the node is logically marked open or closed.
    After looking at some blogs and searching, I tried setting the snapToPixels to true in the container holding the marker control as well as the strokewidth but I am still finding that the bracket line is too thick. I am trying to draw a thin line. Also, I am unable to get the layout to work when the test application is first opened. One of the outer brackets is cut-off. I hardcoded some numbers into the skin just to get something to work.
    Is there a better way to implement this control?
    How can I get the fine line drawn as well as the layout correct at application start?
    package org.notebook;
    import javafx.beans.property.BooleanProperty;
    import javafx.beans.property.IntegerProperty;
    import javafx.beans.property.SimpleBooleanProperty;
    import javafx.beans.property.SimpleIntegerProperty;
    import javafx.scene.control.Control;
    * Provide a simple and thin bracket that changes
    * it appearance based on whether its closed or open.
    public class GroupingMarker extends Control {
      private final static String DEFAULT_STYLE_CLASS = "grouping-marker";
      private BooleanProperty open;
      private IntegerProperty depth;
      public BooleanProperty openProperty() { return open; }
      public IntegerProperty depthProperty() { return depth; }
      public GroupingMarker(boolean open) {
      this();
      setOpen(open);
      public GroupingMarker() {
      open = new SimpleBooleanProperty(true);
      depth = new SimpleIntegerProperty(0);
      getStyleClass().add(DEFAULT_STYLE_CLASS);
      // TODO: Change to use CSS directly
      setSkin(new GroupingMarkerSkin(this));
      public boolean isOpen() {
      return open.get();
      public void setOpen(boolean flag) {
      open.set(flag);
      public int getDepth() {
      return depth.get();
      public void setDepth(int depth) {
      this.depth.set(depth);
    package org.notebook;
    import javafx.scene.Group;
    import javafx.scene.paint.Color;
    import javafx.scene.shape.FillRule;
    import javafx.scene.shape.LineTo;
    import javafx.scene.shape.MoveTo;
    import javafx.scene.shape.Path;
    import com.sun.javafx.scene.control.skin.SkinBase;
    * The skin draws some simple lines on the right hand side of
    * the control. The lines reflect whether the control is considered
    * open or closed. Since there is no content, there is no
    * content handling code needed.
    public class GroupingMarkerSkin extends SkinBase<GroupingMarker, GroupingMarkerBehavior> {
      GroupingMarker control;
      Color lineColor;
      double shelfLength;
      double thickness;
      private Group lines;
      public GroupingMarkerSkin(GroupingMarker control) {
      super(control, new GroupingMarkerBehavior(control));
      this.control = control;
      lineColor = Color.BLUE;
      shelfLength = 5.0;
      thickness = 1.0;
      init();
      * Attached listeners to the properties in the control.
      protected void init() {
      registerChangeListener(control.openProperty(), "OPEN");
      registerChangeListener(control.depthProperty(), "DEPTH");
      lines = new Group();
      repaint();
      @Override
      protected void handleControlPropertyChanged(String arg0) {
      super.handleControlPropertyChanged(arg0);
        @Override public final GroupingMarker getSkinnable() {
            return control;
        @Override public final void dispose() {
        super.dispose();
            control = null;
        @Override
        protected double computePrefHeight(double arg0) {
        System.out.println("ph: " + arg0);
        return super.computePrefHeight(arg0);
        @Override
        protected double computePrefWidth(double arg0) {
        System.out.println("pw: " + arg0);
        return super.computePrefWidth(40.0);
         * Call this if a property changes that affects the visible
         * control.
        public void repaint() {
        requestLayout();
        @Override
        protected void layoutChildren() {
        if(control.getScene() != null) {
        drawLines();
        getChildren().setAll(lines);
        super.layoutChildren();
        protected void drawLines() {
        lines.getChildren().clear();
        System.out.println("bounds local: " + control.getBoundsInLocal());
        System.out.println("bounds parent: " + control.getBoundsInParent());
        System.out.println("bounds layout: " + control.getLayoutBounds());
        System.out.println("pref wxh: " + control.getPrefWidth() + "x" + control.getPrefHeight());
        double width = Math.max(0, 20.0 - 2 * 2.0);
        double height = control.getPrefHeight() - 4.0;
        height = Math.max(0, control.getBoundsInLocal().getHeight()-4.0);
        System.out.println("w: " + width + ", h: " + height);
        double margin = 4.0;
        final Path VERTICAL = new Path();
        VERTICAL.setFillRule(FillRule.EVEN_ODD);
        VERTICAL.getElements().add(new MoveTo(margin, margin)); // start
        VERTICAL.getElements().add(new LineTo(margin + shelfLength, margin)); // top horz line
        VERTICAL.getElements().add(new LineTo(margin + shelfLength, height - margin)); // vert line
        if(control.isOpen()) {
        VERTICAL.getElements().add(new LineTo(margin, height - margin)); // bottom horz line
        } else {
        VERTICAL.getElements().add(new LineTo(margin, height-margin-4.0));
        //VERTICAL.getElements().add(new ClosePath());
        VERTICAL.setStrokeWidth(thickness);
        VERTICAL.setStroke(lineColor);
        lines.getChildren().addAll(VERTICAL);
        lines.setCache(true);
    package org.notebook;
    import com.sun.javafx.scene.control.behavior.BehaviorBase;
    public class GroupingMarkerBehavior extends BehaviorBase<GroupingMarker> {
      public GroupingMarkerBehavior(final GroupingMarker control) {
      super(control);
    package org.notebook;
    import javafx.application.Application;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.control.Label;
    import javafx.scene.control.TextArea;
    import javafx.scene.layout.BorderPane;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    public class TestGroupingMarker extends Application {
      public static void main(String args[]) {
      launch(TestGroupingMarker.class, args);
      @Override
      public void start(Stage stage) throws Exception {
      VBox vbox = new VBox();
      BorderPane p = new BorderPane();
      VBox first = new VBox();
      first.getChildren().add(makeEntry("In[1]=", "my label", 200.0, true));
      first.getChildren().add(makeEntry("Out[1]=", "the output!", 200.0, true));
      p.setCenter(first);
      p.setRight(new GroupingMarker(true));
      vbox.getChildren().add(p);
      vbox.getChildren().add(makeEntry("In[2]=", "my label 2", 100.0, false));
      Scene scene = new Scene(vbox,500,700);
      scene.getStylesheets().add(TestGroupingMarker.class.getResource("main.css").toExternalForm());
      stage.setScene(scene);
      stage.setTitle("GroupingMarker test");
      stage.show();
      protected Node makeEntry(String io, String text, double height, boolean open) {
      BorderPane pane2 = new BorderPane();
      pane2.setSnapToPixel(true);
      Label label2 = new Label(io);
      label2.getStyleClass().add("io-label");
      pane2.setLeft(label2);
      TextArea area2 = new TextArea(text);
      area2.getStyleClass().add("io-content");
      area2.setPrefHeight(height);
      pane2.setCenter(area2);
      GroupingMarker marker2 = new GroupingMarker();
      marker2.setOpen(open);
      pane2.setRight(marker2);
      return pane2;

    The test interfaces are already defined for you - the 3rd party session bean remote/local interfaces.
    It is pretty trivial to create implementations of those interfaces to return the test data from your XML files.
    There are a number of ways to handle the switching, if you have used the service locator pattern, then I would personally slot the logic in to the service locator, to either look up the 3rd party bean or return a POJO test implementation of the interface according to configuration.
    Without the service locator, you are forced to do a little more work, you will have to implement your own test session beans to the same interfaces as the 3rd party session beans.
    You can then either deploy them instead of the 3rd party beans or you can deploy both the test and the 3rd party beans under different JNDI names,and use ejb-ref tags and allow you to switch between test and real versions by changing the ejb-link value.
    Hope this helps.
    Bob B.

  • Need some help for checkbox

    Hi and Evening to Everybody,
    I have a Scenario where i need to select an entire row using the check box. Let me first define the Situation. I created a Simple Sql-report where the first column is a Simple Checkbox and the second column is a display only name and followed by the rest 5 columns as a checkbox.
    my table structure is :
    **create table satt (SELECT_ALL VARCHAR2(10), Name VARCHAR2(50), Object1 VARCHAR2(10), Object2 VARCHAR2(10), Object3 VARCHAR2(10), Object4 VARCHAR2(10), Object5 VARCHAR2(10));**
    Now i had a requirement where i need to Check All or Uncheck All Checkbox by clicking SELECT_ALL column header and i made it using
    simple java-script :
    "<input type="Checkbox" onclick="$f_CheckFirstColumn(this)">"
    Now i need to Check all checkbox in a row by clicking any of the SELECT_ALL check boxes. (Say i have 5 checkboxes in SELECT_ALL column and if i click 3rd checkbox... i need the entire 3rd row checkbox to be checked on click of that 3rd check box).
    I hope i was clear with my question. i did my best. Please help me out with this... Im eagerly lookin for the solutions.
    Thanks & Regards,
    - The Beginner.
    Edited by: 854477 on Jul 18, 2011 1:50 AM

    Dear BEGINNER..
    Assuming that you're using a standard table based layout for the report, what you need to do is add some code in the HTML attributes of the checkbox in the first column..
    The following javascript would set all other checkboxes in the same ROW as the first checkbox to the same state as it is.
    onclick="if (this.checked) {$f_CheckAll(this.parentNode.parentNode, true);} else {$f_CheckAll(this.parentNode.parentNode, true);}"NOTE: that this will only fire if the first checkbox on the row is actually clicked by the mouse. It won't fire if the first checkbox in the row is set by the CHECK_ALL in the column header.
    Hope this helps.
    Doug gault
    www.sumneva.com

  • Scripting newbie...help for a "simple" crop mark script

    Hello,
    I am after some advice or assistance on the scripting side of things for indesign please.
    Basically where do you start? I'm wanting to do some scripts to speed up some repetitive processes.
    What I'm trying to do initially is (what I'd think would be) a very simple script. Basically it's adding crop marks to document, with the horizontal ones running the full width of the document. I've just no idea where to start...
    So, I think the process of the script would be this:
    1. Find document size
    2. Add a horizontal line at 0.1 pt size,
    Length = document width + 20mm
    X axis =  document width divided by 2 (line sits centrally, hanging 10mm over left and right edges)
    Y Axis = 0mm
    3. Add a horizontal line at 0.1 pt size,
    Length = document width + 20mm
    X axis =  document width divided by 2 (line sits centrally, hanging 10mm over left and right edges)
    Y Axis = document height
    4. Add a vertical line at 0.1 pt size,
    Length = 10mm
    X axis =  0mm
    Y Axis = -2mm to -12mm (bottom line sits at -2, top of line at -12)
    5. Add a vertical line at 0.1 pt size,
    Length = 10mm
    X axis =  document width
    Y Axis = -2mm to -12mm (bottom line sits at -2, top of line at -12)
    6. Add a vertical line at 0.1 pt size,
    Length = 10mm
    X axis =  0mm
    Y Axis = document height + 2mm, to document height +12mm (top of line sits at document height +2mm, bottom of line at document height +12mm)
    7. Add a vertical line at 0.1 pt size,
    Length = 10mm
    X axis =  document width
    Y Axis = document height + 2mm to document height +12mm (top of line sits at document height +2mm, bottom of line at document height +12mm)
    For the future I am wanting some more complex scripts but this will hopefully help me understand a little bit.  (I will need one with input tables where you can add variables if that's do-able, but i somehow think it wont be me doing that one!!)
    Thanks in advance for any help or pointers.
    Phil

    As said above, we can walk you through a custom script step by step
    Let me get you started with this: the ESTK Help -- or one of its variants -- is your biggest friend!
    "1. Find document size"
    Use app.activeDocument.documentPreferences.pageWidth and app.activeDocument.documentPreferences.pageWidth for these.
    "2. Add a horizontal line at 0.1 pt size,
    Length = document width + 20mm
    X axis =  document width divided by 2 (line sits centrally, hanging 10mm over left and right edges)
    Y Axis = 0mm"
    app.activeDocument.graphicLines.add () adds a new graphic line on a default position. You can then move it into position.
    Doing the math results in this little script to add the first line:
    newLine = app.activeDocument.graphicLines.add();
    newLine.paths[0].pathPoints[0].anchor = [ -20, 0 ];
    newLine.paths[0].pathPoints[1].anchor = [ app.activeDocument.documentPreferences.pageWidth+20, 0 ];
    newLine.strokeWeight = 0.1;
    newLine.strokeColor = app.activeDocument.swatches.item("Registration");
    newLine.strokeStyle = app.strokeStyles[0];
    A 'line' can consist of a number of paths (consider a compound path), but usually has only one single path. A new line only has two endpoints -- the anchors --, and you can move these around by setting the coordinates with an array of [ x y ] values. Important: These values are in your current measurement units! I'm assuming, for convenience, that you have mm for this. If you see 20 inch wide lines popping up, you know why :-) Another important point: the rulers' zero point must be in the top left of your document. All "absolute" values are relative to this zero point.
    It is perfectly possible to have the script set the correct measurements and move the zero point for you, but now you know why it has to do that.
    Notice you don't explicitly move the center of the new line; in this case, it's easier to immediately move each end point into its correct place.
    There are a few other things you can do to make the script misbehave. The new line is created with the active defaults in your document. You could have the script change the defaults to the correct settings, but that's not really user friendly. Instead, you can change everything by applying new values to the new line only. You can see I set its weight, color, and stroke style.
    A few points on these latter three settings:
    Didn't I just tell you all values are in current measurement units? Well, line widths are always in points (as is font size and line spacing).
    The correct line color is grabbed by asking for a swatch called "Registration" -- you might want to replace this with another swatch name.
    The stroke style is grabbed by blindly using the very first stroke style in InDesign. I found out the hard way using "Solid" (or what is it called) does not work across different languages. Much later I learned there is a language-independent way of using the names, but hey, that's harder to remember.

  • Help for identifing top sql statements

    Hi all,
    We are doing load testing on oracle 9i with 500 concurent users. At some point of
    time the database was hang. I would like to know which query is taking more time/
    which resource occuping more. Can any body help in this regard.
    Thanks in advance

    Some useful information can be found in V$SQLAREA, for example :
    SQL> select SQL_TEXT, EXECUTIONS, DISK_READS, BUFFER_GETS, ROWS_PROCESSED, CPU_TIME, ELAPSED_TIME
      2  from v$sqlarea
      3* order by CPU_TIME desc;

  • Help with a simple select statement

    $x = oci_parse($c, "select quantity from balance where item_num=101");
    oci_execute($x);
    echo "the quant is: ".$x;
    I try to run this select statement without success
    then I tried...
    $x = oci_parse($c, "select quantity from balance where item_num=101");
    $y= oci_execute($x);
    echo "the quant is: ".$y;
    and it didn't work either...
    What should I change?
    thanks!

    The Oracle library operates a bit differently from some other PHP libraries, notably MySQL/MySQLi. With Oracle (OCI8), you have to execute the statement, and then afterward use an oci_fetch...() function to pull things from your $statement variable. Here's a small example that hopefully will illustrate the basic usage:
    <?php
         $conn = oci_connect('hr','hr','xe');
         if(!$conn) {
              echo 'Could not connect!';
              exit;
         $sql = 'select * from jobs';
         $stmt = oci_parse($conn, $sql);
         if(!$stmt) {
              echo 'Could not parse query.';
              exit;
         $result = oci_execute($stmt, OCI_DEFAULT);
         if(!$result) {
              echo 'Could not execute query.';
              exit;
         echo "Query ran successfully.\n";
         // Fetch rows as associative arrays, so
         // we can ask for values by column name.
         // Other options include oci_fetch_row(),
         // oci_fetch_array(), and oci_fetch_object().
         // Note that oci_fetch_assoc() will create
         // an associative array using upper-case
         // column names for the keys.
         while(($row = oci_fetch_assoc($stmt)) != null)
              echo $row['JOB_ID'] . ': ' . $row['JOB_TITLE'] . "\n";
         echo "All data returned.\n";
         oci_close($conn);
    ?>When I run this, I get the following:
    C:\workspace\php>php select.php
    Query ran successfully.
    AD_PRES: President
    AD_VP: Administration Vice President
    AD_ASST: Administration Assistant
    FI_MGR: Finance Manager
    FI_ACCOUNT: Accountant
    AC_MGR: Accounting Manager
    AC_ACCOUNT: Public Accountant
    SA_MAN: Sales Manager
    SA_REP: Sales Representative
    PU_MAN: Purchasing Manager
    PU_CLERK: Purchasing Clerk
    ST_MAN: Stock Manager
    ST_CLERK: Stock Clerk
    SH_CLERK: Shipping Clerk
    IT_PROG: Programmer
    MK_MAN: Marketing Manager
    MK_REP: Marketing Representative
    HR_REP: Human Resources Representative
    PR_REP: Public Relations Representative
    All data returned.
    C:\workspace\php>For more information, take a look at the OCI8 library documentation in the PHP manual online:
    OCI8
    http://us.php.net/manual/en/book.oci8.php
    Some other examples
    http://us.php.net/manual/en/oci8.examples.php
    Kind regards,
    Christopher L. Simons

  • Need conceptual help for a simple drag n drop game

    As anyone who saw my previous thread knows, I'm trying to make an educational app prototype (I'm new to Flash, this is for a Masters in education) to help students learn IPA symbols (phonetics). I have successfully made a section where the students click on symbols to hear the corresponding audio and listen to explanations.
    For the final part of the prototype, I have to create some kind of instructional game. My idea is to have 12 circles, each one playing an audio file of a vowel sound (this I know how to do). The students will have to click the circles to listen and then drag and drop them to the correct IPA symbol. Flash would then give feedback on correct/incorrect answers and a score. Maybe all of this is against the clock, needing a timer.
    So, I need to learn drag and drop. What else to I need to learn so that one drop position is considered "correct", the others are considered "incorrect" and a score is given at the end? And maybe a timer?)
    Any conceptual help gratefully received!!
    Darren

    Cheers for the reply.
    Yes, I have heard of this Google you speak of The thing is, sometimes as a beginner you can't see the wood for the trees and I find mountains of info when I search, it's hard to know which direction to do in. As for drag & drop I had already found good tutorials on that, it's more the other concepts that need to be employed that I would like information on.
    I'll look into the getTomer() function, sounds just what I need.
    As for the scoring correct/incorrect answers, i found a wonderful example on flashkit.com, which would basically solve all my problems if I learn how to adapt it. The trouble is it was made in Flash 7, I'm on CS4.
    How many changes would I need to make to the code to turn it into AS3?
    Cheers everyone
    Darren
    (EDIT: I pasted the code and now it looks weird. I used SQL syntax highlighting on this page, maybe somebody could tell me how to past code and get it looking correct?)
    myAnswers = [[1, 1], [2, 2], [3, 5], [4, 4]];
    function doDrop(dragSprite, numTargets) {
         for (i=1; i<numTargets+1; i++) {
              if (_root[dragSprite].hitTest("_root.q"+i)) {
                   if (_root["q"+i]._currentframe<>2) {
                        _root[dragSprite]._x = _root["q"+i]._x+5;
                        _root[dragSprite]._y = _root["q"+i]._y+2;
                        _root["q"+i].gotoAndStop(2);
                   } else {
                        _root[dragSprite]._x = _root[dragSprite].stx;
                        _root[dragSprite]._y = _root[dragSprite].sty;
    function clearDrop(dragSprite, numTargets) {
         for (i=1; i<numTargets+1; i++) {
              if (_root[dragSprite].hitTest("_root.q"+i)) {
                   if (_root["q"+i]._currentframe == 2) {
                        _root["q"+i].gotoAndStop(1);
                        break;

  • Some Help for a newbie...

    Hi,
    I am new to java and I am developing a login module and when i enter the login name and password and clicks on ok button i want it to be displayed as "welcome" followed by login name.
    So i wana ask how to pass the string to other code.plz help me out.
    Code 1:
    import java.awt.*;
    import java.awt.event.*;
    class Login implements ActionListener
         Frame f;
         Label l1,l2;
         TextField tf1,tf2;
         Button b1,b2;
         public Login()
         f=new Frame("Login window");
         l1=new Label("LOGIN");
         l2=new Label("PASSWORD");
         tf1=new TextField(20);
         tf2=new TextField(20);
         b1=new Button("OK");
         b2=new Button("RESET");
         tf2.setEchoChar('*');
         f.setLayout(new FlowLayout());
         f.add(l1);
         f.add(tf1);
         f.add(l2);
         f.add(tf2);
         f.add(b1);
         f.add(b2);
         f.setSize(500,100);
         f.setVisible(true);
         b1.addActionListener(this);
         b2.addActionListener(this);
    public void actionPerformed(ActionEvent ae)
         if(ae.getSource()==b1)
              String s=tf1.getText();
              System.out.println("Login = "+s);
              Registered x=new Registered();
         else if(ae.getSource()==b2)
              tf1.setText("");
              tf2.setText("");
    public static void main(String args[])
         Login x=new Login();
    Code 2:
    import java.awt.*;
    class Registered
         Registered()
         Frame f;
         f=new Frame("REGISTERED");
    //     s=tf1.getText();
         public static void main(String args[])
              Registered x=new Registered();
         System.out.println("WELCOME "+s);
    }

    Hi,
    ok what you can do is make the Registered() constructor be
    Registered(String s) {
    this way when you call Registered from the Login() class you can use
    Registered x = new Registered(tf1.getText());
    so that the string is sent to the Registered class.
    in the Registered class you can now use the constructor variable "s" for the name so the output would be
    System.out.println("WELCOME "+s);
    That would fix your problem. Although your Registered class could be improved. I suggest you get rid of the main() method in Registered() it isn't needed as the Registered object is created in Login.
    i would make it:
    import java.awt.*;
    class Registered
        Registered(String s) {
               Frame f=new Frame("REGISTERED");
               Label l1=new Label("Welcome "+ s);
               f.add(l1);
               f.setSize(100,100);
               f.setVisible(true);
    I hope all that helps
    Dex

  • C or C++ compiler (or even editor with some help) for OS X needed

    Hey,
    I would like to learn C and C++ and am looking for a compiler for OS X that generates executable files. An editor that helps you a bit would be even better. Does anybody know any kind of software for this? Maybe even freeware?
    Thank you,
    Jerome

    It's called Xcode. It's supplied by Apple with every machine on the OS install Disc.
    Put your OS X install disc in the drive and look for the developer tools package. It might be in a folder like 'Optional Extras'.
    ...or if you can't find your disc (or just want a newer version) you can get it from http://developer.apple.com/technology/xcode.html, but you need to create a free account.

  • Need some help for error message

    Procedures of package Portal30.wwv_builder do not seem to work anymore. When I want to create any database object, or even to modify some application components (call wwwv-builder.accept or wwv_builder. show) here is the message displayed :
    Mon, 23 Apr 2001 14:59:00 GMT
    ORA-03113: fin de fichier sur canal de communication
    DAD name: portal30
    PROCEDURE : PORTAL30.wwv_builder.accept
    URL : http://demo:80/pls/portal30/PORTAL30.wwv_builder.accept
    PARAMETERS :
    ============
    P_AL1:
    <HTML>
    <HEAD>
    <TITLE>Example</TITLE>
    </HEAD>
    Can anyone help me ?...
    null

    Which versions of the database and portal are you using?

Maybe you are looking for

  • The fontd process crashes every time I launch Font Book

    Crash report is below.  Looks like it's the com.apple.xtype.FontRegistry thread that's crashing.  I found a similar problem talked about for 10.5 that suggested installing the latest COMBO update.  How do you guys suggest I try to fix this with Lion?

  • POPUP after selecting button in ALV

    Hello everyone. I have an ALV (called with FM 'REUSE_ALV...') with a gui status of its own. I added a new button that must popup a window with information on some variables i just ended calculating. I allready tried using 'call screen' and the comman

  • Xorg 1.8 just won't start

    Hi, I recently upgraded my Xorg for the nth time. Since it used to crash all the time, i was doing a rollback every time. But now i really want to get it working, and i just can't seem to find the problem. I just did a complete format (i wud have had

  • Using iWeb to publish to different services

    I have iLife 2008, and I also use a dot-Mac account. I want to publish a handful of different web-sites for different organizations. One organization would use the dot-Mac account. Another uses a separate web server that has nothing to do with dot-Ma

  • Shadow/Dust on imac 27" lcd??

    It's hasn't been a year since i bought my 27" imac, now i have shadow/dust on my lcd (not behid glass, tech guy confirm). Luckly im still under 1 year waranty n have apple care for another 2 years, i bring it to ibox (indonesia apple premium reseller