Boolean Problems

I have made a GUI using Javax Jframe etc and on it i have a JCheckbox.
My problem is that when i try to save the values of the textbboxes on the JFrame and the checkbox, i cant get the value of the checkbox to save. I dont know how to get the value of the checkbox and save is as either true or false.
private class AddVideoListener implements ActionListener {
          public void actionPerformed(ActionEvent arg0) {
               Item I = new Item(mVidTitle.getText(), Integer.parseInt(mVidAge.getText()),
                         mVidType.getText(), Boolean.valueOf(mVidAvailable));
               mConfig.getCustomerRecords().addClient(mCustID.getText(),c);mVidAvailable is the checkbox

no that doesnt work lolI sincerely doubt that.
kind regards,
JosOr the OP is mixing awt and swing (not a good idea OP!) so it could possibly be a java.awt.Checkbox instead of a javax.swing.JCheckBox
@OP: try boolean checked = mVidAvailable.getState();http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Checkbox.html
But I recommend not mixing swing and awt, but just using swing components.

Similar Messages

  • Boolean problem in a counter

    hello, i am working in a counter,to know the falling edges of a digital signal but i have a problem at the input of the main case structure(the code is attached)
    when the boolean control is false the code isn´t executed OK!
    (*) when the boolean control is true,the code is exectued. OK! and the indicators 'contador'(counter) and 'tiempo ejecucuion del bucle'(time which the code is running) start to 0. OK!
    but when the code is running, i want to stop the program to know the value of the indicators when the execution time is 60seg, but it doens´t happen because the code start to execute again with the inicators from value equal to 0, therefore i can´t to know the values of the indicators at time equal to 60seg
    later i want to execute the code again like in (*).
    The counter works perfect.
    I need the boolean control because later i will have another code being executed continuously with this counter code(executed about the state of the boolean control)
    could somebody help me with this? i hope that all is clear explained
    thanks!
    Attachments:
    COUNTER.vi ‏31 KB

     set mechanical action of your button to switch until release, if you want yor increment is every click is increment by 1
    Thank you & Best regards
    syrpimp
    =======================================================
    “You must continue to gain expertise, but avoid thinking like an expert." -Denis Waitley
    Attachments:
    Counter.vi ‏14 KB

  • MAJOR boolean problem

    Hi everyone. I am working on a program and I am almost done except for one thing. The program tests to see if a inputed string is a palindrome
    (a word spelled the same forwards and backwords. Ex: racecar) I do this by popping off a stack and dequeuing and comparing for the length of the string. The problem is that whenever I input a String and hit the button it always says that it is a palindrome no matter what. Here are the two classes, where my problem lies.
    InputProcessor.java
    public class InputProcessor
         MyChar x, y, z;
            boolean Palindrome;
         public String processInput(String data)
               MyStack firstStack = new MyStack();
               MyQueue firstQueue = new MyQueue();
               for(int i = 0; i < data.length(); i++)
                 x = new MyChar(data.charAt(i));
                 firstStack.push(x);
                 firstQueue.enqueue(x);
                 for(int j=0; j < data.length(); j++)
              y = new MyChar(((MyChar)firstStack.pop()).oneChar);
              z = new MyChar(((MyChar)firstQueue.dequeue()).oneChar);
              if(y.sameAs(z) == true)      //the problem appears to be
                    Palindrome = true;           //from here down.     
                      else
                        Palindrome = false;
                        return("Not a palindrome.");
                      if(Palindrome !=false)
                        return("Is a palindrome.");
    }and
    MyChar.java
    public class MyChar implements Testable
    char oneChar;
    public MyChar( char oneChar  )
       this.oneChar = oneChar;
    public String toString()
      return(String.valueOf(oneChar));
    public boolean sameAs(Object anotherChar)
    if(this.oneChar == ((MyChar)anotherChar).oneChar)        
    return(true);
      else
    return(false);
    }I really appreciate your help. I've put a lot of work on the program and I honestly can't come up with a resolution.
    Thank You,
    Dustin

    First of all, stop putting parenthesis around your return statements. While it seems to work (since you're not getting any errors), there is no method called return() and it looks very ugly and you should be ashamed of yourself for writing that kind of code.
    Second, rename your Palindrome variable to palindrome (i.e. lowercase) since it's the preferred coding style. Capitalized names are used for class names.
    And for the third, your original problem. You're testing if it's a palindrome for every character. So what actually is happening is, you give it a word like "abba", it tests the first letter 'a' with the last letter 'a' and determines that it's a palindrome.
    Then, replace
    y = new MyChar(((MyChar)firstStack.pop()).oneChar);
    z = new MyChar(((MyChar)firstQueue.dequeue()).oneChar);
    with
    y = (MyChar)firstStack.pop();
    x = (MyChar)firstQueue.dequeue();
    because it's a less idiotic way to do what you're doing.
    And finally, fix your damn code.

  • Boolean problem

    //How to compare two  houses size
    Private double houseSize;
    Private int numberOfRoom;
    //Set and get methods
    public double compareHouse(House h){
        return ?????
    public static void main(Strings[]args){
       House myHouse = new House();
       House yourHouse = new House();
       MyHouse.sethouseSize(20);
       yourHouse.sethouseSize(40);
       // compareHouse: it  returns =0 , >0 or <0; 
       if( )
    //Two problems: 1:what should the compareHouse method return.
    //2: how can I test the program, the result should be; =0 , >0 or <0; 
    }

    You already answer question 1 in question 2! That
    method should return either <0 (-1 for example), 0 or
    0 (1 for example). That would be:<0 when house 1 is "smaller than" house 2
    0 when house 1 is equal to house 2
    0 when house1 is "greather than" house 2
    How wo you know without specs? Could be the other way around as well. :) And OP still has to define "smaller" and "greater". More rooms? More size? Both?

  • Pls help... URGENT!! :(

    hi,
    i am developing an application in struts
    i am making preparedstatements on a single connection
    now in certain method, i am firing two queries on two different tables. i want to make sure that either both the tables were updated or none of them.
    i know we can use connection.autocommit(boolean)
    problem with above approach is.. i am not sure whether this approach is thread safe.
    e.g. if there are two threads A and B
    now thread A is going to fire two queries (which i want atomic) and thts why i will make connection.autocommit false. after both the queries are done, i will commit and result wud be as expected.
    but now suppose thread B was in middle of same method and it has fired only one query , now is commiting thread A going to commit queries fired by thread B too as they both are using single connection??
    please help me in this.
    if connection.autocommit is not going to help, can i use "javax.transaction.*" in my struts application??
    please help
    thx
    vraj

    hi,
    i am developing an application in struts
    i am making preparedstatements on a single connection
    now in certain method, i am firing two queries on two
    different tables. i want to make sure that either
    both the tables were updated or none of them.
    AKA: Logical Unit of Work
    i know we can use connection.autocommit(boolean)
    problem with above approach is.. i am not sure
    whether this approach is thread safe.
    The method call itself has nothing to do with thread safety. As DuffyMo mentioned, if you only use varaibles that are either in the Action class's execute() method signature or declared locally within that method, then at first blush, your action will be thread safe.
    e.g. if there are two threads A and B
    now thread A is going to fire two queries (which i
    want atomic) and thts why i will make
    connection.autocommit false. after both the queries
    are done, i will commit and result wud be as
    expected. Correct. You cannot support a Logic Unit of Work with auto-commit enabled unless the LUW is atomic (in this case, a single SQL statement).
    but now suppose thread B was in middle of same method
    and it has fired only one query , now is commiting
    thread A going to commit queries fired by thread B
    too as they both are using single connection??
    In a technical or a practical sense? If you are using connection pooling, then a series of threads may, in fact, share that connection. But otherwise, no. Each thread should use its own connection. Even in pooling, the fact that other threads will use a given connection should not change your design. The pooling happens behind the scenes.
    please help me in this.
    if connection.autocommit is not going to help, can i
    use "javax.transaction.*" in my struts application??
    To use the transaction classes, you would want to have auto-commit set to false. And yes, you could use these classes in a Struts, or any other J2EE, application.
    >
    please help
    thx
    vrajIf you do want to implement a Logical Unit of Work across multiple SQL statements, here is the high-level procedure:
    Get a connection
    Set auto-commit to false
    Depending on the DBMS, you may need to issue a begin transaction
    Perform your SQL statements, passing the connection to each method
    If an exception occurs, call connection.rollback()
    Otherwise call connection.commit()
    Close the connection- Saish

  • Problem with Booleans and events

    I have an event structure inside a while loop. I have several buttons each of which triggers one event. Now no matter what latch action I try with these at any point of time only one of the events run. So if I want to run another event I have to stop the main vi run it again and then go to the next event. I guess what this means is that the events are not being terminated by value change. But I have tried to reset the value of the boolean as well in order to terminate but event this doesnt seem to work.There is some fundamental problem somewhere but I am unable to figure it out. Can somebody please help me.
    I am attaching a sample vi and sub vis that demonstrate this problem. In this case I need to have the booleans h
    ave the switch when released action. i.e as long as the button is pressed the camera i control moves left and as soon as I release it it shud stop.
    Attachments:
    CamInte.vi ‏108 KB
    Left.vi ‏190 KB
    Right.vi ‏190 KB

    You need to decide whether you want things controlled by events, or by loop polling.
    Some things to consider:
    Inside each event you have a loop where you read the booleans the events react to. That means the events will be fired over and over again inside the loop, and you'll have a stack of old events to be fired when the while loop has exited...events you don't really want to do anything about (use events for all the button clicks, or loops - not a mix).
    Events are still flow controlled so when the left event fires and it enters the while loop it won't handle any other events until that while loop has finished.
    When an event fires the button value if read at the same time is not the value the event fired on. So when you have an event that fires when
    you press the button, if you wire the button value to something inside that even it won't be true, it will be false. Use the new value output of the event case to read the value you really want.
    MTO

  • Problem with getAttribute() for Booleans

    Hi
    We have an Application which has undergone all the migration path from JDeveloper 9i beta up to JDeveloper 9.0.5.2 (in several steps certainly :-) ) . Now we try do the next step: we want to upgrade from 9.0.5.2 to 10.1.3.
    But there is a problem with Boolean attributes:
    Since there were some problems with Booleans in elder versions of JDeveloper all our Booleans are stored in Attributes of type VARCHAR2(1) ("1" is TRUE, "0" is FALSE). This worked well since 9.0.5.2. But now in JDeveloper 10.1.3 all Boolean Attributes return FALSE, no matter of the content of the database. Since we do not want to convert our data in the database I am now looking for a way, how I can enable this Application to correctly read Booleans from VARCHAR2(1) .
    I've already found some classes like "TypeFactory" and "TypeMapEntries", and I've found the Property "jbo.TypeMapEntries". But I've found no clue, how to use them for my problem.
    Can anyone give me a hint?
    Thanks in advance
    Frank Brandstetter

    You have several problems:
    1. On-Insert will ONLY run if you have created a new record in a base-table block. If you haven't done that, then the POST command will not cause it to run.
    2. Select for update without a "no wait" will lock records for the first form, but when the second form tries this, it will hit the ORA-00054 exception, and will NOT wait. The only way you could make it wait is to issue an UPDATE sql command, which is not such a good way to go.
    All POST does is issues SQL insert or update commands for any changes the user has made to records in a form's base-table blocks, without following with a Commit command.
    Also understand that Commit is the same as Commit_Form, and Rollback is the same as Clear_Form. You should read up on these in the Forms help topics.

  • Problem when calling a return type BOOLEAN SQL Function in a package

    Hi All,
    I am having problem when trying to call a SQL function in a package with return type BOOLEAN
    The SQL function signature is as follows
    CREATE OR REPLACE PACKAGE RMSOWNER.ORDER_ATTRIB_SQL ****
    FUNCTION GET_PO_TYPE_DESC(O_error_message IN OUT VARCHAR2,
    I_PO_TYPE       IN     VARCHAR2,
    O_PO_TYPE_DESC  IN OUT VARCHAR2)
    RETURN BOOLEAN;
    Following is my java code
    +CallableStatement cs3 = conn.prepareCall("{?=call ORDER_ATTRIB_SQL.GET_PO_TYPE_DESC(?,?,?)}");+
    +cs3.registerOutParameter(1, java.sql.Types.BOOLEAN);+
    +cs3.registerOutParameter(2, java.sql.Types.VARCHAR);+
    +cs3.registerOutParameter(4, java.sql.Types.VARCHAR);+
    +cs3.setString(2, "");+
    +cs3.setString(3, "ST");+
    +cs3.setString(4, "");+
    +ResultSet rs3 = cs3.executeQuery();+
    I get the following exception, i tried changing the sql type(registerOutParameter) from boolean to bit but i still getting this exception.
    But when i call any other functions with return type other than boolean they work perfectly fine.
    Please can anyone help me fix this issue, i am not sure if its anything to do with vendor JDBC classes?
    +java.sql.SQLException: ORA-06550: line 1, column 13:+
    +PLS-00382: expression is of wrong type+
    +ORA-06550: line 1, column 7:+
    +PL/SQL: Statement ignored+
    +     at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)+
    +     at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)+
    +     at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)+
    +     at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)+
    +     at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:215)+
    +     at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:954)+
    +     at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1168)+
    +     at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3316)+
    +     at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3422)+
    +     at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4394)+
    #####

    Hello People!
    There is another workaround!!
    See the example below:
    private String callBooleanAPi(String tableName,String apikey,String dtInicio,String dtFim,String comando) throws SQLException {
                   CallableStatement cs = null;
                   String call = "";
                   String retorno = null;
                   try {
                        if(comando.equalsIgnoreCase("INSERT")){
                             call = "declare x BOOLEAN; y varchar2(2);begin x :=PKG.INSERT(?,?,?,?,?); if x then y := 'S'; else y :='N'; end if; ? := y;end;";
                        } else if(comando.equalsIgnoreCase("UPDATE")){
                             call = "declare x BOOLEAN; y varchar2(2);begin x := PKG.UPDATE(?,?,?,?,?); if x then y := 'S'; else y :='N'; end if; ? := y;end;";
                        } else if(comando.equalsIgnoreCase("DELETE")){
                             call = "declare x BOOLEAN; y varchar2(2);begin x := PKG.DELETE(?,?,?,?,?); if x then y := 'S'; else y :='N'; end if; ? := y;end;";
                        cs = conn.prepareCall(call);
                        SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
                        SimpleDateFormat sdfToSqlDate = new SimpleDateFormat("yyyy-MM-dd");
                        java.util.Date dataInicialVigencia =null;
                        java.util.Date dataFinalVigencia = null;
                        Date dtInicialFormatada =null;
                        Date dtFinalFormatada = null;
                        if(dtInicio != null && !dtInicio.equals("")){
                             dataInicialVigencia = sdf.parse(dtInicio);
                             dtInicio =sdfToSqlDate.format(dataInicialVigencia);
                             dtInicialFormatada = Date.valueOf(dtInicio);
                        if(dtFim != null && !dtFim.equals("")){
                             dataFinalVigencia = sdf.parse(dtFim);
                             dtFim =sdfToSqlDate.format(dataFinalVigencia);
                             dtFinalFormatada = Date.valueOf(dtFim);
                        cs.setString(1, tableName);
    cs.setString(2, apikey);
    cs.setDate(3, dtInicialFormatada );
    cs.setDate(4, dtFinalFormatada );
    cs.registerOutParameter(5, java.sql.Types.VARCHAR);
    cs.registerOutParameter(6, java.sql.Types.VARCHAR );
    cs.execute();
                        retorno = cs.getString(6);
                        System.out.println( cs.getString(5));
                   } catch(SQLException e){
                   throw new SQLException("An SQL error ocurred while calling the API COR_VIGENCIA: " + e);
                   } catch(Exception e){
                   Debug.logger.error( "Error calculating order: " + id, e );
                   } finally {
                   if (cs != null) {
                   cs.close();
                   cs = null;
                   return retorno;
    As you can see the CallableStatement class acepts PL/SQl blocks.
    Best Regards.

  • Problem with boolean attribute of JSP tag

    Hi,
    I've being trying to use a custom JSP tag, which has a boolean attribute, declared in the TLD as follows:
    <attribute>
    <name>checked</name>
    <required>false</required>
    <rtexprvalue>true</rtexprvalue>
    <type>boolean</type>
    </attribute>
    The JSP code snippet is:
    <ui:check checked="<%= myBean.isChecked() %>"/>
    where myBean.isChecked() returns a boolean value (primitive type).
    It works fine on some web containers, but it causes a JSP compilation error on Oracle9iAS 9.0.3 Java Edition, which looks like the following:
    Method toBoolean(boolean) not found in class test. _jsp_taghandler_57.setChecked( OracleJspRuntime.toBooleanObject( toBoolean( myBean.isChecked())));
    After decompiling the container's JSP parser, I found what I think it's a bug. The java class generated by the JSP parser does not define a toBoolean method, and neither do its superclasses. The method is defined on the OracleJspRuntime class! I think the correct code would have to be something like:
    OracleJspRuntime.toBooleanObject(OracleJspRuntime.toBoolean(...))
    If I'm correct, then the "convertExpression" method of the "oracle.jsp.parse.JspUtils" class must be changed, because it outputs such wrong code for not just boolean types, but for all the primitive types.
    So, has anyone ever faced this problem before? Does it have a workaround, or a patch? Is it included on the bug fixes for the 9.0.4 release?
    Thanks!

    Instead of:
    out.println("<body onload ="+strAlert+">");
    Try this:
    out.println("<body onload =\""+strAlert+\"">");
    Add two \" around the alert call.

  • Problem evaluating boolean in XSLT

    Hi,
    I am running into a wierd problem. I have a small BPEL process with input schema as shown below.
    <element name="testIssuesProcessRequest">
    <complexType>
    <sequence>
    <element name="boolValue" type="boolean"/>
    <element name="dateValue" type="date"/>
    <element name="timeValue" type="time"/>
    </sequence>
    </complexType>
    </element>
    In my BPEL process I have a switch statement which checks the value of boolValue and takes the appropriate path. The problem is this variable is always evaluating to true(I tried using true, false, 0, 1). The function I am using is
    bpws:getVariableData('inputVariable','payload','/client:testIssuesProcessRequest/client:boolValue')
    I tried the similar approach in XSLT and it is the problem
    /ns1:testIssuesProcessRequest/ns1:boolValue = true()
    I am not sure what I am missing. Is there a different way to treat boolean values
    in xslt? Any pointers will be of great help.
    Thanks
    Raj

    Use < instead of < symbol, if your javascript doesnt need to be generated from some template from some XML value you also could insert it into a CDATA section.
    I hope it can help you.

  • Search problems : Boolean expressions and spam folder

    I get about 1000 spam per day that I have to check.
    Some of them contains certain keyword that the real emails would never have.
    I would like to setup a smart folder or similar that found all emails in the spam folder that contains any of those keywords. I read some blogs etc. that said that spotlight boolean expressions could be used but they do not seem to work.
    e.g. "pill OR berry" yields no results at all but when each of the keywords are used on their own they produce 80 or so results each.
    Another problem I have is that I can do a manual search in the spam folder by typing in the search field and it yields results. But if I save that as a smart folder it yields no results at all. It seems that the rules do not work on the spam folder.
    I then tried to do all this from spotlight in the finder. I found the folder where the spam mailbox emails are stored (called "messages"). I managed to construct a nice search query and save it as a search. But if I delete one of the emails from the finder it still remains in Mail and the next time I start Mail it will be regenerated from somewhere.
    Anyone have any insights to provide here?

    I had actually missed that preference. Unfortunately it did not help.
    Even if I make a new smart mailbox with just one rule (the email must be in the spam folder) it doesnt work. It doesn't matter if I change between any/all either.
    I started experimenting with adding a rule saying that the email must not be in any of the other mailboxes but spam. That seemed to work for a bit but as I added more rules, excluding more mailboxes, it eventually broke. I will investigate it a bit more but currently don't have high hopes...

  • String (binary) to boolean conversion problem.

    Hello,
    Im facing problems converting a string (presumably in the binary format) to turn on LEDs according to its respective weight. ie.binary input = 1010. Thereby it would turn on the first (MSB) and third LEDs while the second and third are left off.
    What I have managed to obtain is a direct conversion of decimal to binary but have not much idea on how to achieve the above goal. The attached file shows two operations; top part does the boolean to binary conversion is fine. The bottom is supposed to be the binary to boolean conversion.
    Attachments:
    boolean to string.vi ‏21 KB

    OK, let's back up a second here. I don't understand what your "boolean to string" VI is doing. Are you starting with a string, a number, or a bunch of Boolean controls? The top part is dealing with Boolean controls and creating a string of characters of "0" and "1". The bottom part you have a numeric control. By the way, it is pointless to take the output of Number to Boolean Array, converting it to an array of 0s and 1s, indexing out each element, and then using the Not Equal to Zero operator. Just take the Boolean array output from Number to Boolean Array directly into an Index Array!
    You seem to be saying that you have a string in the binary format. This is somewhat meaningless, so I'm assuming you mean you have a string that consists of a sequence of the ASCII characters "1" and "0" to indicate a numerical 1 or 0. You then want to convert this into something that is programmatically useful. What that is is not clear, so let's assume an array of Booleans. If that's the case, then you can simply take advantage of the fact that you're starting out with ASCII characters, and use the ASCII codes to find out what you have. The ASCII code for the character "0" is 30 (hex) or 48 (decimal). The ASCII code for the character "1" is 31 (hex) or 49 (decimal). Assuming this is what you have and what you want, then you can simply do this:
    Attachments:
    Example_VI.png ‏8 KB

  • Problem using a Boolean variable

    Greetings;
    I'm writing a game in which the player and 'enemies' fall off the screen when they 'die'. The problem is that I also want to constrain their  movement to within the screen boundaries whenever they have not been killed. To start  I thought I'd go into the class I wrote to handle the player falling off the screen when he's touched by an enemy and create a boolean variable so that Flash would know to let him fall off the screen when killed, but remain constrained on the screen until that point.The problem is that now the player stays on the screen even when I want him to fall off (i.e. after he's been hit).
    The class I wrote to handle the player dying is below, and the boolean variable is called 'playerBeenHit'. Since the player only gets a y acceleration when hit, I tried using the 'ay' variable to control the behavior but with the same results. In troubleshooting I tried to trace(playerBeenHit) on every frame and noticed it would go to 'true' and then set itself back to 'false' for three out of four readouts even after the player was hit. I'm not sure what I'm doing wrong here.
    Thanks,
    Jeremy
    package  jab.enemy
        import flash.display.MovieClip;
        import flash.events.Event;
        import flash.geom.ColorTransform;
        public class DieLikeAPlayer
            private var _clip1:MovieClip; // the 'player'
            private var _clip2:MovieClip; // the 'enemy' who kills the 'player' on contact.
            private var ay = 0; // vertical acceleration for falling off the screen.
            private var vx = 0; // horizontal initial velocity, 'knockback' from the impact.
            private var vy = 0; // vertical initial velocity, 'knockback' from the impact.
            private var playerBeenHit:Boolean = false;
            public function DieLikeAPlayer(clip1:MovieClip, clip2:MovieClip): void
                _clip1 = clip1;
                _clip2 = clip2;
                _clip1.stage.addEventListener(Event.ENTER_FRAME, onEnterFrame)
                function onEnterFrame(event:Event):void
                    if (_clip1.hitTestObject(_clip2)) // what happens when the player gets killed.
                        playerBeenHit= true;
                        ay = 3;
                        _clip1.scaleY = -Math.abs(_clip1.scaleY);
                        _clip1.alpha = 0.4;
                        _clip1.gotoAndStop(2);
                        vx = -0.2;
                        vy = 2;
                        _clip1.y += 5;
                        _clip1.rotation = -45
                    // adding y acceleration and x velocity (knockback) from being hit.
                    _clip1.x += vx;
                    _clip1.y += vy;
                    vy += ay;
                    if(playerBeenHit == false)//constrains the player from moving past the  bottom of the screen.
                         if(_clip1.y > 620)
                         {_clip1.y = 620;}
                    if (_clip1.y > 100000) // brings the player 'back to life' after falling 100,000 pixels.
                        ay = vx = vy = 0;
                        _clip1.alpha = 1;
                        _clip1.scaleY = Math.abs(_clip1.scaleY);
                        _clip1.rotation = 0;
                        _clip1.gotoAndStop(1);
                        _clip1.x = 480;
                        _clip1.y = 300;
                        playerBeenHit = 0;

    that shouldn't compile.  don't you see an error message about your boolean being assigned an int?  you are publishing for as3, correct?

  • Boolean Search problem with the "&" character

    I need to perform a Boolean search and include names such as "John Wiley & Sons", "R & D", for example, that have the "&" character in it. The problem is that Acrobat considers the character "&" as an "AND". I have tried to use "\&" but it didn't work. Does someone know if it is possible to consider "&" as a character, instead of a logical operator, in a Boolean search, and if yes, how?

    I've already done it.
    Do you think this will help?
    I doubt that Apple will listen to us. Users with a problem that occurs quite a lot.

  • EL problem in JSP page, boolean vs. String

    We are migrating from WebSphere 6 to WebLogic 11g and are receiving the following error from the JSP pages where we use EL to determine if an element is readonly or not:
    The method setReadonly(boolean) in the type BaseHandlerTag is not applicable for the arguments (String)
    In doing some testing I can simplify the problem to this:
    works (just using EL to set tab index)
    jsp:
    <c:set var="myTabIndex" value="765" />
    <html:text property="user.email" size="28" tabindex="${myTabIndex}" readonly="true" />
    source output:
    <input type="text" name="user.email" size="28" tabindex="765" value="[email protected]" readonly="readonly">
    doesn't work (added EL to set readonly attribute)
    jsp:
    <c:set var="myTabIndex" value="765" />
    <c:set var="myReadOnly" value="true" />
    <html:text property="user.email" size="28" tabindex="${myTabIndex}" readonly="${myReadOnly}" />
    error output:
    userProfile.jsp:60:86: The method setReadonly(boolean) in the type BaseHandlerTag is not applicable for the arguments (String)
    <html:text property="user.email" size="28" tabindex="${myTabIndex}" readonly="${myReadOnly}" />
    I'm not sure what is going on here and have spent two days researching this and trying different things to no avail. I don't believe any casting should be necessary. I thought for a while EL was not enabled but in my working sample EL is being used to determine tab index. The 'does not work' code works ok in WebSphere 6 and Tomcat 6, so it is just WebLogic we are having an issue with.
    Thanks in advance for any help that can be provided.
    Michael

    Found more output in the log file that might be helpful (this is output from the real code, not the sample code I mentioned previously):
    weblogic.servlet.jsp.CompilationException: Failed to compile JSP /WEB-INF/modules/ContactTile.jsp
    ContactTile.jsp:241:17: The method setReadonly(boolean) in the type BaseHandlerTag is not applicable for the arguments (String)
    readonly="${displayonly}"
    ^--------------^
    at weblogic.servlet.jsp.JavelinxJSPStub.reportCompilationErrorIfNeccessary(JavelinxJSPStub.java:226)
    at weblogic.servlet.jsp.JavelinxJSPStub.compilePage(JavelinxJSPStub.java:162)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:256)
    at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:216)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:243)
    Truncated. see log file for complete stacktrace
    Michael

Maybe you are looking for

  • NAV is not installing on my VPC 7.0

    When I start installing Norton Antivirus 2006 on VPC 7.0, the installer crashes. Has anyone else run into this problem? If so how do I fix it? eMac   Mac OS X (10.4.3)  

  • Report program Performance problem

    Hi All,    one object is taking 30hr for executing.some one develped this in 1998 but this time it is a big Performance problem.please some one helep what to do i am giving that code. *--DOCUMENTATION-- Programe written by :  31.03.1998 . Purpose : t

  • ITunes Match and Song information remaining on the iPhone

    Is any one else experiencing this issue? I am using an iPhone 4, running 5.0.1 and using iTunes Match. I either stream or download a song from the cloud on my iPhone and then delete it from my device.  After it is deleted, I connect my iPhone to my M

  • Mandatory fields in IP01

    Hi to All In IP01 while creating Maintenance Plan, For the maintenance plan category selected i.e. Maintenance Order                Required mandatory fields are Priority and Planner Group. For the maintenance plan category selected i.e Maintenance N

  • Are there any SB cards that still use MME / WDM drivers?

    That's what I need to know; the company I contract for is replacing the audio recording PC and will need a sound card that's MME / WDM compliant? I have a recording PC in my home studio and it has an ASIO card (E-MU 0404 PCI) and I have to do retakes