Need help with a simple basketball game.

Hi im new here and I need help with making this simple basketball game.
Im trying to recreate this game from this video. Im not sure if he is using as2 or as3
Or if anyone could help me make a game like this or direct me to a link on how to do it It would be greatly appreciated.

If you couldn't tell whether it is AS2 or AS3, it is doubtful you can turn it from AS2 into AS3, at least not until you learn both languages.  There is no tool made that does it for you.

Similar Messages

  • Need help with a simple process with FTP Adapter and File Adapter

    I am trying out a simple BPEL process that gets a file in opaque mode from a FTP server using a FTP adapter and writes it to the local file system using a File Adapter. However, the file written is always empty (zero bytes). I then tried out the FTPDebatching sample using the same FTP server JNDI name and this work fine surprisingly. I also verified by looking at the FTP server logs that my process actually does hit the FTP server and seems to list the files based on the filtering condition - but it does not issue any GET or RETR commands to actually get the files. I am suspecting that the problem could be in the Receive, Assign or Invoke activities, but I am not able identify what it is.
    I can provide additional info such as the contents of my bpel and wsdl files if needed.
    Would appreciate if someone can help me with this at the earliest.
    Thanks
    Jay

    persiandude wrote:
    Topic: Need help with if, else, and which statements and loops.
    How would I display 60 < temp. <= 85 in java
    System.out.println("60 < temp. <= 85 in java");
    another question is how do I ask a question like want to try again (y/n) after a output and asking that everytime I type in yes after a output and terminate when saying No.Sun's [basic Java tutorial|http://java.sun.com/docs/books/tutorial/]
    Sun's [New To Java Center|http://java.sun.com/learning/new2java/index.html].Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    [http://javaalmanac.com|http://javaalmanac.com]. A couple dozen code examples that supplement [The Java Developers Almanac|http://www.amazon.com/exec/obidos/tg/detail/-/0201752808?v=glance].
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's [Thinking in Java|http://mindview.net/Books/DownloadSites] (Available online.)
    Joshua Bloch's [Effective Java|http://www.amazon.com/Effective-Java-2nd-Joshua-Bloch/dp/0321356683/ref=pd_bbs_1?ie=UTF8&s=books&qid=1214349768&sr=8-1]
    Bert Bates and Kathy Sierra's [Head First Java|http://www.amazon.com/exec/obidos/tg/detail/-/0596004656?v=glance].
    James Gosling's [The Java Programming Language|http://www.bookpool.com/sm/0321349806].

  • Need help with a simple program (should be simple anyway)

    I'm (starting to begin) writing a nice simple program that should be easy however I'm stuck on how to make the "New" button in the file menu clear all the fields. Any help? I'll attach the code below.
    ====================================================
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Message extends JFrame implements ActionListener {
         public void actionPerformed(ActionEvent evt) {
         text1.setText(" ");
         text2.setText("RE: ");
         text3.setText(" ");
         public Message() {
         super("Write a Message - by Kieran Hannigan");
         setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         setSize(370,270);
         FlowLayout flo = new FlowLayout(FlowLayout.RIGHT);
         setLayout(flo);
         //Make the bar
         JMenuBar bar = new JMenuBar();
         //Make "File" on Menu
         JMenu File = new JMenu("File");
         JMenuItem f1 = new JMenuItem("New");f1.addActionListener(this);
         JMenuItem f2 = new JMenuItem("Open");
         JMenuItem f3 = new JMenuItem("Save");
         JMenuItem f4 = new JMenuItem("Save As");
         JMenuItem f5 = new JMenuItem("Exit");
         File.add(f1);
         File.add(f2);
         File.add(f3);
         File.add(f4);
         File.add(f5);
         bar.add(File);
         //Make "Edit" on menu
         JMenu Edit = new JMenu("Edit");
         JMenuItem e1 = new JMenuItem("Cut");
         JMenuItem e2 = new JMenuItem("Paste");
         JMenuItem e3 = new JMenuItem("Copy");
         JMenuItem e4 = new JMenuItem("Repeat");
         JMenuItem e5 = new JMenuItem("Undo");
         Edit.add(e5);
         Edit.add(e4);
         Edit.add(e1);
         Edit.add(e3);
         Edit.add(e2);
         bar.add(Edit);
         //Make "View" on menu
         JMenu View = new JMenu("View");
         JMenuItem v1 = new JMenuItem("Bold");
         JMenuItem v2 = new JMenuItem("Italic");
         JMenuItem v3 = new JMenuItem("Normal");
         JMenuItem v4 = new JMenuItem("Bold-Italic");
         View.add(v1);
         View.add(v2);
         View.add(v3);
         View.addSeparator();
         View.add(v4);
         bar.add(View);
         //Make "Help" on menu
         JMenu Help = new JMenu("Help");
         JMenuItem h1 = new JMenuItem("Help Online");
         JMenuItem h2 = new JMenuItem("E-mail Programmer");
         Help.add(h1);
         Help.add(h2);
         bar.add(Help);
         setJMenuBar(bar);
         //Make Contents of window.
         //Make "Subject" text field
         JPanel row2 = new JPanel();
         JLabel sublabel = new JLabel("Subject:");
         row2.add(sublabel);
         JTextField text2 = new JTextField("RE:",24);
         row2.add(text2);
         //Make "To" text field
         JPanel row1 = new JPanel();
         JLabel tolabel = new JLabel("To:");
         row1.add(tolabel);
         JTextField text1 = new JTextField(24);
         row1.add(text1);
         //Make "Message" text area
         JPanel row3 = new JPanel();
         JLabel Meslabel = new JLabel("Message:");
         row3.add(Meslabel);
         JTextArea text3 = new JTextArea(6,22);
         messagearea.setLineWrap(true);
         messagearea.setWrapStyleWord(true);
         JScrollPane scroll = new JScrollPane(text3,
                                  JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
                                  JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
         //SpaceLine
         JPanel spaceline = new JPanel();
         JLabel spacer = new JLabel(" ");
         spaceline.add(spacer);
         row3.add(scroll);
         add(row1);
         add(row2);
         add(spaceline);
         add(spaceline);
         add(row3);
         setVisible(true);
         public static void main(String[] arguments) {
         Message Message = new Message();
    }

    persiandude wrote:
    Topic: Need help with if, else, and which statements and loops.
    How would I display 60 < temp. <= 85 in java
    System.out.println("60 < temp. <= 85 in java");
    another question is how do I ask a question like want to try again (y/n) after a output and asking that everytime I type in yes after a output and terminate when saying No.Sun's [basic Java tutorial|http://java.sun.com/docs/books/tutorial/]
    Sun's [New To Java Center|http://java.sun.com/learning/new2java/index.html].Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    [http://javaalmanac.com|http://javaalmanac.com]. A couple dozen code examples that supplement [The Java Developers Almanac|http://www.amazon.com/exec/obidos/tg/detail/-/0201752808?v=glance].
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's [Thinking in Java|http://mindview.net/Books/DownloadSites] (Available online.)
    Joshua Bloch's [Effective Java|http://www.amazon.com/Effective-Java-2nd-Joshua-Bloch/dp/0321356683/ref=pd_bbs_1?ie=UTF8&s=books&qid=1214349768&sr=8-1]
    Bert Bates and Kathy Sierra's [Head First Java|http://www.amazon.com/exec/obidos/tg/detail/-/0596004656?v=glance].
    James Gosling's [The Java Programming Language|http://www.bookpool.com/sm/0321349806].

  • Im DROWNING! need help with a simple java assignment! plz someone help me!

    i need help with my java assignment, with validating a sin number. easy for must who know java. im drowning... please help!

    You will need to store each digit of the social insurance number in a field of its own. To validate the entry you will:
    1. Multiply the 2nd, 4th, 6th and 8th digit by 2.
    2. If the product of any of the four multiplications result in a value greater than 9, add the two resulting digits together to yield a single-digit response. For example 6 * 2 = 12, so you would add the 1 and the 2 to get a result of 3.
    3. Add these four calculated values together, along with the 1st, 3rd, 5th, and 7th digits of the original number.
    4. Subtract this sum from the next highest multiple of 10.
    5. The difference should be equal to the 9th digit, which is considered the check digit.
    Example of validating S.I.N. 765932546
    1st digit 7
    2nd digit (6*2 =12 1+2=) 3
    3rd digit 5
    4th digit (9*2 = 18 1+8 =) 9
    5th digit 3
    6th digit (2*2 = 4) 4
    7th digit 5
    8th digit (4*2 = 8) 8
    Total 44 next multiple of 10 is 50
    50-44 = 6 which is the 9th digit
    Therefore the S.I.N. 765932546 is Valid
    ********* SIN Validation *********
    Welcome - Please enter the first number: 120406780
    Second digit value multiplied by 2 4
    Fourth digit value multiplied by 2 8
    Sixth digit value multiplied by 2 12
    Eighth digit value multiplied by 2 16
    Value derived from 6th digit 3
    Value derived from 8th digit 7
    The total is 30
    Calculated digit is 10
    Check digit must be zero because calculated value is 10
    The SIN 120406780 is Valid
    this is my assignemtn this is what i have! i dont know where to start! please help me!
    /*     File:     sinnumber.java
         Author:     Ashley
         Date:     October 2006
         Purpose: Lab1
    import java.util.Scanner;
    public class Lab1
              public static void main(String[] args)
                   Scanner input = new Scanner(System.in);
                   int sin = 0;
                   int number0, number1, number2, number3, number4, number5, number6, number7, number8;
                   int count = 0;
                   int second, fourth, sixth, eighth;
                   System.out.print("\t\n**********************************");
                   System.out.print("\t\n**********SIN Validation**********");
                   System.out.print("\t\n**********************************");
                   System.out.println("\t\nPlease enter the First sin number: ");
                   sin = input.nextInt();
                   count = int.length(sin);     
                   if (count > 8 || count < 8)
                   System.out.print("Valid: ");
         }

  • Need help with a simple Rename/Join Domain/Install SCCM Client Task Sequence

    Good morning everyone,
    I need to create a very simple task sequence that will run an .exe that we have created that renames the computer based on a prefix-serialnumber...then restarts, adds it to our domain, restarts, and then installs the SCCM client.
    1) run rename program 
    2) join to domain
    3) install sccm client
    Can someone help me with the steps that will be required for this?
    Thank you very much!
    **note, these will not be formatted/have an OS installation ran on it with this task sequence.  The situation is that we are receiving 400+ custom configured laptops, and we're going to have to rename/join/install sccm on each...trying to simplify
    this
    any recommendations are greatly appreciated!

    Narcoticoo : Which boot image am i supposed to be using to insure that it boots into Standard Windows, NOT WinPE?  I have a standard x86 package / boot image i've been using.  If it boots up with this, it goes into WinPE (correct me if I'm wrong,
    for this seems to be what happens each time it boots off the boot image...it does not go into windows standard/full)
    When I go into properties of the one i'm using, and take the check off of "Use a boot image", where it will not boot to WinPE, it will not even show up in my list of available task sequences for
    1) when I PXE boot to try the task sequence, or
    2) when I try to make stand-alone media for this task sequence as you have suggested
    When I run the standalone media, the only log files I find are the following with errors:
    PackageID = 'MPS0014E' InstallSoftware
    12/8/2014 12:28:36 PM 2344 (0x0928)
    BaseVar = '', ContinueOnError='' InstallSoftware
    12/8/2014 12:28:36 PM 2344 (0x0928)
    ProgramName = 'MPHS - Rename Computer' InstallSoftware
    12/8/2014 12:28:36 PM 2344 (0x0928)
    SwdAction = '0002' InstallSoftware
    12/8/2014 12:28:36 PM 2344 (0x0928)
    IsSMSV4PlusClient() == true, HRESULT=80004005 (e:\nts_sccm_release\sms\client\osdeployment\installsoftware\main.cpp,332)
    InstallSoftware 12/8/2014 12:28:36 PM
    2344 (0x0928)
    Configuration Manager client is not installed
    InstallSoftware 12/8/2014 12:28:36 PM
    2344 (0x0928)
    Process completed with exit code 2147500037
    TSManager 12/8/2014 12:28:36 PM
    1544 (0x0608)
    TSManager 12/8/2014 12:28:36 PM
    1544 (0x0608)
    Failed to run the action: Install Package. 
    Unspecified error (Error: 80004005; Source: Windows)
    TSManager 12/8/2014 12:28:36 PM
    1544 (0x0608)
    Failed to run the action: Install Package. Execution has been aborted
    TSManager 12/8/2014 12:28:36 PM
    1544 (0x0608)
    Do not send status message in full media case
    TSManager 12/8/2014 12:28:36 PM
    1544 (0x0608)
    Failed to run the last action: Install Package. Execution of task sequence failed.
    Unspecified error (Error: 80004005; Source: Windows)
    TSManager 12/8/2014 12:28:36 PM
    1544 (0x0608)
    Do not send status message in full media case
    TSManager 12/8/2014 12:28:36 PM
    1544 (0x0608)
    Execution::enExecutionFail != m_eExecutionResult, HRESULT=80004005 (e:\nts_sccm_release\sms\client\tasksequence\tsmanager\tsmanager.cpp,866)
    TSManager 12/8/2014 12:43:48 PM
    1544 (0x0608)
    Task Sequence Engine failed! Code: enExecutionFail
    TSManager 12/8/2014 12:43:48 PM
    1544 (0x0608)
    TSManager 12/8/2014 12:43:48 PM
    1544 (0x0608)
    Task sequence execution failed with error code 80004005
    TSManager 12/8/2014 12:43:48 PM
    1544 (0x0608)

  • I need help with some simple code! Please read!

    hi everyone.
    I'm having problems with a piece of code, and i'd be extremely greatful if somebody could give me a hand with it. I'm totally new to java and have to make a program for my university degree, but i'm finding it extremely difficult, mainly due to my total lack of apptitude for this type of thing. I know this is easy stuff, but the books I have are no use so any help would be greatly appreciated.
    I have to write a program which uses two class files. I want one with the code to produce a simple button, and one to invoke it several times at different locations. I decided to write the program as one class file at first, and thought i'd be able to split it up at later. The program works fine when it is one class file. My book said that to split the two classes up, all i needed to do was change the second class to public, although this seems to not work at all. I'm at my wits end on this, and if anyone could correct my code I'd be eternally greatful.
    Here is the first class... (sorry about the lack of indentation)
    >>>>>>>>>>
    import java.awt.*;
    import java.applet.Applet;
    public class Phone extends Applet {
    private Image image;
    public void init() {
    setLayout(null);
    image = getImage(getDocumentBase(), "phone.jpg");}
    public void paint (Graphics g) {
    g.drawImage(image, 0, 0, 700, 530, this);
    PhoneButton myButton;
    myButton = new PhoneButton(20,20);
    >>>>>>>
    This is the second class....
    >>>>>>>
    public class PhoneButton {
    private Button butt;
    public PhoneButton(int a, int b, int c){
    setLayout(null);
    butt = new Button();
    butt.setBounds(a,b,20,20);
    add(butt);
    >>>>>>>>
    My compiler generates errors relating to Button, but i can't do anything to please it.
    Also, could anyone give me some pointers on how to add a different number or symbol to each button. That is what I added int c for, but i couldn't get it to work.
    Cheers in advance.
    Michael Morgan

    I found that there are 5 error in your code.
    1. You should import the "java.awt" package to the PhoneButton.java
    2. The PhoneButton is not a kind of Component. You cannot not add it to the Phone class
    3. the myButton = new PhoneButton(20, 20) does not provide enough parameters to create PhoneButton
    4. You cannot add a Button to a PhoneButton. Becaue the PhoneButton is not a kind of Container
    Fixed code:
    import java.awt.*;
    public class PhoneButton extends Button {
    public PhoneButton(int a, int b, int c){
         setBounds(a, b, 20, 20);
         setLabel(String.valueOf(c));
    ===========================================
    import java.awt.*;
    import java.applet.Applet;
    public class Phone extends Applet {
    private Image image;
    public void init() {
    setLayout(null);
    image = getImage(getDocumentBase(), "phone.jpg");}
    public void paint (Graphics g) {
    g.drawImage(image, 0, 0, 700, 530, this);
    PhoneButton myButton;
    myButton = new PhoneButton(20,20, 1);
    ======================
    Visual Paradigm for UML - Full Features UML CASE tool
    http://www.visual-paradigm.com/

  • Need Help with Java Space Invaders Game!

    Hi, im new to these forums so forgive if i dont follow the right way on laying things out. Im trying to create space invaders game but im stuck when im trying to create multiple aliens/ invaders. I have a class called Aliens (which is the invaders), and i can create an instance of an Alien. But when I try to create multiple instances they are not showing up on screen. I am not getting any error message though (which im hoping is a good sign, lol).
    GamePanel is where all the action is and Alien is the alien (invaders) class.
    Here is the code:
    import java.awt.; import javax.swing.; import java.awt.Image; import java.awt.event.KeyListener; import java.awt.event.KeyEvent;
    public class GamePanel extends JComponent implements KeyListener { SpaceInvaders game; static Player player1; Aliens alien1; static public Image spaceship2R; static public Image spaceship2L;
    public GamePanel(SpaceInvaders game)
         this.game = game;
         player1 = new Player(this);
         player1.start();
                   ///// trying to create multiple instances of aliens here
         for(int i=0; i<4; i++)
              alien1 = new Aliens(this);
              alien1.setX(i*100);
              alien1.start();
        this.setFocusable(true);
        this.addKeyListener(this);
    public void paintComponent(Graphics g)
         Image pic1 = player1.getImage();
         Image pic2 = alien1.getImage();
         super.paintComponent(g);
         g.drawImage(pic1, player1.getX(), player1.getY(), 50, 50,this);
         g.drawImage(pic2, alien1.getX(), alien1.getY(), 50, 50,this);
    }//end class
    import java.awt.Image; import java.awt.*;
    class Aliens extends Thread { //variables GamePanel parent; private boolean isRunning; private int xPos = 0, yPos = 0; Thread thread; static char direction = 'r'; Aliens alien; static public Image alien1; static public Image alien2;
    public Aliens(GamePanel parent)
         this.parent = parent;
         isRunning = true;
    public void run()
         while(isRunning)
              Toolkit kit = Toolkit.getDefaultToolkit();
              alien1 = kit.getImage("alien1.gif");
              alien2 = kit.getImage("alien2.gif");
              try
                      thread.sleep(100);
                 catch(InterruptedException e)
                      System.err.println(e);
                 updateAliens();
                 parent.repaint();
    public static Image getImage()
         Image alienImage = alien1;
        switch(direction){
             case('l'):
                  alienImage = alien1;
                  break;
             case('r'):
                  alienImage = alien1;
                  break;
        return alienImage;     
    public void updateAliens()
         if(direction=='r')
              xPos+=20;
              if(xPos >= SpaceInvaders.WIDTH-50||xPos < 0)
                   yPos+=50;
                   xPos-=20;
                   direction='l';
         else
              xPos-=20;
              if(xPos >= SpaceInvaders.WIDTH-50||xPos < 0)
                   yPos+=50;
                   xPos+=20;
                   direction='r';
    public void setDirection(char c){ direction = c; }
    public void setX(int x){ xPos = x; }
    public void setY(int y){ yPos = y; }
    public int getX(){ return xPos; }
    public int getY(){ return yPos; }
    }//end classEdited by: deathwings on Oct 19, 2009 9:47 AM
    Edited by: deathwings on Oct 19, 2009 9:53 AM

    Maybe the array I have created is not being used in the paint method, or Im working with 2 different objects as you put it? Sorry, Im just learning and I appreciate your time and help. Here is my GamePanel Class and my Aliens class:
    import java.awt.*;
    import javax.swing.*;
    import java.awt.Image;
    import java.awt.event.KeyListener;
    import java.awt.event.KeyEvent;
    import java.awt.image.BufferStrategy;
    public class GamePanel extends JComponent implements KeyListener
         SpaceInvaders game;
         static Player player1;
         static Bullets bullet;
         //static public Image spaceship2R;
         //static public Image spaceship2L;
         private BufferStrategy strategy;
         static int alienNum =0;
         static Aliens[] aliens;
         public GamePanel(SpaceInvaders game)
              this.game = game;
              player1 = new Player(this);
              player1.start();
              Aliens[] aliens = new Aliens[10];
              for(int i=0; i<4; i++)
                   aliens[i] = new Aliens(this);
                   aliens.setX(i*100);
                   aliens[i].start();
                   alienNum++;
              initialiseGame();
              this.setFocusable(true);
    this.addKeyListener(this);
         public void paintComponent(Graphics g)
              Image pic1 = player1.getImage();
              Image pic2 = aliens[0].getImage();
              Image bulletPic = bullet.getImage();
              super.paintComponent(g);
              g.drawImage(pic1, player1.getX(), player1.getY(), 50, 50,this);
              for ( int i = 0; i < alienNum; i++ )
                   g.drawImage(pic1, aliens[0].getX(), aliens[0].getY(), 50, 50,this);
              //if (bullet.fired==true){
              //     g.drawImage(bulletPic, bullet.getX(), bullet.getY(), 20, 20,this);
         public void keyPressed(KeyEvent k)
              switch (k.getKeyCode()) {
              case (KeyEvent.VK_KP_DOWN):
              case (KeyEvent.VK_DOWN):
                   player1.setDirection('d');
                   break;
              case (KeyEvent.VK_KP_UP):
              case (KeyEvent.VK_UP):
                   player1.setDirection('u');
              break;
              case (KeyEvent.VK_KP_RIGHT):
              case (KeyEvent.VK_RIGHT):
                   player1.setDirection('r');
              break;
              case (KeyEvent.VK_KP_LEFT):
              case (KeyEvent.VK_LEFT):
                   player1.setDirection('l');
              break;
              case (KeyEvent.VK_SPACE):
                   fireBullet();
              break;
         public void keyTyped(KeyEvent k) {}//empty
         public void keyReleased(KeyEvent k)
              player1.setDirection('n');
         public void initialiseGame()
         public static void checkCollision()
              Rectangle playerRec = new Rectangle(player1.getBoundingBox());
              for(int i=0; i<alienNum; i++)
                   //if(playerRec.intersects(aliens[i].getBoundingBox()))
                        //collisionDetected();
         public static void collisionDetected()
              System.out.println("COLLISION");
         public void fireBullet()
              Bullets bullet = new Bullets(player1.getX(),player1.getY());
              bullet.fired=true;
    }//end GamePanelimport java.awt.Image;
    import java.awt.*;
    class Aliens extends Thread
         //variables
         GamePanel parent;
         private boolean isRunning;
         private int xPos = 0, yPos = 0;
         Thread thread;
         static char direction = 'r';
         Aliens alien;
         static public Image alien1;
         static public Image alien2;
         public Aliens(GamePanel parent)
              this.parent = parent;
              isRunning = true;
         public void run()
              while(isRunning)
                   Toolkit kit = Toolkit.getDefaultToolkit();
                   alien1 = kit.getImage("alien1.gif");
                   //alien2 = kit.getImage("alien2.gif");
                   try
              thread.sleep(100);
         catch(InterruptedException e)
              System.err.println(e);
              updateAliens();
              parent.repaint();
         public static Image getImage()
              Image alienImage = alien1;
         switch(direction){
              case('l'):
                   alienImage = alien1;
                   break;
              case('r'):
                   alienImage = alien1;
                   break;
         return alienImage;     
         public void updateAliens()
              if(direction=='r')
                   xPos+=20;
                   if(xPos >= SpaceInvaders.WIDTH-50||xPos < 0)
                        yPos+=50;
                        xPos-=20;
                        direction='l';
              else
                   xPos-=20;
                   if(xPos >= SpaceInvaders.WIDTH-50||xPos < 0)
                        yPos+=50;
                        xPos+=20;
                        direction='r';
         public Rectangle getBoundingBox()
              return new Rectangle((int)xPos, (int)yPos, 50, 50);
         public void setDirection(char c){ direction = c; }
         public void setX(int x){ xPos = x; }
         public void setY(int y){ yPos = y; }
         public int getX(){ return xPos; }
         public int getY(){ return yPos; }
    }//end class                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • I need help with a simple task (PLEASE HELP)

    hi, you know how you can make a button and link it to a
    different site with the actionscript in this program? well I need
    to know of a way like...to make a button and...link it to the next
    frame. ok, heres what im trying to make happen...the user presses a
    button in the flash program thing and a comment apperars. then they
    press it another time and a new one come up...and so on...I could
    make like 50 different frames with new comments on them and then
    make the button on each frame link to the next frame. is there a
    way to do that? if there is I REALLY need your help. please
    thanks :)

    no need to modify anything - look at the first code:
    on (release) {
    nextFrame();
    that's all you need on the button.
    If you want it to happen on click and not release:
    on (press) {
    nextFrame();
    --> **Adobe Certified Expert**
    --> www.mudbubble.com
    --> www.keyframer.com
    mybluehair wrote:
    > thank you so much. this will really help me. and, is
    there any way I can modify
    > that script so that its when the mouse is click, and not
    the arrow keys?
    >
    >
    >
    >
    quote:
    Originally posted by:
    Newsgroup User
    > on (release) {
    > nextFrame();
    > }
    >
    > from the help docs (F1):
    >
    > nextFrame function
    > nextFrame() : Void
    >
    > Sends the playhead to the next frame.
    >
    > Availability: ActionScript 1.0; Flash Player 2
    >
    > Example
    > In the following example, when the user presses the
    Right or Down arrow key,
    > the playhead goes to
    > the next frame and stops. If the user presses the Left
    or Up arrow key, the
    > playhead goes to the
    > previous frame and stops. The listener is initialized to
    wait for the arrow
    > key to be pressed, and
    > the init variable is used to prevent the listener from
    being redefined if the
    > playhead returns to
    > Frame 1.
    >
    > stop();
    >
    > if (init == undefined) {
    > someListener = new Object();
    > someListener.onKeyDown = function() {
    > if (Key.isDown(Key.LEFT) || Key.isDown(Key.UP)) {
    > _level0.prevFrame();
    > } else if (Key.isDown(Key.RIGHT) ||
    Key.isDown(Key.DOWN)) {
    > _level0.nextFrame();
    > }
    > };
    > Key.addListener(someListener);
    > init = 1;
    > }
    >
    >
    >
    > ******************************************
    > --> **Adobe Certified Expert**
    > --> www.mudbubble.com
    > --> www.keyframer.com
    >
    >
    >
    >
    > mybluehair wrote:
    > > hi, you know how you can make a button and link it
    to a different site with
    > the
    > > actionscript in this program? well I need to know
    of a way like...to make a
    > > button and...link it to the next frame. ok, heres
    what im trying to make
    > > happen...the user presses a button in the flash
    program thing and a comment
    > > apperars. then they press it another time and a new
    one come up...and so
    > on...I
    > > could make like 50 different frames with new
    comments on them and then make
    > the
    > > button on each frame link to the next frame. is
    there a way to do that? if
    > > there is I REALLY need your help. please
    > >
    > > thanks :)
    > >
    >
    >
    >
    >

  • (Click and move to next scene).  Need help with a simple action, just need a little guidance.

    I am building a simple flash movie clip in Flash cs4. All I want to do is run the play head through a one 5 frame scene and stop, and then you press a button that will send the play head to the next 10 frame motion tween scene.
    When I run the movie all I get is a movie clip that pauses for a millisecond then loops back around.
    I have three different books on flash action script, read all three still not doing so hot. I am using the navigational button concept maybe that is what I am doing wrong. Can someone show me the right method or lead me in the right direction.
    farosgfx ( [email protected] )

    You can just place an invisible button on the top layer of
    the flash time line and code it to getURL. When you said "hyperlink
    to another page", are you referring to an html page or another swf
    file? To make an invisible button in Flash, you can hit Ctrl+F8 to
    bring up the dialog box to create a new symbol, name your button,
    make sure you select the type of button, hit ok, now you are inside
    the button and need to create a "hit" area. Click on the "hit"
    state and press F7 to create a blank key frame. Using the drawing
    tools, select the square, no stroke, and any fill color you want,
    draw a square shape, click on the shape and in your Info Panel,
    change the size of this shape to match the size of your stage,
    lastly, make sure the registration point is (0,0) by using the
    Align Panel. Go back to your main time line, add a layer on your
    time line and make sure it's at the top, drag your new button from
    the library to the stage and align it to (0,0).
    There are two ways to code the button, so to make it easier,
    click on the button once to select it, hit F9 to bring up the
    actions panel and type this
    on(release){
    getURL("
    http://www.someWebsite.com",
    "_blank");// you can also use "_self" //
    If some of this isn't new to you, disregard parts of it. If
    you have any buttons in your Flash application, this will cause
    problems because the invisible button will counter-act anything
    below it. Let me know if this works for you. Of course, this all
    assumes you have access to the flash file.

  • Need help with a simple problem with monitors

    I used a power g4 and I want to use two monitors for final cut. I have the apple monitor 4:3 and I got a new 22inch 16:9 monitor. I want to use them both for final cut. I want to use 4:3 for bins. When i hook them up the 4:3 has the time lines and canvas. How do i make the 16:9 the time line and the 4:3 flat screen the bins. I need to reverse how they are. Someone help please

    I will try that. I will kick myself in the *** if thats all i need to do

  • Need help with drag and drop game, Urgent!

    Hi I have created a drag and drop game, the drag and drop is
    working alright however once the right word has been placed in the
    box, and moves on to the next question the previous correct answer
    stays where it was placed, how can i get it to snap back to its
    original location? Also when the right word is draged in to the the
    white box i want it to snap into place in that box so it fits in
    there.
    Also if you have any other thoughts and advice on how i can
    improve on this please email me thanx
    Can someone please help, my .fla file can be found here:
    http://www.freshlemon.co.uk/timeline.fla
    http://www.freshlemon.co.uk/timeline.fla.zip
    thanx

    tellTarget is ancient
    I forget what it even used to do??? hahaha
    seriously, just put in the instance name and what you want it
    to do:
    tellTarget("movieclip"){
    play();
    is now just
    movieclip.play();

  • Need help with a "simple" problem :)

    Hello everyone!!
    I would be very glad if anyone could help me! I created a
    test with AW and it works very well. My problem is that in the
    ".txt" file that is created (appendextfile), the "firsttrycorrect"
    responses keep adding themselves among the exercices. How can I do
    to set the count to zero, so that each exercise has is own number
    of correct responses? Do I have to restart the file everytime??!
    Thx in advance...

    Just to be clear: You are using the FirstTryCorrect variable,
    and you want
    the FirstTryCorrect variable to reset when you go to the next
    exercise? Try
    Initialize(FirstTryCorrect) at the beginning of the next
    exercise.
    HTH;
    Amy
    "oukaischunomai" <[email protected]> wrote
    in message
    news:fmo42t$s7o$[email protected]..
    > Thx to have read me :) I'll try to be clear, but I'm
    sorry I don't know AW
    > 7
    > very well and my english is not that good...! So I'm
    creating a program:
    > first
    > of all, the person has to enter her/his name
    ("username") and a .txt file
    > is
    > being created at her/his name. Then the person has to
    click on a button
    > to
    > choose what she/he wants to study (she/he has the choice
    between 3
    > exercices:
    > active/passive/relative sentences). In all exercises,
    the person has to
    > read a
    > written sentence, then choose the image corresponding to
    the sentence
    > between 4
    > choices and finally click on it (I created an
    interaction and 3 responses
    > have
    > the "wrong" status and only 1 has the "correct" status).
    Then it goes to
    > the
    > next sentence. At the end of each exercise
    (active/passive/relative), the
    > results are written in the .txt file previously created
    (I simply put:
    > AppendExtFile (Username^".txt"; FirstTryCorrect) ), so I
    can have a
    > feedback
    > about the performances of the person... I hope it's
    clear enough for the
    > moment? :) My problem is: when the person begins the 2nd
    exercise
    > (passive),
    > the correct responses are keeping adding themselves to
    them of the 1st
    > exercise
    > (active). So my question is, how can I do, so that the
    "correct response
    > counter" is back to 0 at the beginning of each new
    exercise??
    >

  • Need help with a simple application

    hi guys, i am doing a school project. i used studio enterprise 8 to create a j2ee application, using mysql as the database. i believe i have installed all the encessary and the classpaths are right.
    i coded, build and run the application, but it isnt working...to be sure the database is working, i wrote a simple code just to connect to the database and insert datas. it worked. but when i run the application, everything complied correctly, and when i use cmd to run the test file, it executed with no errors. but the database didnt changed.
    can someone guide me along? as there are a few files, i have uploaded it to http://www.comp.nus.edu.sg/~ngjianfe/IRMS.zip
    thanks!

    hihi, there has been much progression but i am having problem again. i dont know what went wrong also. checked everything i could, including ejb-jar.xml, sun-cmp-mappings.xml, sun-ejb.jar.xml, sun-web.xml, web.xml.
    i wrote 3 entity beans, with 3 respective session beans. 2 of them i tested and works perfectly fine. but for the other way, which i have coded the same way, did not work. below is the errors from the server log...
    [#|2006-02-10T16:00:42.656+0800|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.core.classloading|_ThreadID=10;|LDR5004: UnExpected error occured while creating ejb container
    java.lang.ClassNotFoundException: com.sun.ejb.containers.TimerBean_2100919770_ConcreteImpl
         at com.sun.enterprise.loader.EJBClassLoader.findClass(EJBClassLoader.java:710)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:267)
         at com.sun.ejb.containers.EntityContainer.<init>(EntityContainer.java:219)
         at com.sun.ejb.containers.TimerBeanContainer.<init>(TimerBeanContainer.java:39)
         at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:234)
         at com.sun.enterprise.server.AbstractLoader.loadEjbs(AbstractLoader.java:481)
         at com.sun.enterprise.server.ApplicationLoader.load(ApplicationLoader.java:125)
         at com.sun.enterprise.server.TomcatApplicationLoader.load(TomcatApplicationLoader.java:95)
         at com.sun.enterprise.server.AbstractManager.loadSystem(AbstractManager.java:287)
         at com.sun.enterprise.server.SystemAppLifecycle.loadSystemApps(SystemAppLifecycle.java:134)
         at com.sun.enterprise.server.SystemAppLifecycle.onStartup(SystemAppLifecycle.java:75)
         at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:300)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:294)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:220)
    |#]
    [#|2006-02-10T16:00:42.656+0800|WARNING|sun-appserver-pe8.2|javax.enterprise.system.core|_ThreadID=10;|CORE5021: Application NOT loaded: [__ejb_container_timer_app]|#]
    [#|2006-02-10T16:00:43.156+0800|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.ejb|_ThreadID=10;|Instantiated container for: ejbName: UsersManagerBean; containerId: 74682042230767621|#]
    [#|2006-02-10T16:00:43.312+0800|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.ejb|_ThreadID=10;|Instantiated container for: ejbName: UserPositionsManagerBean; containerId: 74682042230767619|#]
    [#|2006-02-10T16:00:43.406+0800|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.container.ejb|_ThreadID=10;|EJB5090: Exception in creating EJB container [java.lang.ClassNotFoundException: irmsEB.UserHierarchyBean_1449721501_ConcreteImpl]|#]
    [#|2006-02-10T16:00:43.406+0800|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.container.ejb|_ThreadID=10;|appId=irms moduleName=irms-EJBModule_jar ejbName=UserHierarchyBean|#]
    [#|2006-02-10T16:00:43.406+0800|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.core.classloading|_ThreadID=10;|LDR5004: UnExpected error occured while creating ejb container
    java.lang.ClassNotFoundException: irmsEB.UserHierarchyBean_1449721501_ConcreteImpl
         at com.sun.enterprise.loader.EJBClassLoader.findClass(EJBClassLoader.java:710)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:267)
         at com.sun.ejb.containers.EntityContainer.<init>(EntityContainer.java:219)
         at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:273)
         at com.sun.enterprise.server.AbstractLoader.loadEjbs(AbstractLoader.java:481)
         at com.sun.enterprise.server.ApplicationLoader.load(ApplicationLoader.java:125)
         at com.sun.enterprise.server.TomcatApplicationLoader.load(TomcatApplicationLoader.java:95)
         at com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:185)
         at com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:200)
         at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:300)
         at com.sun.enterprise.server.PEMain.run(PEMain.java:294)
         at com.sun.enterprise.server.PEMain.main(PEMain.java:220)
    |#]
    [#|2006-02-10T16:08:15.781+0800|WARNING|sun-appserver-pe8.2|javax.enterprise.resource.corba.ee._CORBA_.util|_ThreadID=16;|"IOP00100006: (BAD_PARAM) Class com.sun.ejb.containers.EJBLocalObjectInvocationHandler is not Serializable"
    org.omg.CORBA.BAD_PARAM: vmcid: OMG minor code: 6 completed: Maybe
         at com.sun.corba.ee.impl.logging.OMGSystemException.notSerializable(OMGSystemException.java:989)
         at com.sun.corba.ee.impl.logging.OMGSystemException.notSerializable(OMGSystemException.java:1004)
         at com.sun.corba.ee.impl.orbutil.ORBUtility.throwNotSerializableForCorba(ORBUtility.java:718)
         at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_abstract_interface(CDROutputStream_1_0.java:652)
         at com.sun.corba.ee.impl.encoding.CDROutputStream.write_abstract_interface(CDROutputStream.java:259)
         at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.writeAbstractObject(Util.java:462)
         at javax.rmi.CORBA.Util.writeAbstractObject(Util.java:131)
         at com.sun.corba.ee.impl.io.IIOPOutputStream.writeObjectField(IIOPOutputStream.java:724)
         at com.sun.corba.ee.impl.io.IIOPOutputStream.outputClassFields(IIOPOutputStream.java:790)
         at com.sun.corba.ee.impl.io.IIOPOutputStream.defaultWriteObjectDelegate(IIOPOutputStream.java:204)
         at com.sun.corba.ee.impl.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:573)
         at com.sun.corba.ee.impl.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:159)
         at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:225)
         at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValueWithVersion(ValueHandlerImpl.java:207)
         at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:147)
         at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.writeRMIIIOPValueType(CDROutputStream_1_0.java:801)
         at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:850)
         at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:864)
         at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_abstract_interface(CDROutputStream_1_0.java:647)
         at com.sun.corba.ee.impl.encoding.CDROutputStream.write_abstract_interface(CDROutputStream.java:259)
         at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.writeAbstractObject(Util.java:462)
         at javax.rmi.CORBA.Util.writeAbstractObject(Util.java:131)
         at com.sun.corba.ee.impl.io.IIOPOutputStream.writeObjectOverride(IIOPOutputStream.java:138)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:287)
         at java.util.ArrayList.writeObject(ArrayList.java:569)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.corba.ee.impl.io.IIOPOutputStream.invokeObjectWriter(IIOPOutputStream.java:605)
         at com.sun.corba.ee.impl.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:571)
         at com.sun.corba.ee.impl.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:159)
         at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:225)
         at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValueWithVersion(ValueHandlerImpl.java:207)
         at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:147)
         at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.writeRMIIIOPValueType(CDROutputStream_1_0.java:801)
         at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:850)
         at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:864)
         at com.sun.corba.ee.impl.encoding.CDROutputStream.write_value(CDROutputStream.java:242)
         at com.sun.corba.ee.impl.copyobject.ORBStreamObjectCopierImpl.copy(ORBStreamObjectCopierImpl.java:39)
         at com.sun.corba.ee.impl.copyobject.FallbackObjectCopierImpl.copy(FallbackObjectCopierImpl.java:34)
         at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.copyObject(Util.java:718)
         at javax.rmi.CORBA.Util.copyObject(Util.java:316)
         at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl.copyResult(DynamicMethodMarshallerImpl.java:414)
         at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:169)
         at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(Unknown Source)
         at irmsSB._UserHierarchyManagerRemote_DynamicStub.findJunior(_UserHierarchyManagerRemote_DynamicStub.java)
         at org.apache.jsp.UserHierarchyTest_jsp._jspService(UserHierarchyTest_jsp.java:100)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         at sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)
         at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)
         at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)
         at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)
         at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)
    |#]
    [#|2006-02-10T16:08:15.796+0800|WARNING|sun-appserver-pe8.2|javax.enterprise.system.stream.err|_ThreadID=16;|java.rmi.MarshalException: CORBA BAD_PARAM 1330446342 Maybe; nested exception is:
         java.io.NotSerializableException:
         at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:230)
         at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.wrapException(Util.java:651)
         at javax.rmi.CORBA.Util.wrapException(Util.java:279)
         at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:185)
         at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(Unknown Source)
         at irmsSB._UserHierarchyManagerRemote_DynamicStub.findJunior(_UserHierarchyManagerRemote_DynamicStub.java)
         at org.apache.jsp.UserHierarchyTest_jsp._jspService(UserHierarchyTest_jsp.java:100)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         at sun.reflect.GeneratedMethodAccessor58.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)
         at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)
         at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)
         at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)
         at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)
         at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)
    Caused by: java.io.NotSerializableException:
         at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:223)
         ... 42 more
    Caused by: org.omg.CORBA.BAD_PARAM: vmcid: OMG minor code: 6 completed: Maybe
         at com.sun.corba.ee.impl.logging.OMGSystemException.notSerializable(OMGSystemException.java:989)
         at com.sun.corba.ee.impl.logging.OMGSystemException.notSerializable(OMGSystemException.java:1004)
         at com.sun.corba.ee.impl.orbutil.ORBUtility.throwNotSerializableForCorba(ORBUtility.java:718)
         at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_abstract_interface(CDROutputStream_1_0.java:652)
         at com.sun.corba.ee.impl.encoding.CDROutputStream.write_abstract_interface(CDROutputStream.java:259)
         at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.writeAbstractObject(Util.java:462)
         at javax.rmi.CORBA.Util.writeAbstractObject(Util.java:131)
         at com.sun.corba.ee.impl.io.IIOPOutputStream.writeObjectField(IIOPOutputStream.java:724)
         at com.sun.corba.ee.impl.io.IIOPOutputStream.outputClassFields(IIOPOutputStream.java:790)
         at com.sun.corba.ee.impl.io.IIOPOutputStream.defaultWriteObjectDelegate(IIOPOutputStream.java:204)
         at com.sun.corba.ee.impl.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:573)
         at com.sun.corba.ee.impl.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:159)
         at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:225)
         at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValueWithVersion(ValueHandlerImpl.java:207)
         at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:147)
         at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.writeRMIIIOPValueType(CDROutputStream_1_0.java:801)
         at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:850)
         at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:864)
         at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_abstract_interface(CDROutputStream_1_0.java:647)
         at com.sun.corba.ee.impl.encoding.CDROutputStream.write_abstract_interface(CDROutputStream.java:259)
         at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.writeAbstractObject(Util.java:462)
         at javax.rmi.CORBA.Util.writeAbstractObject(Util.java:131)
         at com.sun.corba.ee.impl.io.IIOPOutputStream.writeObjectOverride(IIOPOutputStream.java:138)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:287)
         at java.util.ArrayList.writeObject(ArrayList.java:569)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.corba.ee.impl.io.IIOPOutputStream.invokeObjectWriter(IIOPOutputStream.java:605)
         at com.sun.corba.ee.impl.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:571)
         at com.sun.corba.ee.impl.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:159)
         at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:225)
         at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValueWithVersion(ValueHandlerImpl.java:207)
         at com.sun.corba.ee.impl.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:147)
         at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.writeRMIIIOPValueType(CDROutputStream_1_0.java:801)
         at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:850)
         at com.sun.corba.ee.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:864)
         at com.sun.corba.ee.impl.encoding.CDROutputStream.write_value(CDROutputStream.java:242)
         at com.sun.corba.ee.impl.copyobject.ORBStreamObjectCopierImpl.copy(ORBStreamObjectCopierImpl.java:39)
         at com.sun.corba.ee.impl.copyobject.FallbackObjectCopierImpl.copy(FallbackObjectCopierImpl.java:34)
         at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.copyObject(Util.java:718)
         at javax.rmi.CORBA.Util.copyObject(Util.java:316)
         at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl.copyResult(DynamicMethodMarshallerImpl.java:414)
         at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:169)
         ... 39 more
    |#]
    anyone got any idea? thanks

  • Need help with a simple php page link

    I have a small .php to force the download of a file when a user clicks on a link:
    <?php
    header ("Content-type:application/pdf");
    header ("Content-Disposition:attachment;filename='form.pdf'");
    readfile ("form.pdf");
    ?>
    I need to include code which will redirect the user back to the home page without opening a new browser window, either during or immediately after downloading the file. And if it's possible, prevent the browser back button to return the user to the download page.
    I tried adding this after the readfile line:  echo "<a href="mywebsite.com/index.html" /a>";
    but that failed miserably. My php knowledge is as weak as a bull moose after the mating season. Can someone help me out on this?

    If you couldn't tell whether it is AS2 or AS3, it is doubtful you can turn it from AS2 into AS3, at least not until you learn both languages.  There is no tool made that does it for you.

  • Need help with a simple task

    I have just started with Flash and am very unfamiliar with
    the workings of it..On my web site I have a small Flash application
    that I want to also be a hyperlink to another page. But I can't
    figure this out. I actually want the application to be the link and
    not anything inside the application. I am including the code. Can
    someone tell me what I need to do?? Thanks.

    You can just place an invisible button on the top layer of
    the flash time line and code it to getURL. When you said "hyperlink
    to another page", are you referring to an html page or another swf
    file? To make an invisible button in Flash, you can hit Ctrl+F8 to
    bring up the dialog box to create a new symbol, name your button,
    make sure you select the type of button, hit ok, now you are inside
    the button and need to create a "hit" area. Click on the "hit"
    state and press F7 to create a blank key frame. Using the drawing
    tools, select the square, no stroke, and any fill color you want,
    draw a square shape, click on the shape and in your Info Panel,
    change the size of this shape to match the size of your stage,
    lastly, make sure the registration point is (0,0) by using the
    Align Panel. Go back to your main time line, add a layer on your
    time line and make sure it's at the top, drag your new button from
    the library to the stage and align it to (0,0).
    There are two ways to code the button, so to make it easier,
    click on the button once to select it, hit F9 to bring up the
    actions panel and type this
    on(release){
    getURL("
    http://www.someWebsite.com",
    "_blank");// you can also use "_self" //
    If some of this isn't new to you, disregard parts of it. If
    you have any buttons in your Flash application, this will cause
    problems because the invisible button will counter-act anything
    below it. Let me know if this works for you. Of course, this all
    assumes you have access to the flash file.

Maybe you are looking for