Please help, 3D animation play button Java Script

The U3D file embedded into the PDF contains 3 procedure animations
I would like to add a play button for each procedure.
But I do not see the Animation Objects in the model tree of the pdf and I do not know how to connect to these animations
with JavaScript.
I have tried with no luck:
var _anim = scene.animations.getByIndex(0);
scene.activateAnimation(_anim);
_anim.currentTime = 0;
runtime.play();
Please show me how this is done with Java Script on a button.
Thank you

If you're controlling the 3D animation from a button on the PDF page you need to talk to the correct API.
The easiest way to do it is to embed a function into the 3D annotation (using a .js text file) then call that function from your button.
e.g. in the 3D script, use this:
function playAnimation(i) {
var _anim = scene.animations.getByIndex(i);
scene.activateAnimation(_anim);
_anim.currentTime = 0;
runtime.play();
Then on your button, use this:
getAnnots3D(pageNum)[0].context3D.playAnimation(0);
then the same for (1) and (2) on your other buttons.

Similar Messages

  • HELP with animation for buttons (i tried to search for days for solution)

    Hellooo
    i've been trying to look at the threads here for a solution but i just can't find... can someone please help me???
    i'm designing a website in flash8... now i have created some buttons, and i want that when i click on the button stars will fly from them and there will be a sound... i have already created the animation of the stars seperatly and it's in the library, i have also the sound file.... i just can't remember how to put everything together.... can someone please remind me what to do step by step so when i'll press on the button the stars will be flying from the button and the sound will play??? pleaseeeeeeeee, it's very very important to me... i would be thankful <3

    hey!!! thank you, the sound is fixed,now the problem is with the stars.... i've been trying to do this soooooooo many times but i have really no idea why it's not working... i don't wantto give up... i don't know what i'm doing wrong.....grrrrrrrrrrrrrrrrrr

  • Help needed for Time Calc Java Script

    Hi,
    I am trying to create a timesheet in PDF and have hit a speed bump. Is there anyone there who could provide me with a script that calculated the difference between 2 times? (Field2 time)-(Feild 1 Time) = Duration.I am desperate and have tried everything.
    I proccess the payroll for a company and all of the 500 or so timesheets that I received each fortnight are paper copies and I am pulling my hair out. I need to use Adobe forms (We have Adobe Pro 9 and I am using the XML forms, not live cycle) as the serach engine that we use for emails cannot search on excel documents.
    I have no Java script experience and I am getting completely lost in the subject. Any help would be greatly appreciated.
    Thanks anyone who can help at all.
    -Sohnia

    hi friend here example for time calulation start and end time example..<br />just copy and paste then run it ur browser.<br /><br /><HTML><br /><script language="JavaScript"><br /><!--<br /><br />var h1 = 1;<br />var h2 = 2;<br />var days = 0;<br />var m1 = 1;<br />var m2 = 2;<br />var am1 = 1;<br />var am2 = 2;<br />function findtime(h1,h2,days,m1,m2,am1,am2)<br />{<br />var answer = "why";<br />var mdiff = 1;<br />var hdiff = 2;<br />pdays = parseInt(days);<br />ph1 = parseInt(h1);<br />ph2 = parseInt(h2);<br />pm1 = parseInt(m1);<br />pm2 = parseInt(m2);<br />if(am1 == 2 & ph1 < 12) ph1 = ph1 + 12;<br />if(am2 == 2 & ph2 < 12) ph2 = ph2 + 12;<br />if(am1 == 1 & ph1 == 12) ph1 = 24;<br />if(am2 == 1 & ph2 == 12) ph2 = 24;<br />if(am1 == 2 & am2 == 1 & ph2 < 24) ph2 = ph2 + 24;<br />if(am1 == am2 & ph1 > ph2) ph2 = ph2 + 24;<br />if(pm2 < pm1){<br />pm2 = pm2 + 60;<br />ph2 = ph2 - 1;<br />}<br />mdiff = pm2 - pm1;<br />hdiff = (ph2 - ph1) + (pdays * 24);<br />if(hdiff == 0) answer = mdiff + ' minutes';<br />else if(hdiff == 1) answer = '1 hour and ' + mdiff + ' minutes'<br />else answer = hdiff + ' hours and ' + mdiff + ' minutes'<br />return answer<br />}<br /><br />//--><br /></script><br /></HEAD><br /><br /><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><br /><BODY BGCOLOR=FFFFFF TEXT=000000 LINK=0000FF VLINK=800080><br /><br /><div align="center"><table width="950" border="0" cellpadding="0" bgcolor="#899194" cellspacing="0"><br /><br />  <br /><tr><td valign="middle" width="33%"><br /><br /><center><br /><form><br /><TD WIDTH=80%><br /><center><br /><TABLE ALIGN=MIDDLE BORDER=5 CELLPADDING=5><br /><TR BGCOLOR=#FFFFFF><br /><!--ROW 1--><br /><TD WIDTH=80%><br /><center><br /><TABLE ALIGN=MIDDLE BORDER=5 CELLPADDING=5><br /><TR BGCOLOR="#B6D4D2"><br /><!--ROW 1--><br /><td colspan=4><br /><center>Time Between Times Calculations - Multiple Days</center><br /><br /></td><br /></tr><br /><TR BGCOLOR="#B6D4D2"><br /><TD align="center" colspan=4><br />Required Data Entry<br /></td><br /></tr><br /><tr><br /><td align="center">Start / End</td><br /><td align="center">Hour</td><br /><td align="center">Minute</td><br /><td align="center">AM / PM</td><br /></tr><br /><br /><td align="center">Start time</td><br /><td align="center"><input type="text" name="hour1" size="5"></td><br /><td align="center"><input type="text" name="minute1" size="5"></td><br /><td align="center"><select name="period1"><br /><option value="1">AM<br /><option value="2">PM<br /></select><br /></td><br /></tr><br /><tr><br /><td colspan="3">    Add Complete Interim Days</td><td align="center"><input type="text" name="adays" size="5" value="0"></td><br /></tr><br /><tr><br /><td align="center">Start / End</td><br /><br /><td align="center">Hour</td><br /><td align="center">Minute</td><br /><td align="center">AM / PM</td><br /></tr><br /><td align="center">End time</td><br /><td align="center"><input type="text" name="hour2" size="5"></td><br /><td align="center"><input type="text" name="minute2" size="5"></td><br /><td align="center"><select name="period2"><br /><option value="1">AM<br /><option value="2">PM<br /></select><br /></td><br /></tr><br /><br /><tr><br /><td align="center" colspan=4 BGCOLOR="#B6D4D2"><br /><input type="button" value="Calculate" <br />onclick="h1=form.hour1.value;<br />h2=form.hour2.value;<br />m1=form.minute1.value;<br />m2=form.minute2.value;<br />days=form.adays.value;<br />am1=form.period1.options[period1.selectedIndex].value;<br />am2=form.period2.options[period2.selectedIndex].value;<br />if(h1 < 0 | h1 > 12) alert('Your start hour is not valid');<br />else if(h2 < 0 | h2 > 12) alert('Your end hour is not valid');<br />else if(m1 < 0 | m1 > 59) alert('Your start minute is not valid');<br />else if(m2 < 0 | m2 > 59) alert('Your end minute is not valid');<br />else form.answer.value=findtime(h1,h2,days,m1,m2,am1,am2);"><br />   <br /><input type="reset" value="Clear Values"><br /><br /></td><br /></tr><br /><TR BGCOLOR="#B6D4D2"><br /><TD align="center" colspan=4><br />Calculated Results<br /></td><br /></tr><br /><br /><tr><br /><td align="center" colspan="4"><br />Time Difference <input type="text" name="answer" size="40"><br /><tr><td>[email protected]</td></tr><br /></td><br /></tr><br /></table><br /></form><br /></td><br /></tr><br /></table><br /><br /></center><br /></td><br /></tr><br /></table><br /></center><br /><br /></TD><br /></TR><br /></TABLE><br /></BODY> <br /></HTML>

  • Please help! Problem playing film on PC!

    When I edited the project I worked in two sequences for a while, but copied everything in the first sequence onto a new sequence and deleted the first sequence. It seems like this is why the film can't be shown on a PC or be uploaded to Youtube. It seems fine when I play the Quicktime on the Mac the film was edited, but it doens't work anywhere else.
    None of the formats want to play on PC. The film only works on the Mac the film was edited. Unfortunately I don't have the Mac where the film was edited here now, but when I try to open the Quicktime on my PC I get this message: "The sequence 1-FIN-00000018 can't be found. The film can't be played without this sequence". That happened on another PC aswell. Someone suggested that I've exported a reference movie from FCP and not a self-contained file. Does anyone know how I can solve this?
    Please help!!!
    Thank you!

    >Someone suggested that I've exported a reference movie from FCP and not a self-contained file.
    They are right. The clue here is "reference", the file refers back to the content of other files. If those files are missing, your movie is worthless.
    >Does anyone know how I can solve this?
    Go back to the Mac where your project was made and export a self-contained move that uses a common codec such as H.264.

  • Please help for using perform in SAP script

    As subject.
    My sap script code as below:
    /: PERFORM GET_CHAMT_DATE IN PROGRAM ZRAP004
    /:USING    &SPELL-WORD&
    /:CHANGING &SPELL-WORD&
    /:ENDPERFORM
    My program ZRAP004 code as below:
    FORM get_chamt_date USING u_iword TYPE spell-word
                       CHANGING u_oword TYPE spell-word.
    CONCATENATE u_iword '&#20803;&#25972;'(t01) INTO u_oword.
    endform.
    This form is for check printing.
    It's by standard function 'F110' to excute check printing.
    But when i finished this transaction. System return error message as below:
    <b>This routine contains 2 formal parameters, but the current call
    contains 4 actual parameters.</b>
    Please help. Thanks a lot!!

    Hiii
    PERFORM CDE_CENT IN PROGRAM ZKRPMM_PERFORM_Z1MEDRUCK
    /:USING &EKKO-EBELN&
    /:CHANGING &CDECENT&
    /:ENDPERFORM
    The report :
    REPORT zkrpmm_perform_z1medruck .
    DATA : BEGIN OF it_input_table OCCURS 10.
           INCLUDE STRUCTURE itcsy.
    DATA : END OF it_input_table.
    déclaration de la table output_table contenant les
    variables exportées
    DATA : BEGIN OF it_output_table OCCURS 0.
           INCLUDE STRUCTURE itcsy.
    DATA : END OF it_output_table.
    DATA : w_ebeln LIKE ekko-ebeln,
          w_vbeln LIKE vbak-vbeln,
          w_zcdffa LIKE vbak-zcdffa.
    FORM CDE_CENT
    FORM cde_cent TABLES input output.
    it_input_table[] = input[].
    it_output_table[] = output[].
    READ TABLE it_input_table INDEX 1.
    MOVE it_input_table-value TO w_ebeln.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
               input  = w_ebeln
          IMPORTING
               output = w_ebeln.
    SELECT SINGLE zcdffa FROM ekko
    INTO w_zcdffa
    WHERE ebeln = w_ebeln.
    it_output_table-name = 'CDECENT'.
    MOVE w_zcdffa TO it_output_table-value.
    MODIFY it_output_table INDEX 1.
    output[] = it_output_table[].
    ENDFORM.

  • URGENT PLEASE HELP: iTunes Will Play Songs With No Sound.

    Hello all. I recently did the following and significantly screwed up my iTunes:
    -Tried to move my directory to an external hard drive.
    -This didn't work, so I then had to reload my iTunes.
    -I did this by doing the standard copying the .xml library file to the desktop, deleting the old library files and importing the new .xml into the iTunes.
    -However, I now have music in my iTunes, but when I click on files, they'll play but with no sound. No exclamation point comes up next to them to signal they're missing, but just no sound.
    -Tried uninstalling and then reinstalling the latest iTunes. Still nothing.
    I also tried dragging a random song into iTunes to see whether it was just a directory mix-up still, but no dice. Right now, the directory for my iTunes is Macintosh HD:Users:name:Music:iTunes:iTunes Music.
    Please help!!!!

    Well, that could be, but before thinking of an hardware issue, first check all possible software settings.
    Try this:
    In System Preferences>Sound there are two volume sliders.
    Set the Output volume about halfway. Now move the Alert volume slider just a little bit. This normally will invoke the Mac to play the selected alert sound.
    Still no sound?
    Can you connect a headphone to the PB?
    If yes, does it have sound?
    M

  • PLEASE help me with this error java.sql.SQLException

    The code
    public void getInitialQuery() {         try {             Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");             con = DriverManager.getConnection("jdbc:odbc:PDefApp1");             sta = con.createStatement();             System.out.println(SQLQuery);             res = setupSQLConnection(SQLQuery);             getRecordSet(res);
    private void getRecordSet(ResultSet r) {                try {             jTextRecordNumberField.setText(String.valueOf(r.getInt("id")));             jTextFirstNameField.setText(r.getString(2));             jTextMiddleNameField.setText(r.getString(3));             jTextLastNameField.setText(r.getString(4));             jTextDateOfBirthField.setText(r.getString(5));             jTextAKAField.setText(r.getString(6));             jComboBoxChargingDocument.setSelectedItem(r.getString(7));             jTextAreaChargingNumber.setText(r.getString(8));             jComboBoxDecision.setSelectedItem(r.getString(9));             jComboBoxDefendentStatus.setSelectedItem(r.getString(10));             jComboBoxOriginatingUnit.setSelectedItem(r.getString(11));             jTextFieldApplicationDate.setText(r.getString(12));             jTextFieldDecisionDate.setText(r.getString(13));             jTextFieldDeliveryDate.setText(r.getString(14));             jTextAreaComments.setText(r.getString(15));         } catch (Exception e) {             System.err.println("getRecordSet Exception: " + e.getMessage());             e.printStackTrace();         }             }
    The crash occurs in getRecordSet(ResultSet r) method and it occurs on ANY line. I've commented each line to see where it occurs.
    The crash says the following
    run: SELECT * FROM Table1 ORDER BY id ASC setupSQLQuery: SELECT * FROM Table1 ORDER BY id ASC getRecordSet Exception: [Microsoft][ODBC Driver Manager] Invalid cursor state java.sql.SQLException: [Microsoft][ODBC Driver Manager] Invalid cursor state         at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6957)         at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7114)         at sun.jdbc.odbc.JdbcOdbc.SQLGetDataString(JdbcOdbc.java:3907)         at sun.jdbc.odbc.JdbcOdbcResultSet.getDataString(JdbcOdbcResultSet.java:5698)         at sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:354)         at publicdesktopapplication.PublicDesktopView.getRecordSet(PublicDesktopView.java:1411)         at publicdesktopapplication.PublicDesktopView.getInitialQuery(PublicDesktopView.java:1377)         at publicdesktopapplication.PublicDesktopView.<init>(PublicDefenderView.java:89)         at publicdesktopapplication.PublicDesktopApplication.startup(PublicDesktopApplication.java:19)         at org.jdesktop.application.Application$1.run(Application.java:171)         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)         at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    I am very confused why this is crashing on me. It didnt crash in the older version of this application.
    Please help!

    Don't do this either
    SELECT * FROM Table1 Explictly name the columns in the order that you are going to fetch them. This makes your code easier to follow later and as side benefit prevents any changes in the column ordering from blowing your code to smitheens.
    And I do hope your table is not in fact called Table1.

  • Please help me , I am having java.security.AccessControlException

    Hi,
    Let me tell you may problem,
    I have an application with its jar file build inside for eg in E:\Projects folder with the name MyApplication,
    also I have build this application and its jar file whose name is MyApplication.jar is inside dist folder.
    Well I go inside this folder and type this command as I have shown below;
    E:\Projects\MyApplication> java -jar "MyApplication.jar"
    there is no error every thing works fine, but if I go to the root folder and
    type the command as I have shown below;
    E:\>java -jar "E:\Projects\MyApplication\dist\MyApplication.jar"
    I get the following error, tell me whats wrong;
    checkPermission Line no:-1 java.security.AccessController.checkPermission(Unknown Source)
    java.security.AccessControlException: access denied (java.io.FilePermission jint
    egra.log write)
    at java.security.AccessControlContext.checkPermission(Unknown Source)
    at java.security.AccessController.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkWrite(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at com.linar.jintegra.Log.logImmediately(Unknown Source)
    at bis.opencontrol.opcconnector.CheckOPCServerOne.checkThisOPCServerAtTh
    isIPaddress(CheckOPCServerOne.java:74)
    at bis.opencontrol.opcconnector.CheckOPCServerOne.run(CheckOPCServerOne.
    java:57)
    at java.lang.Thread.run(Unknown Source)
    at com.mysql.jdbc.Connection.<init>(Connection.java:716)
    Feb 07,2009 8:12:51:212 PM|bis.opencontrol.opcconnector.CheckOPCServerOne.class(
    120)|Thread-12| checkPermission Line no:-1 java.lang.SecurityManager.checkPermis
    sion(Unknown Source)
    java.security.AccessControlException: access denied (java.io.FilePermission jint
    egra.log write)
    at java.security.AccessControlContext.checkPermission(Unknown Source)
    at java.security.AccessController.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkWrite(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at com.linar.jintegra.Log.logImmediately(Unknown Source)
    at bis.opencontrol.opcconnector.CheckOPCServerOne.checkThisOPCServerAtTh
    isIPaddress(CheckOPCServerOne.java:74)
    Well please help me I don't know whats wrong...

    Reset Security Questions
    http://support.apple.com/kb/ht5312
    If you still have problem, call Apple to help reset your Security Question.
    http://support.apple.com/kb/HT5699

  • Please Help Me! My buttons stopped working all of the sudden.

    I am not sure how this happened. I think some rain my have gotten on my BlackBerry. Maybe it seeped in or something. But I'm freaking out right now because I am receiving texts and i can't view them.
    Anyway. The buttons aren't working. Only the trackball sort of works. A little. And I tried removing the battery twice. the device re-booted and went back to not working. It starts to type on its own : Ttgtgtgtgt.... and will only light up when i plug it in like as if to charge it. 
    PLEASE HELP!!!! I AM DYING WITHOUT MY BLACKBERRY

    If you got it wet remove the battery immediately! Let the phone dry out thorougly for 4-5 days in a cool dry place in a bag of rice near an air conditioner if possible. Then try putting the battery back in and see if it works. Be patient! You can check for water damage by checking if the litmus paper on the battery and in the battery compartment (several) have turned pink.
    Kijana
    Please remember to:
    1. Mark Accept as Solution on the appropriate post once your issue has been resolved
    2. Give Kudos to helpful posts (click the star next to the post)
    Thanks

  • PLEASE HELP!! with this java problem...

    Ok so I have this assignment regarding Loan calculations: Compute the Monthly Payments given> the APR, #of payments, and amount borrowed. The formula for this is...P= Cr(1+r)^N / (1+r)^N -1 Where P is aount payable each month, r is APR which needs to be converted into months by /12, N is number of payments, and C is total amount owed. I got this:
    import java.lang.Math;
    import java.util.Scanner;
    public class ComputeSomething
    public static void main (String s[])
    //obtain input from the user
    //validate input
    //proceed if input is valid
    //process input
    //repeat the above four steps until "quit"
    Scanner input = new Scanner (System.in);
    double payable_amount; // P
    double amount_owed; //C
    int number_of_payments; //N
    double rate; //r
    double numerator, denominator;
    System.out.print("Enter the value of amount borrowed/owed: ");
    amount_owed = input.nextDouble ();
    System.out.println ();
    System.out.print ("Enter the value of number of payments: ");
    number_of_payments = input.nextInt ();
    System.out.println ();
    System.out.print ("Enter the value of rate as a percentage, e.g., 10 for 10%: ");
    rate = input.nextDouble ();
    System.out.println ();
    rate = rate/(100*12) ;
    numerator = amount_owed * rate * Math.pow ((1+rate),number_of_payments);
    denominator = Math.pow ((1+rate),number_of_payments) - 1;
    payable_amount = numerator/denominator;
    System.out.println("The amount payable per month = " + payable_amount);
    // // implement the second formula
    // numerator = Math.log (payable_amount/amount_owed) - Math.log ((payable_amount/amount_owed) - rate);
    // denominator = Math.log (1+rate);
    // number_of_payments = (int)Math.round (numerator/denominator);
    NOW I have to change it around for the second formula and this is where I am lost cause it has logarithms....This formula goes like this N= ln P/C - ln (P/C-r) / ln(1+r) Where N is the number of monthly payments, C is the sum of actual amount borrowed which is given and r is APR, and P is the monthly payment and ln is the natural logarithm. SO in this formula I have to calculate the NUMBER of payments given the other input.... This project is just a simple command line format so the user just types in the inputs. ALSO there needs to be a command to end the session and the program needs to handle incorrect input too!!
    **I dont know how to do the second formula PLEASE HELP ME.....the formulas in picture format are located at http://www.efunda.com/formulae/finance/loan_calculator.cfm**

    Oh man sorry..what I mean to say is that yes it is a command line type program (no menus) and its going to be in the following format: you type 1 for calculating monthly payments, type 2 for #of payments, and then type 0 to quit. When you type 1 or 2 then the correct formula for each option will then be utilized by asking the input for the fields kinda like this program for a simple fahrenheit to celsius conversion:
    import java.util.Scanner;
    public class TempConverter
    // solution to inclass assignment
    public static void main (String s[])
    double temp_in_celsius;
    double temp_in_fahrenheit;
    Scanner input = new Scanner (System.in); // create a connection 'object' to read data from the k/b
    // create the menu that is displayed to the user
    System.out.println ("Choose 1 to convert temp. from C to F, 2 to convert temp. from F to C and any other value to quit");
    int choice = 0;
    if (input.hasNextInt ())
    System.out.println ("correct data type");
    choice = input.nextInt ();
    else
    System.out.println ("incorrect data entered -- program terminated!");
    System.exit (0);
    // while choice is either one or two, continue; quit otherwise.
    while(choice == 1 || choice == 2)
    if (choice == 1)
    //code for converting temp from C to F
    System.out.println ("Enter the value of temp. in the C scale: " );
    if (input.hasNextDouble ())
    temp_in_celsius = input.nextDouble ();
    temp_in_fahrenheit = ( (9/5.0) * temp_in_celsius ) + 32;
    System.out.println ( temp_in_celsius + " in degrees C is " + temp_in_fahrenheit + " in degrees F");
    else
    System.out.println ("incorrect data entered -- program terminated!");
    System.exit (0);
    else if (choice == 2)
    //code for converting temp from F to C
    System.out.println ("Enter the value of temp. in the F scale: " );
    if (input.hasNextDouble ())
    temp_in_fahrenheit = input.nextDouble ();
    temp_in_celsius = (5/9.0) * (temp_in_fahrenheit-32); //convert the temp to the C scale
    System.out.println (temp_in_fahrenheit + " in degrees F is " temp_in_celsius " in degrees C");
    else
    System.out.println ("incorrect data entered -- program terminated!");
    System.exit (0);
    else
    System.out.println ("Quitting");
    System.out.println ("Choose 1 to convert temp. from C to F, 2 to convert temp. from F to C and any other value to quit");
    if (input.hasNextInt ())
    System.out.println ("correct data type");
    choice = input.nextInt ();
    else
    System.out.println ("incorrect data entered -- program terminated!");
    System.exit (0);
    }

  • Please help ... new to JAVA

    Hi All,
    I know this is stupid question. But I need help in learning Java. I have keen to learn this language. But I dont know how to approach this situation. You guys are expert please tell me which books will help me out and what is the best way to learn this langauge. I always get confused about so many pacakages in java.. Please help me.
    Thanx

    u need to study java books like thinking in java, java completer reference and Orelly books for java. They give more knowledge about java basics and then u can learn urself to the new technologies of java

  • Need help for generating textboxes in java script

    hii,
    yes,we are discussing about text boxes that are dynamically generated.the cursor should go from one textbox to another by pressing enter key.(suppose we are having three rows and three columns,
    and each column textboxes are having the same name,then the cursor should move from one textbox of first column first row to second row first column textbox ..& like that.That means the cursor should move downwards.
    if any one knows the code,please help me.

    hiii,
    To move cursor from one textbox to another text box ,I have take the length of the textboxes of the first column.I used onkeyDown event .
    in the function ,firest i checked the condition like
    for(i=0;i<form1.box.length;i++) //box is the name of the textboxes
    if(event.keyCode==13)
    form1.box[i+1].focus();
    return false;
    by using this the cursor is moving from first text box to secon textbox and stops.
    if i use event.returnValue=false; instead of return false ,then the cursor automatically going to the laxt textbox of the column.
    my problem is how i can focus the cursor from one textbox to another textbox one after the other till the end.
    if any one has solution please help me.
    thanx.

  • Please help with next/previous buttons.

    Hello all, I'm very new at this but I'm hoping you can help.
    I'm not a programmer but I've set up a site for my cartoons.
    Basically I have this Java double combo box set up for the archive section. From the first combo box, the user can select a range of strips to be viewed 1-30, 30-60 etc. From the, then propogated second list, the user can select a specific strip.
    This works fine.
    I've now written some code (untested) on the end of this, that calculates the 'next' strip and the 'previous' strip.
    My problem is, I don't know how to insert buttons to make said functions work!
    I'd like the user to be able to press either button and be zipped to the strip of their choice.
    If the combo's could be updated to show the choice, that would be cool too. Please have a look over at:
    http://theamoeba.ontheweb.com
    and select the 'Archive' item in the menu at the top of the screen to see what I mean.
    Many thanks in advance for anyone kind enough to help.
    The code is as follows.......
    <form name="doublecombo">
    <p><select name="example" size="1" onChange="redirect(this.options.selectedIndex)">
    <option>Strips 1-30</option>
    <option>Strips 31-60</option>
    <option>Strips 61-90</option>
    <option>Strips 91-120</option>
    </select>
    <select name="stage2" size="1">
    <option value="AmoebaStrips/Strip0000.gif">Strip 1</option>
    <option value="AmoebaStrips/Strip0001.gif">Strip 2</option>
    <option value="AmoebaStrips/Strip0002.gif">Strip 3</option>
    (etc......)
    </select>
    <input type="button" name="test" value="Go!"
    onClick="go()">
    </p>
    <script>
    var groups=document.doublecombo.example.options.length
    var group=new Array(groups)
    for (i=0; i<groups; i++)
    group=new Array()
    group[0][0]=new Option("Strip 1","AmoebaStrips/Strip0000.gif")
    group[0][1]=new Option("Strip 2","AmoebaStrips/Strip0001.gif")
    (etc.....)
    group[1][0]=new Option("Strip 31","AmoebaStrips/Strip0030.gif")
    group[1][1]=new Option("Strip 32","AmoebaStrips/Strip0031.gif")
    (etc....)
    group[2][0]=new Option("Strip 61","AmoebaStrips/Strip0059.gif")
    group[2][1]=new Option("Strip 62","AmoebaStrips/Strip0060.gif")
    (etc...)
    group[3][0]=new Option("Strip 91","AmoebaStrips/Strip0089.gif")
    group[3][1]=new Option("Strip 92","AmoebaStrips/Strip0090.gif")
    (etc...)
    var temp=document.doublecombo.stage2
    function redirect(x){
    for (m=temp.options.length-1;m>0;m--)
    temp.options[m]=null
    for (i=0;i<group[x].length;i++){
    temp.options[i]=new Option(group[x][i].text,group[x][i].value)
    temp.options[0].selected=true
    function go(){
    top.frames["mainFrame"].location=temp.options[temp.selectedIndex].value
    function getCurrentComicNum(selectEl) {
    var selected = selectEl.options[selectEl.selectedIndex].text;
    var currentNum = selected.substr(selected.indexOf("/"),selected.indexOf("."));
    return parseInt(selected.replace(/^0-9/gi,""));
    var baseURL = "AmoebaStrips/Strip";
    var fileType = ".gif";
    function nextComic(selectEl) {
    var thisComic = getCurrentComicNum(selectEl);
    thisComic++;
    thisComic.toString();
    while (thisComic.length<3) { thisComic = "0"+thisComic; }
    top.frames["mainFrame"].location = baseURL + thisComic + fileType;
    function prevComic(selectEl) {
    var thisComic = getCurrentComicNum(selectEl);
    thisComic--;
    thisComic.toString();
    while (thisComic.length<3) { thisComic = "0"+thisComic; }
    top.frames["mainFrame"].location = baseURL + thisComic + fileType;
    //-->
    </script>
    I apologise for the length of this mail but hopefully, you'll solve my problem.
    Cheers again.
    Paul (NooBee)

    Hello NooBee. Just to let you know this is a Java forum. This is not a JavaScript forum. The code you posted is JavaScript, not Java. I suggest you go to google and perform a search on JavaScript forums. You will probably find a good forum to post on.

  • Please help.. error playing mp3 files in Sony Erricsson SDK 2.2.4

    i installed Sony Ericsson SDK 2.2.4 and also installed the software requirements like:
    SPOT xde Player,
    the script: WindowsXP-Windows2000-Script56-KB917344-x86-enu.exe,
    and directx 9.0
    i have jdk version 1.5.0
    but when i try to run the application named "mmademo", and select the Midlet named "Simle Player", and then select "SEMC mp3 test", it throws this exception "mediaexception: start ".
    if it is important the directory of this application is this: C:\SonyEricsson\JavaME_SDK_CLDC\PC_Emulation\WTK2\apps\mmademo
    by the way normally the emulator of Sony Ericsson K750 supports mp3 playing on mmapi..
    it works fine when i select some other applications like "Simple Ring Tone" playing..
    And when i quit the emulator, console screen displays this(even if i run the applications that work correctly):
    Execution completed.
    0 bytecodes executed
    0 thread switches
    801 classes in the system (including system classes)
    0 dynamic objects allocated (0 bytes)
    0 garbage collections (0 bytes collected)
    please give some idea.. its too important to me

    it is the example code of the Sony Ericsson SDK, i did not write it, plus it works on my desktop computer but i need it to work on my notebook.. it gives the that result(which i explained above) on my notebook computer.. and i cant understand why would a SDK malfunctions (at playing mp3) on my notbook, and runs ok on my desktop, though my desktop is too much older and slower..
    can that have something to do with my language properties? because in order to use netbeans i switched the language to english(usa), which was not the original language of my operating system.. i installed the Sony Ericsson SDK after switching to english(usa).
    thanx..

  • Wrt610N please help ps3 remote play and also nothing sees the 5ghz band

    I have finaly hooked everything up last night. I have everyything on mac filter and static IP address. Questions is though I would like to have my laptop  D-link extreme N adapter and my ps3 on the 5ghz band. Can I do this... cause Im looking in the settings and it says  Mixed,, N only, A only.... I thought it could do G also.... PLease explain there...I cant even get my laptop adapt to see the 5ghz band! Weird....  Also Im trying to get my ps3 on the best connection possible.. I would like to also have remote play through the net. Heres my problem... I enable it on the ps3 turn off the system.....and about 1 or 2 minutes  it turns on by itself... IT does this quiete frequently... Again I have a wrt610N dual band wireless router. I thought I read somewhere if you change the broadcast channel it will help with the remote play..so I placed it on channel 11 and also placed the ps3 in the dmz... I am away from my home so I will try more out later...I woudl like to take the ps3 out of dmz if possible... I have unup enabled.  THanks!!

    Beside doing DMZ for your PS3, you better Open the Ports for your PS3 on your Linksys Router. TCP Ports: 10070 - 10080, UDP Ports: 50000 ,UDP Ports: 6000-7000, 10070. This will solve your Problem.

Maybe you are looking for

  • Web Service response not working...

    Hi, does anyone see anything wrong with this code? It executes the web service fine but the returned response it is not showing up in the text area... TIA <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxm

  • IPhone 4s not showing up in iPhoto 11

    Recently my daughters MB died.  So I tried to backup her iPhone photos to my Mac Mini Server iPhoto 11.  It showed up in iPhoto and wouldn't let me download the images.  So I tried using image capture.  The phone showed up but it still didn't work. 

  • Is there an upgrade option from FCP 7 Suite?

    Is there an upgrade price for FCP X, Motion and Compressor?  I just spent almost $1000 on the Suite a couple months ago.

  • Syncing my phone then quit now itunes wont open

    I was trying to sync my phone then i tried to quit now my itunes app will not open -macbook pro

  • Installing Oracle Agent through Grid Control!

    Hi, Can we install oracle agent on Solaris through Grid control which is located on Linux? Thanks Azam