Matrix Code Tutorial Help Needed - Symbols wont change

Please could someone help me out with this Flash problem, I would really appreciate it.
I have followed the guide at this link to create a matrix code effect. The matrix code font file is available to download from this site also (mCode15).
Once I get this file up and running and understand how it works, I'm going to tweak it somewhat to suit my needs.
I  am, however, experiencing some problems getting it to work as described  in the tutorial. I have followed the tutorial to the letter, but when  the flash movie file runs, only the glyph symbol that I used to create the_one and one_pod movie symbols is displayed in the code that scrolls  down screen. I have embedded the font the way it describes and even  added it to the library and set it to export for actionscript using the  linkage option. But the matrix code that rains down is still only one  symbol which never changes.
Please please help me out with  this as I'm slowly losing my sanity trying to figure it out. I am using  Flash CS3 on a Windows 7 PC to do this and the file is set up up as action script  2.0.
Many thanks for any help you can provide.
The Action Script code from the site is included below, this is pasted into the 1st frame.
// ---------------------------------------------// The Flash Matrix - www.pixelhivedesign.com// ---------------------------------------------// Initialize variables.maxLines = 25;  // Maximum number of lines at once.
minScale = 10;  // Minimum scale of a line.
maxScale = 100; // Maximum scale of a line.
// Create an empty Movieclip to hold the Matrix.theMatrix = createEmptyMovieClip('MatrixCode',1);curLines = 0; // Keeps track of the current number of lines.
// ----------------------// Generating the Matrix.// ----------------------theMatrix.onEnterFrame = function(){
// Check that the current number of lines is less than the maximum allowed.
if(curLines <= maxLines){
curLines++;  // Increment the number of lines.
// Create a new line.codeLine   = this.createEmptyMovieClip('codeLine',curLines); // Generate a random scale for the line.// This simulates lines at different distances.
var ranScale  = Math.round(Math.random() * (maxScale-minScale)) + minScale;codeLine._xscale = codeLine._yscale = ranScale; // Position the line at a random X location.codeLine._x = Math.random() * Stage.width; // Determine line speed based on the distance.codeLine.speed = (codeLine._xscale)/10; // ---------------------------------------------// Creating a line of multiple pods (characters)// ---------------------------------------------codeLine.myCodes = []; // Array to store individual pods.
numPods = 0;       // Number of pods.
while(codeLine._height < Stage.height){
numPods++;  // Increment the number of pods.
// Attach a single pod to the line of code.pod = codeLine.attachMovie('one_pod','pod'+numPods,numPods);codeLine.myCodes.push(pod);   // store pod.
// Position pod above the last one (vertical lines)pod._y -= (pod._height+2) * numPods; // Choose a random Matrix character.// Character Codes for lower case letters are between 96 & 123pod.the_one.Neo.text = chr(Math.round(Math.random() * 27) + 96);} // ----------------------------// Initialize the white pulse.// ----------------------------// Store pod position to start at.codeLine.ind = 0;// Store delay between pulses.codeLine.delay = codeLines.myCodes.length; // ------------------------------------// Animating each line of code.// ------------------------------------codeLine.onEnterFrame = function(){
// -------------------------------// Vertical animation of the line.// -------------------------------// Every frame make the line move down by it's speed.
this._y += this.speed; // Check if the line of code has animated off the Stage
if(this._y - this._height >= Stage.height) {
// Yes, so allow an additional line to be generated.maxLines++;// Remove this line and free memory.
this.removeMovieClip();}// ----------------------------// Animating the white pulse.// ----------------------------// Get next pod to affect.
this.curCode = this.myCodes[this.ind];// If the pod is not currently animating, start its animation.
if(this.curCode._currentframe == 1) this.curCode.play();// Check if we have reached the end of the line.
if(this.ind < this.myCodes.length and this.delay != 0){
// No, then move on to next character.
this.ind++;// Decrease the delay before next pulse.
this.delay--;
} else {
// Yes, then reset the character position.
this.ind = 0;// Reset the delay before next pulse.
this.delay = this.myCodes.length;}}}}

When you dynamically add content, it has no home on the timeline unless you anchor it in one.  If you were to manually place an empty movieclip on the timeline in the lowest layer and then and then create the matrix stuff in there then you would have it living in the background.
Try creating such a movieclip, located in the upper left corner of the stage and assign it an instance name of "theMatrix"
Then remove the following lines from your existing code (which is otherwise creating that mc dynamically)...
// Create an empty Movieclip to hold the Matrix.theMatrix = createEmptyMovieClip('MatrixCode',1);
That should be all you need to do.

Similar Messages

  • Flash Matrix Code Tutorial Help Needed

    Please could someone help me out with this Flash problem, I would really appreciate it.
    I have followed the guide at this link to create a matrix code effect. The matrix code font file is available to download from this site also (mCode15).
    Once I get this file up and running and understand how it works, I'm going to tweak it somewhat to suit my needs.
    I am, however, experiencing some problems getting it to work as described in the tutorial. I have followed the tutorial to the letter, but when the flash movie file runs, only the glyph symbol that I used to create the_one and one_pod movie symbols is displayed in the code that scrolls down screen. I have embedded the font the way it describes and even added it to the library and set it to export for actionscript using the linkage option. But the matrix code that rains down is still only one symbol which never changes.
    Please please help me out with this as I'm slowly losing my sanity trying to figure it out. I am using Flash CS3 on a PC to do this and the file is set up up as action script 2.0.

    hi
    try asking in the AS2 forum; they will be better placed to help you - and post some of your code too rather than a link (you cant expect us to do all the work for you )

  • File missing (file\BCD error code 0Xc0000034 help need for work!

    file missing (file\BCD  error code 0Xc0000034 help need for work!    what can i do?
    have an p 2000 notebook pc

     Hi bobkunkle, welcome to the HP Forums. I understand you cannot boot passed the error you are receiving.
    What is the model or product number of your notebook? What version of Windows is installed?
    Guide to finding your product number
    Which Windows operating system am I running?
    TwoPointOh
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • Code troubleshooting help needed - buttons spawning 2 apps

    Hi,
    I'm trying to do a question out of my Java text book and I'm a little confused why its not working correctly. There's 2 buttons on a frame that when clicked start the app behind them... one is a basic calculator, the other is a little applet to compute a mortgage. The second button is not reacting like the first does AND the Mortgage applet behind that button does not start-up properly... the box opens but nothing in the frame is visible.
    The first thing I need to be explained is that in the Mortgage section why I can't change it into an application from an applet without receiving an error. On my separate Mortgage applet (standalone) I switched it from applet to application by adding the following:
      public static void main(String[] args) {
         //create a frame
         JFrame frame = new JFrame (
              "Running a program as applet and frame");
         //create an instance of MortgageApplet
         MortgageApplet applet = new MortgageApplet();
         //add the applet instance to the frame
         frame.getContentPane().add(applet, BorderLayout.CENTER);
         //invoke init and start
         applet.init();
         applet.start();
         //display the frame
         frame.setSize(300, 300);     
         frame.setVisible(true);
         }But when I add that code to this exercise with the 2 buttons kicking the 2 sub apps off I get the following error...
    Exercise12_17.java:130: cannot resolve symbol
    symbol  : method start ()
    location: class MortgageApplet
            applet.start();So because of that I have that section of the code commented out below.... I copied that straight from my book and[b] it works when its standalone but not within this bigger app I'll paste below.
    The second thing I need explained is why does the second button not behave like the first button...
    If you click the first button it starts the calculator and then shows a "hide calculator" button to hide the calculator application. And if you click that hide button you return to the original menu with the 2 buttons (Calc & Mortgage) to choose from. But if you click the Mortgage button it brings up the Mortgage app (which currently is not working correctly in here) BUT does not show me the "Hide Mortgage" button... it jumps to the "Simple Calculator" button.
    My assumption is it has something to do with the If-Else if actionPerformed argument I have in the code below but I'm not entirely sure.
    Does anyone have answers to me 2 questions??...
    (1) do I need to change the mortgage applet to application & why am I getting that error when trying to do so? ...... and ......
    (2) why does my 2nd button on the main menu not get the "hide mortgage" button after starting the mortgage app & how would I correct it? (I assume that if I solve problem #1 it'll spawn the app correctly in part 2 when it starts).
    Any help would be greatly appreciated... thank you. :-)
    Rob
    -------------------------entire app below--------------------
    // Exercise12_17.java: Create multiple windows - Simple Calc & MortgageApplet
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.TitledBorder;
    public class Exercise12_17 extends JFrame implements ActionListener {
      // Declare and create a frame: an instance of MenuDemo
      MenuDemo calcFrame = new MenuDemo();
      // Declare and create a frame: an instance of MortgageApplet
      MortgageApplet mortgageAppletFrame = new MortgageApplet();
      // Declare two buttons for displaying frames
      private JButton jbtCalc;
      private JButton jbtMortgage;
      public static void main(String[] args) {
        Exercise12_17 frame = new Exercise12_17();
        frame.pack();
        frame.setTitle("Exercise 12.17: Multiple Windows Demo");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setVisible(true);
      public Exercise12_17() {
        // Add buttons to the main frame
        getContentPane().setLayout(new FlowLayout());
        getContentPane().add(jbtCalc = new JButton("Simple Calculator"));
        getContentPane().add(jbtMortgage = new JButton("Mortgage"));
        // Register the main frame as listener for the buttons
        jbtCalc.addActionListener(this);
        jbtMortgage.addActionListener(this);
      public void actionPerformed(ActionEvent e) {
        String arg = e.getActionCommand();
        if (e.getSource() instanceof JButton)
          if ("Simple Calculator".equals(arg)) {
            //show the MenuDemo frame
            jbtCalc.setText("Hide Simple Calculator");
            calcFrame.pack();
            calcFrame.setVisible(true);
          else if ("Hide Simple Calculator".equals(arg)) {
            calcFrame.setVisible(false);
            jbtCalc.setText("Simple Calculator");
          else if ("Mortgage".equals(arg)) {
            //show the Mortgage frame
            mortgageAppletFrame.pack();
            jbtMortgage.setText("Hide Mortgage");
            mortgageAppletFrame.setVisible(true);
          else if ("Mortgage".equals(arg)) {
            mortgageAppletFrame.setVisible(false);
            jbtMortgage.setText("Mortgage");
      class MortgageApplet extends JFrame implements ActionListener {
      // Declare and create text fields for interest rate
      // year, loan amount, monthly payment, and total payment
      private JTextField jtfAnnualInterestRate = new JTextField();
      private JTextField jtfNumOfYears = new JTextField();
      private JTextField jtfLoanAmount = new JTextField();
      private JTextField jtfMonthlyPayment = new JTextField();
      private JTextField jtfTotalPayment = new JTextField();
      // Declare and create a Compute Mortgage button
      private JButton jbtComputeMortgage = new JButton("Compute Mortgage");
      /** Initialize user interface */
      public void init() {
        // Set properties on the text fields
        jtfMonthlyPayment.setEditable(false);
        jtfTotalPayment.setEditable(false);
        // Right align text fields
        jtfAnnualInterestRate.setHorizontalAlignment(JTextField.RIGHT);
        jtfNumOfYears.setHorizontalAlignment(JTextField.RIGHT);
        jtfLoanAmount.setHorizontalAlignment(JTextField.RIGHT);
        jtfMonthlyPayment.setHorizontalAlignment(JTextField.RIGHT);
        jtfTotalPayment.setHorizontalAlignment(JTextField.RIGHT);
        // Panel p1 to hold labels and text fields
        JPanel p1 = new JPanel();
        p1.setLayout(new GridLayout(5, 2));
        p1.add(new Label("Annual Interest Rate"));
        p1.add(jtfAnnualInterestRate);
        p1.add(new Label("Number of Years"));
        p1.add(jtfNumOfYears);
        p1.add(new Label("Loan Amount"));
        p1.add(jtfLoanAmount);
        p1.add(new Label("Monthly Payment"));
        p1.add(jtfMonthlyPayment);
        p1.add(new Label("Total Payment"));
        p1.add(jtfTotalPayment);
        p1.setBorder(new TitledBorder("Enter interest rate, year and loan amount"));
        // Panel p2 to hold the button
        JPanel p2 = new JPanel();
        p2.setLayout(new FlowLayout(FlowLayout.RIGHT));
        p2.add(jbtComputeMortgage);
        // Add the components to the applet
        getContentPane().add(p1, BorderLayout.CENTER);
        getContentPane().add(p2, BorderLayout.SOUTH);
        // Register listener
        jbtComputeMortgage.addActionListener(this);
      //*********ADDED THIS SECTION below TO MAKE APPLET AN APPLICATION***********
    //  public static void main(String[] args) {
         //create a frame
    //     JFrame frame = new JFrame (
    //          "Running a program as applet and frame");
         //create an instance of MortgageApplet
    //     MortgageApplet applet = new MortgageApplet();
         //add the applet instance to the frame
    //     frame.getContentPane().add(applet, BorderLayout.CENTER);
         //invoke init and start
    //     applet.init();
    //     applet.start();
         //display the frame
    //     frame.setSize(300, 300);     
    //     frame.setVisible(true);
      //*********ADDED THIS SECTION above TO MAKE APPLET AN APPLICATION***********
      /** Handle the "Compute Mortgage" button */
      public void actionPerformed(ActionEvent e) {
        if (e.getSource() == jbtComputeMortgage) {
          // Get values from text fields
          double interest = (Double.valueOf(
            jtfAnnualInterestRate.getText())).doubleValue();
          int year =
            (Integer.valueOf(jtfNumOfYears.getText())).intValue();
          double loan =
            (Double.valueOf(jtfLoanAmount.getText())).doubleValue();
          // Create a mortgage object
          Mortgage m = new Mortgage(interest, year, loan);
          // Display monthly payment and total payment
          jtfMonthlyPayment.setText(String.valueOf(m.monthlyPayment()));
          jtfTotalPayment.setText(String.valueOf(m.totalPayment()));
    class MenuDemo extends JFrame implements ActionListener {
      // Text fields for Number 1, Number 2, and Result
      private JTextField jtfNum1, jtfNum2, jtfResult;
      // Buttons "Add", "Subtract", "Multiply" and "Divide"
      private JButton jbtAdd, jbtSub, jbtMul, jbtDiv;
      // Menu items "Add", "Subtract", "Multiply","Divide" and "Close"
      private JMenuItem jmiAdd, jmiSub, jmiMul, jmiDiv, jmiClose;
      /** Main method */
      public void main(String[] args) {  //Change-was public static void main(String[] args)
        MenuDemo frame = new MenuDemo();
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.pack();
        frame.setVisible(true);
      /** Default constructor */
      public MenuDemo() {
        setTitle("Menu Demo");
        // Create menu bar
        JMenuBar jmb = new JMenuBar();
        // Set menu bar to the frame
        setJMenuBar(jmb);
        // Add menu "Operation" to menu bar
        JMenu operationMenu = new JMenu("Operation");
        operationMenu.setMnemonic('O');
        jmb.add(operationMenu);
        // Add menu "Exit" in menu bar
        JMenu exitMenu = new JMenu("Exit");
        exitMenu.setMnemonic('E');
        jmb.add(exitMenu);
        // Add menu items with mnemonics to menu "Operation"
        operationMenu.add(jmiAdd= new JMenuItem("Add", 'A'));
        operationMenu.add(jmiSub = new JMenuItem("Subtract", 'S'));
        operationMenu.add(jmiMul = new JMenuItem("Multiply", 'M'));
        operationMenu.add(jmiDiv = new JMenuItem("Divide", 'D'));
        exitMenu.add(jmiClose = new JMenuItem("Close", 'C'));
        // Set keyboard accelerators
        jmiAdd.setAccelerator(
          KeyStroke.getKeyStroke(KeyEvent.VK_A, ActionEvent.CTRL_MASK));
        jmiSub.setAccelerator(
          KeyStroke.getKeyStroke(KeyEvent.VK_S, ActionEvent.CTRL_MASK));
        jmiMul.setAccelerator(
          KeyStroke.getKeyStroke(KeyEvent.VK_M, ActionEvent.CTRL_MASK));
        jmiDiv.setAccelerator(
          KeyStroke.getKeyStroke(KeyEvent.VK_D, ActionEvent.CTRL_MASK));
        // Panel p1 to hold text fields and labels
        JPanel p1 = new JPanel();
        p1.setLayout(new FlowLayout());
        p1.add(new JLabel("Number 1"));
        p1.add(jtfNum1 = new JTextField(3));
        p1.add(new JLabel("Number 2"));
        p1.add(jtfNum2 = new JTextField(3));
        p1.add(new JLabel("Result"));
        p1.add(jtfResult = new JTextField(4));
        jtfResult.setEditable(false);
        // Panel p2 to hold buttons
        JPanel p2 = new JPanel();
        p2.setLayout(new FlowLayout());
        p2.add(jbtAdd = new JButton("Add"));
        p2.add(jbtSub = new JButton("Subtract"));
        p2.add(jbtMul = new JButton("Multiply"));
        p2.add(jbtDiv = new JButton("Divide"));
        // Add panels to the frame
        getContentPane().setLayout(new BorderLayout());
        getContentPane().add(p1, BorderLayout.CENTER);
        getContentPane().add(p2, BorderLayout.SOUTH);
        // Register listeners
        jbtAdd.addActionListener(this);
        jbtSub.addActionListener(this);
        jbtMul.addActionListener(this);
        jbtDiv.addActionListener(this);
        jmiAdd.addActionListener(this);
        jmiSub.addActionListener(this);
        jmiMul.addActionListener(this);
        jmiDiv.addActionListener(this);
        jmiClose.addActionListener(this);
      /** Handle ActionEvent from buttons and menu items */
      public void actionPerformed(ActionEvent e) {
        String actionCommand = e.getActionCommand();
        // Handle button events
        if (e.getSource() instanceof JButton) {
          if ("Add".equals(actionCommand))
            calculate('+');
          else if ("Subtract".equals(actionCommand))
            calculate('-');
          else if ("Multiply".equals(actionCommand))
            calculate('*');
          else if ("Divide".equals(actionCommand))
            calculate('/');
        else if (e.getSource() instanceof JMenuItem) {
          // Handle menu item events
          if ("Add".equals(actionCommand))
            calculate('+');
          else if ("Subtract".equals(actionCommand))
            calculate('-');
          else if ("Multiply".equals(actionCommand))
            calculate('*');
          else if ("Divide".equals(actionCommand))
            calculate('/');
          else if ("Close".equals(actionCommand))
            System.exit(0);
      /** Calculate and show the result in jtfResult */
      private void calculate(char operator) {
        // Obtain Number 1 and Number 2
        int num1 = (Integer.parseInt(jtfNum1.getText().trim()));
        int num2 = (Integer.parseInt(jtfNum2.getText().trim()));
        int result = 0;
        // Perform selected operation
        switch (operator) {
          case '+': result = num1 + num2;
                    break;
          case '-': result = num1 - num2;
                    break;
          case '*': result = num1 * num2;
                    break;
          case '/': result = num1 / num2;
        // Set result in jtfResult
        jtfResult.setText(String.valueOf(result));
    }

    Okay here is the fixed code... I commented the changes...
    basically I changed public void init() to public MortgageApplet() so that the section is a contructor not a method. ( since this class no longer extends Applet, public void init() becomes a method called "init" which has no relation to Applets' init method...)
    Then I move most of the variable declarations in the contructor ( formally the init() method ) and declared them as class variables... then initialized them in the construtor "MortgageApplet()"
    And now the second button works and you can see the MortgageApplet with textfields and buttons...
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.TitledBorder;
    class MortgageApplet extends JFrame implements ActionListener {
       // Made all these class variable, originally they were under public void init()
       private JTextField jtfAnnualInterestRate;
       private JTextField jtfNumOfYears;
       private JTextField jtfLoanAmount;
       private JTextField jtfMonthlyPayment;
       private JTextField jtfTotalPayment;
       private JButton jbtComputeMortgage;
       JPanel p1,p2;
       // end variable declaration
       public MortgageApplet() {    // originally was public void init() so it thought is was a method
                                    // now it is a contructor...
          jtfAnnualInterestRate = new JTextField();
          jtfNumOfYears = new JTextField();
          jtfLoanAmount = new JTextField();
          jtfMonthlyPayment = new JTextField();
          jtfTotalPayment = new JTextField();
          jbtComputeMortgage = new JButton("Compute Mortgage");
          jtfMonthlyPayment.setEditable(false);
          jtfTotalPayment.setEditable(false);
          jtfAnnualInterestRate.setHorizontalAlignment(JTextField.RIGHT);
          jtfNumOfYears.setHorizontalAlignment(JTextField.RIGHT);
          jtfLoanAmount.setHorizontalAlignment(JTextField.RIGHT);
          jtfMonthlyPayment.setHorizontalAlignment(JTextField.RIGHT);
          jtfTotalPayment.setHorizontalAlignment(JTextField.RIGHT);
          // JPanel p1 and p2 declared as class variables
          p1 = new JPanel();
          p1.setLayout(new GridLayout(5, 2));
          p1.add(new Label("Annual Interest Rate"));
          p1.add(jtfAnnualInterestRate);
          p1.add(new Label("Number of Years"));
          p1.add(jtfNumOfYears);
          p1.add(new Label("Loan Amount"));
          p1.add(jtfLoanAmount);
          p1.add(new Label("Monthly Payment"));
          p1.add(jtfMonthlyPayment);
          p1.add(new Label("Total Payment"));
          p1.add(jtfTotalPayment);
          p1.setBorder(new TitledBorder("Enter interest rate, year and loan amount"));
          p2 = new JPanel();
          p2.setLayout(new FlowLayout(FlowLayout.RIGHT));
          p2.add(jbtComputeMortgage);
          getContentPane().add(p1, BorderLayout.CENTER);
          getContentPane().add(p2, BorderLayout.SOUTH);
          setVisible(true);  // added this also...
          /* the rest is the same - MaxxDmg...*/
          // Register listener
       jbtComputeMortgage.addActionListener(this);  }
       /** Handle the "Compute Mortgage" button */
       public void actionPerformed(ActionEvent e) {
          if (e.getSource() == jbtComputeMortgage) {
             // Get values from text fields
             double interest = (Double.valueOf(
             jtfAnnualInterestRate.getText())).doubleValue();
             int year =(Integer.valueOf(jtfNumOfYears.getText())).intValue();
             double loan =(Double.valueOf(jtfLoanAmount.getText())).doubleValue();
             // Create a mortgage object
             Mortgage m = new Mortgage(interest, year, loan);
             // Display monthly payment and total payment
             jtfMonthlyPayment.setText(String.valueOf(m.monthlyPayment()));
             jtfTotalPayment.setText(String.valueOf(m.totalPayment()));
    }Have fun...
    - MaxxDmg...
    - ' No Side '

  • Href and target tags tutorial/help needed for use with an existing website

    I have a website, (built through iweb), and an intro movie. I have spent a lot of time trying to understand the proper tags and how to use them without much luck. My goal is to have the homepage associated with my domain name load in a browser while at the same time have my intro movie open in a Quicktime Player window, play, and automatically close leaving the webpage visible. If anyone can point me to a tutorial or walk my through the process I would appreciate it.

    Poster movie style. Requires QuickTime Pro:
    Create an image (or a frame from your movie). This becomes the "poster". You could add text to it (Click to Play) in a graphic editor app to help your viewers or add text to the page under the image with these instructions.
    Save this new file as poster.mov
    It becomes the src="poster.mov" (source tag in the html code). Set its dimensions to fit your page layout.
    Your "intro movie" will be your href="intro.mov" (href tag in the html code).
    Open it with QuickTime Pro and then open the Movie Properties window. Click on the Presentation tab to see the choices. Automatically close option will close the QuickTime window. Automatically quit option will quit the running QuickTime Player app. This would be a better option as the browser should come back as the "front" application. You also want to check "auto play".
    Use Save As (preserves fast start feature) and name this file intro.mov
    In your html code for the QuickTime files you need to set target="quicktimeplayer" (this launches the QuickTime Player app instead of using the browser plug-in). It may also help if you use the full URL to both files in each tag (http://myserver.com/foldername/intro.mov).
    One of mine as an example. It uses automatically close window:
    http://homepage.mac.com/kkirkster/mycareerfuture/
    View the source code to see the tag structure. My page uses javascript instead of the older object/embed tag code.
    More useful links:
    http://developer.apple.com/internet/ieembedprep.html
    http://www.qtbridge.com/pageot/pageot.html

  • Navigation Tutorial Help Needed

    I am following an online tutorial to build a horizontal menu bar in AS3.
    In the tut, they are using MovieClips, but for what I want to achieve I am using buttons.
    Here is their code.
    function navOverF(event:MouseEvent):void{
    event.target.filters = [navBtnGlow];
    navBar_mc.setChildIndex(event.target as MovieClip, 1);
    dropMenus_mc.gotoAndStop(navBar_mc.getChildAt(1).name);
    trace("We are rolling over..." + navBar_mc.getChildAt(1).name);
    I have worked out that the issue is in line three "(event.target as MovieClip, 1)", but how do I change this code to work with buttons?
    Any help would be much appreciated.
    Cheers
    Dave

    Thanks for the help guys.
    I received a solution from another forum, and that was replacing MovieClip with DisplayObject.
    Thanks again.

  • Help needed in SUI changes testing

    HR experts
    Some SUI (State unemploymment Insurance) have changed
    for example
    The SUI rate for state of TEXAS (USA) -Company code ABCD has changed to .10% and for other Company code WXYZ it is .80% effective july 1st, 2008.
    How do you test it  using Tax reporter (PU19) or is there any other way to test these changes.
    Any help is highly appreciated.
    Regards
    Krishna

    Hi Krishna,
    Once you have changes the tax rate for texas tax type based on the tax company, you should be able to see this change in PU19 run under quartely SUI wage report form run.
    Test it on one or more associate whose is having texas tax type.
    In the result/log manager for that run you should be seeing a sap script form (EX: HR_F_UNEMP_GENE for Texas) select its spool number.
    This will display you the tax details, see line 9 that talks about the tax rate. it shows as a mutiple of 100.
    EX: if tax rate is 0.0010 then on this form it will be 0.10
    Hope this will help you.
    Regards,
    Mamatha

  • Help needed.. Changed HD, 'broken' DVD reader, working recovery disks.. how to?

    Hello all, hope someone can help me here. I have a Toshiba Satellite p300-19f, win vista 32 in dotation. 
    Long story short, the computer has served me well for roughly 3 years now. All at a sudden, on startup when on windows charging page (with win logo and green counter going up), it started freezing. 
    I tried recovering last working win configuration, I tried recovering precedent backup points, at times I solved until the problem randomly showed up again (same identical problem), so ultimately I formatted and re-installed fresh vanilla version from recovery partition succesfully. Problem went away, until it came back. (all of this in 1 month time span)
    It worked ok for a couple weeks, and started giving the same problem again. Ultimately I figured out (I immagine) that the hard drive must have some problems, as this freezing on windows startup (immediately distinguishable as the cpu stops working / the light in front stops twinkling) occured basically randomly, regardless of software installed in the pc, or time since last format.
    I decided to change the hard drive, but obviously have the problem of the new operating system. My dvd burner is broken, or at least does not work reliably. I got an external sony burner and through the toshiba disk creator applet made the recovery disks (2 DVDs) successfully.
    I changed the hard drive, tried to reboot and reistall using in laptop dvd, when it gets to copy the first big file it gives a CRC error, an aborts the whole thing (sending me to a prompt of commands though.. where I copied the whole content of the DVDs on the just made HDDrecovery folder in v: through the recognized usb external burner, but the computer failed to recognize on later startups).So I tried to boot it up with the recovery disks in the external burner (bios DOES support USB boot), the disks are read, the toshiba applet for recovery is started, and as soon as it gets to the dos-like windows it freezes on "check for medium in drive".
    I have the recovery disks, I have a half working dvd reader in the pc that gives errors when copying the big files and aborts installation. I have an external dvd reader that is recognized at boot, starts the installation, but fails to find "the medium"...
    I hope I have explained my problem more or less.. what can I do (apart from buying a new working dvd reader for the computer) ?
    If there are specific info I need to give on hardware/software, please let me know.
    Thanks,

    Hello all, hope someone can help me here. I have a Toshiba Satellite p300-19f, win vista 32 in dotation. 
    Long story short, the computer has served me well for roughly 3 years now. All at a sudden, on startup when on windows charging page (with win logo and green counter going up), it started freezing. 
    I tried recovering last working win configuration, I tried recovering precedent backup points, at times I solved until the problem randomly showed up again (same identical problem), so ultimately I formatted and re-installed fresh vanilla version from recovery partition succesfully. Problem went away, until it came back. (all of this in 1 month time span)
    It worked ok for a couple weeks, and started giving the same problem again. Ultimately I figured out (I immagine) that the hard drive must have some problems, as this freezing on windows startup (immediately distinguishable as the cpu stops working / the light in front stops twinkling) occured basically randomly, regardless of software installed in the pc, or time since last format.
    I decided to change the hard drive, but obviously have the problem of the new operating system. My dvd burner is broken, or at least does not work reliably. I got an external sony burner and through the toshiba disk creator applet made the recovery disks (2 DVDs) successfully.
    I changed the hard drive, tried to reboot and reistall using in laptop dvd, when it gets to copy the first big file it gives a CRC error, an aborts the whole thing (sending me to a prompt of commands though.. where I copied the whole content of the DVDs on the just made HDDrecovery folder in v: through the recognized usb external burner, but the computer failed to recognize on later startups).So I tried to boot it up with the recovery disks in the external burner (bios DOES support USB boot), the disks are read, the toshiba applet for recovery is started, and as soon as it gets to the dos-like windows it freezes on "check for medium in drive".
    I have the recovery disks, I have a half working dvd reader in the pc that gives errors when copying the big files and aborts installation. I have an external dvd reader that is recognized at boot, starts the installation, but fails to find "the medium"...
    I hope I have explained my problem more or less.. what can I do (apart from buying a new working dvd reader for the computer) ?
    If there are specific info I need to give on hardware/software, please let me know.
    Thanks,

  • Moving data from a subVI to mainVI - example code provided, help needed!

    Hi all, I've written a set of VIs that are a part of a larger program, but I've come to a bit of a stumbling point and would appreciate some assistance.  The VI's are attached.  The mainVI calls subVI with a simple conditional.  When the subVI runs, it is used to generate an array that will be passed back to mainVI for use elsewhere in the program.
    There are several things that I would like to have happen:
    I want the 'load params' button in subVI to pass the array back to mainVI without having to close the subVI. 
    Is it possible to still use shift registers and do this somehow??
    I want the subVI to be able to remain open in the background if the user chooses, or to be able to be shut if the user chooses.
    I can't figure out how to do this.
    I'm open to suggestions, even if they include radically altering the way that the program is written.
    thanks,
    -z
    Message Edited by zskillz on 10-25-2006 11:12 AM
    Attachments:
    mainVI.vi ‏10 KB
    subVI.vi ‏17 KB

    Hi Dennis,
    Dennis Knutson wrote:
    the attachment still didn't make it but there are a couple of ways you can do it without closing the subVI and using the wire. You can write to a global vairable in the subVI and read it in the main. You can create a control reference of an indicator of the main VI, wire this to the subVI and write to the reference's value property. You can start the subVI with an invoke node (run method) and then in the main, read the subVI's indicators with a Get Control Value (Variant) method. See this very recent post on the same subject for examples of the first two techniques.
    1) I don't want to use globals.
    2) If I use control references, then there's really no need to use the shift registers as I have them set up... correct?  Basically I'll just be writing to an indicator that's in the mainVI. I can then use that information however I please.  The problem I have with this is that I was really trying to avoid using references.  I think that they're quite difficult to follow when your trying to diagnose a problem or if you need to write very clean code that will be easy for someone else to read.
    3) the 'get control value' sounds interesting, but I want subVI to control when the data is passed to mainVI, so I don't think this is the proper approach.  Am I incorrect?
    also -- I've gone through the other threads on this topic many times before I posted this.  Some of them are helpful, some of them are less so.  Anyway, I couldn't not find an answer to the question about being able to maintiain the use of shift registers for this type of approach??
    thanks
    -z

  • Check code ( urgent help needed from ABAP guys working on FI/CO)

    hi all,
    check my code & give me solution for getting only offsetting acounts depending on particular HKONT.
    plz i need its solution urgently.
    REPORT zglaccline NO STANDARD PAGE HEADING                              
                       LINE-SIZE 300                                         
                       LINE-COUNT 65(3).                                                                               
    TABLES : bkpf, bseg.                                                                               
    DATA : BEGIN OF it_bkpf OCCURS 0,                                       
            bukrs LIKE bkpf-bukrs,                                           
            belnr LIKE bkpf-belnr,                                           
            gjahr LIKE bkpf-gjahr,                                           
            monat LIKE bkpf-monat,                                           
            budat LIKE bkpf-budat,                                           
            brnch LIKE bkpf-brnch,                                           
            xblnr LIKE bkpf-xblnr,                                           
            waers LIKE bkpf-waers,                                           
            END OF it_bkpf.                                                                               
    DATA : BEGIN OF it_bseg OCCURS 0,                                        
    gsber LIKE bseg-gsber,                                                   
    hkont LIKE bseg-hkont,                                                   
    kunnr LIKE bseg-kunnr,                                                   
    sgtxt LIKE bseg-sgtxt,                                                   
    bschl LIKE bseg-bschl,                                                   
    wrbtr LIKE bseg-wrbtr,                                                   
    dmbtr LIKE bseg-dmbtr,                                                   
    pswsl LIKE bseg-pswsl,                                                   
    kostl LIKE bseg-kostl,                                                   
    prctr LIKE bseg-prctr,                                                   
    aufnr LIKE bseg-aufnr,                                                   
    shkzg LIKE bseg-shkzg,                                                   
    augbl LIKE bseg-augbl,                                                   
    END OF it_bseg.                                                                               
    DATA : BEGIN OF it_res OCCURS 0,                                           
    bukrs LIKE bkpf-bukrs,                                                    
    gjahr LIKE bkpf-gjahr,                                                    
    monat LIKE bkpf-monat,                                                    
    belnr LIKE bkpf-belnr,                                                    
    budat LIKE bkpf-budat,                                                    
    brnch LIKE bkpf-brnch,                                                    
    gsber LIKE bseg-gsber,                                                    
    hkont LIKE bseg-hkont,                                                    
    kunnr LIKE bseg-kunnr,                                                    
    bschl LIKE bseg-bschl,                                                    
    prctr LIKE bseg-prctr,                                                    
    kostl LIKE bseg-kostl,                                                    
    aufnr LIKE bseg-aufnr,                                                    
    pswsl LIKE bseg-pswsl,                                                    
    wrbtr LIKE bseg-wrbtr,                                                                               
    waers LIKE bkpf-waers,                                                 
    dmbtr LIKE bseg-dmbtr,                                                 
    xblnr LIKE bkpf-xblnr,                                                 
    txt50 LIKE skat-txt50,                                                 
    sgtxt LIKE bseg-sgtxt,                                                 
    shkzg LIKE bseg-shkzg,                                                 
    END OF it_res.                                                                               
    DATA : BEGIN OF itab_head OCCURS 0,                                     
           name1(20) TYPE c,                                                
           END OF itab_head.                                                
    SELECTION-SCREEN BEGIN OF BLOCK b_2 WITH FRAME TITLE text-002.          
    PARAMETERS : p_sel1 RADIOBUTTON GROUP sel,                              
                 p_sel2 RADIOBUTTON GROUP sel,                              
                 p_sel3 RADIOBUTTON GROUP sel.                              
    SELECTION-SCREEN END OF BLOCK b_2.                                      
    SELECTION-SCREEN SKIP 1.                                                
    SELECTION-SCREEN BEGIN OF BLOCK b_1 WITH FRAME TITLE text-001.          
    PARAMETER p_bukrs LIKE bkpf-bukrs DEFAULT 'ML' OBLIGATORY.              
    SELECT-OPTIONS : s_belnr FOR bkpf-belnr.                                
    SELECT-OPTIONS : s_gjahr FOR bkpf-gjahr OBLIGATORY.                     
    SELECT-OPTIONS : s_monat FOR bkpf-monat.                                
    SELECT-OPTIONS : s_blart FOR bkpf-blart.                                
    SELECT-OPTIONS : s_budat FOR bkpf-budat.                                
    SELECT-OPTIONS : s_waers FOR bkpf-waers.                                
    SELECT-OPTIONS : s_hkont FOR bseg-hkont.                                
    SELECT-OPTIONS : s_bldat FOR bkpf-bldat.                                
    SELECTION-SCREEN END OF BLOCK b_1.                                                                               
    SELECT bukrs belnr gjahr monat budat brnch xblnr waers                  
       INTO CORRESPONDING FIELDS OF TABLE it_bkpf                           
       FROM bkpf                                                            
       WHERE bukrs = p_bukrs                                                
       AND belnr IN s_belnr                                                 
       AND gjahr IN s_gjahr                                                 
       AND monat IN s_monat                                                 
       AND blart IN s_blart                                                 
       AND budat IN s_budat                                                 
       AND bldat IN s_bldat                                                 
       AND waers IN s_waers.                                                                               
    IF NOT it_bkpf[] IS INITIAL.                                            
      LOOP AT it_bkpf.                                                      
    IF p_sel1 = 'X'.                                                        
        SELECT gsber hkont kunnr sgtxt bschl wrbtr pswsl kostl shkzg        
                            dmbtr prctr aufnr augdt augbl                               
           INTO CORRESPONDING FIELDS OF TABLE it_bseg                       
           FROM bseg                                                        
           WHERE bukrs = it_bkpf-bukrs                                      
           AND belnr   = it_bkpf-belnr                                      
           AND gjahr   = it_bkpf-gjahr                                      
           AND pswsl   = it_bkpf-waers                                      
           AND hkont  IN s_hkont.                                           
    ELSEIF p_sel2 = 'X'.                                                    
        SELECT gsber hkont kunnr sgtxt bschl wrbtr pswsl kostl shkzg        
                dmbtr prctr aufnr augdt augbl                               
           INTO CORRESPONDING FIELDS OF TABLE it_bseg                       
           FROM bseg                                                        
           WHERE bukrs = it_bkpf-bukrs                                      
           AND belnr   = it_bkpf-belnr                                      
           AND gjahr   = it_bkpf-gjahr                                      
           AND pswsl   = it_bkpf-waers.                                    
          AND koart <> 'S'.                                              
    ENDIF.                                                                 
        IF sy-subrc EQ 0.                                                  
          LOOP AT it_bseg.                                                 
            SELECT SINGLE txt50 INTO it_res-txt50                          
                 FROM skat                                                 
                 WHERE spras = 'EN'                                        
                 AND   ktopl = 'PCA'                                       
                 AND   saknr = it_bseg-hkont.                                                                               
    it_res-bukrs = it_bkpf-bukrs.                                  
            it_res-gjahr = it_bkpf-gjahr.                                  
            it_res-monat = it_bkpf-monat.                                  
            it_res-gsber = it_bseg-gsber.                                  
            it_res-belnr = it_bkpf-belnr.                                  
            it_res-budat = it_bkpf-budat.                                  
            it_res-brnch = it_bkpf-brnch.                                  
            it_res-kunnr = it_bseg-kunnr.                                  
            it_res-hkont = it_bseg-hkont.                                  
            it_res-sgtxt = it_bseg-sgtxt.                                  
            it_res-bschl = it_bseg-bschl.                                  
            it_res-wrbtr = it_bseg-wrbtr.                                  
            it_res-pswsl = it_bseg-pswsl.                                  
            it_res-waers = it_bkpf-waers.                                  
            it_res-dmbtr = it_bseg-dmbtr.                                  
            it_res-kostl = it_bseg-kostl.                                  
            it_res-prctr = it_bseg-prctr.                                  
            it_res-aufnr = it_bseg-aufnr.                                  
            it_res-shkzg = it_bseg-shkzg.                                  
           it_res-augbl = it_bseg-augbl.                                 
            it_res-xblnr = it_bkpf-xblnr.                                  
            APPEND it_res.                                                 
            CLEAR it_res.                                                  
          ENDLOOP.                                                         
          CLEAR it_bkpf.                                                   
        ENDIF.                                                             
      ENDLOOP.                                                             
    ENDIF.                                                                 
    LOOP AT it_res.                                                        
      IF it_res-shkzg EQ 'H'.                                              
        it_res-wrbtr = it_res-wrbtr * -1.                                  
        it_res-dmbtr = it_res-dmbtr * -1.                                  
      ENDIF.                                                               
      WRITE : /2(4) it_res-bukrs,                                          
               13(4) it_res-gjahr,                                         
               21(2) it_res-monat,                                         
               31(10) it_res-belnr,                                        
               44(10) it_res-budat,                                        
               55(4) it_res-brnch,                                         
               60(4) it_res-gsber,                                          
               70(10) it_res-hkont,                                         
               82(10) it_res-kunnr,                                         
               94(2) it_res-bschl,                                          
               104(10) it_res-prctr,                                        
              116(10)  it_res-kostl,                                        
              128(12)  it_res-aufnr,                                        
              142(5)  it_res-pswsl,                                         
              148(13)  it_res-wrbtr,                                        
              164(5)  it_res-waers,                                         
              170(13)  it_res-dmbtr,                                        
             187(16)   it_res-xblnr,                                        
              205(50)  it_res-sgtxt.                                        
      MODIFY it_res.                                                        
      CLEAR it_res.                                                         
    ENDLOOP.                                                                
    plz give soltuion i am looking for it.
    i will aslo reward all ur precious effort.
    otherwise if anyone have any code on my reqirement then plz send it to me in my id- [email protected]
    thanks
    Message was edited by: sanjeev singh

    Hi
    You should a selection in BSIS and BSAS table instead of BKPF and BSEG:
    DATA : BEGIN OF it_res OCCURS 0,
    bukrs LIKE bkpf-bukrs,
    gjahr LIKE bkpf-gjahr,
    monat LIKE bkpf-monat,
    belnr LIKE bkpf-belnr,
    budat LIKE bkpf-budat,
    brnch LIKE bkpf-brnch,
    gsber LIKE bseg-gsber,
    hkont LIKE bseg-hkont,
    kunnr LIKE bseg-kunnr,
    bschl LIKE bseg-bschl,
    prctr LIKE bseg-prctr,
    kostl LIKE bseg-kostl,
    aufnr LIKE bseg-aufnr,
    pswsl LIKE bseg-pswsl,
    wrbtr LIKE bseg-wrbtr,
    waers LIKE bkpf-waers,
    dmbtr LIKE bseg-dmbtr,
    xblnr LIKE bkpf-xblnr,
    txt50 LIKE skat-txt50,
    sgtxt LIKE bseg-sgtxt,
    shkzg LIKE bseg-shkzg,
    END OF it_res.
    Open Item
    SELECT *
    INTO CORRESPONDING FIELDS OF TABLE it_res
    FROM <b>BSIS</b>
    WHERE bukrs = p_bukrs
    <b>AND HKONT IN S_HKONT</b>
    AND belnr IN s_belnr
    AND gjahr IN s_gjahr
    AND monat IN s_monat
    AND blart IN s_blart
    AND budat IN s_budat
    AND bldat IN s_bldat
    AND waers IN s_waers.
    Cleared Item
    SELECT *
    APPENDING CORRESPONDING FIELDS OF TABLE it_res
    FROM <b>BSAS</b>
    WHERE bukrs = p_bukrs
    <b>AND HKONT IN S_HKONT</b>
    AND belnr IN s_belnr
    AND gjahr IN s_gjahr
    AND monat IN s_monat
    AND blart IN s_blart
    AND budat IN s_budat
    AND bldat IN s_bldat
    AND waers IN s_waers.
    Max
    Message was edited by: max bianchi

  • Error code 2131 help needed

    i am trying to burn some cds but every time i do i get this error code2131
    i have upgraded the firmware as i have seen suggested i am at a loss any help would be graetly received ihave also run a diagnostic as follows.
    Microsoft Windows Vista Home Edition Service Pack 1 (Build 6001)
    System manufacturer System Product Name
    iTunes 7.7.1.11
    QuickTime 7.5
    CD Driver 2.0.7.3
    CD Driver DLL 2.1.1.1
    Apple Mobile Device 2.0.1.5
    Bonjour 1.0.4.12 (118.4)
    iTunes Serial Number 132E7497457D9919
    Current user is not an administrator.
    The current local date and time is 2008-09-07 09:47:20.
    iTunes is not running in safe mode.
    Video Display Information
    NVIDIA, NVIDIA GeForce 8600 GT
    ** External Plug-ins Information **
    No external plug-ins installed.
    ** CD/DVD Drive Tests **
    LowerFilters: PxHelp20 (2.0.0.0),
    UpperFilters: GEARAspiWDM (2.0.7.3),
    D: TSSTcorp CDDVDW SH-S203N, Rev SB02
    Audio CD in drive.
    Found 26 songs on CD, playing time 49:10 on Audio CD.
    Track 1, start time 00:02:00
    Track 2, start time 02:29:03
    Track 3, start time 04:23:25
    Track 4, start time 06:27:35
    Track 5, start time 07:31:12
    Track 6, start time 09:40:73
    Track 7, start time 10:20:04
    Track 8, start time 13:52:35
    Track 9, start time 16:47:33
    Track 10, start time 19:22:42
    Track 11, start time 21:32:60
    Track 12, start time 24:26:24
    Track 13, start time 26:13:14
    Track 14, start time 26:51:64
    Track 15, start time 29:01:19
    Track 16, start time 30:30:06
    Track 17, start time 32:45:70
    Track 18, start time 34:21:14
    Track 19, start time 36:05:28
    Track 20, start time 38:22:70
    Track 21, start time 39:47:37
    Track 22, start time 41:22:18
    Track 23, start time 42:03:07
    Track 24, start time 44:31:48
    Track 25, start time 45:47:40
    Track 26, start time 47:26:13
    Audio CD reading succeeded.
    Get drive speed succeeded.
    The drive CDR speeds are: 4 8 16 24 32 40 48.
    The drive CDRW speeds are: 4.
    The drive DVDR speeds are: 4.
    The drive DVDRW speeds are: 4.
    The last failed audio CD burn had error code 2131(0x00000853). It happened on drive D: TSSTcorp CDDVDW SH-S203N on CDR media at speed 0X.

    There has been an epidemic of 2131 burning errors associated with the TSST TS-L632* drive. And some manufactures have offered a firmware update or drive swap to fix the problem.
    I have not seen this issue come up your your model of drive although it is the same manufacturer.
    It would be worth checking your computer manufacturer's download site to see if there is a firmware update available for your drive.
    Otherwise I don't think I can help apart from contacting your computer supplier.
    Maybe someone else has some ideas.

  • Pleasantville Effect Tutorial Help Needed

    Here is the tutorial:
    http://www.lafcpug.org/tutorials/basicpleasantvillelook.html
    I'm fine until #9. My object I'm clicking is orange. Should the Limit Effect color bar (blue in the tutorial) slide to the orange color? I drag the saturation slider all the way to the left but everything goes black and white. Please help.

    This might help too:
    http://www.proapptips.com/proapptipsvideotutorials/879F6B61-CFF9-4FD1-8D43-FDF89 605611A/5FB37E30-CA68-42CF-9492-E8E89FAFE83F.html
    Good luck,
    CaptM

  • IDL tutorial help needed

    I'm trying to recreate the example within the hello world idl example:
    http://babbage.clarku.edu/java/docs/guide/idl/jidlExample2.html
    Everything seems to work fine up until the actual call to hello.sayHello() in the client, where I get a null pointer exception. I was able to load orbd but only if I set the -port flag to a port other than it's default. Do I need to indicate this in the call from the client? I started orbd like this:
    orbd -ORBInitialPort 11111 -port 1039
    Yes, I realize that I have also changed the ORBInitialPort from 1050 to 11111 and I have reflected that in the client. I just wasn't sure how to (or even if it was necessary to) indicate the activation port (indicated by -port).
    Josh

    Ok, I figured it out. I had played around with some of the files that were generated with idlj. I was initially trying to use idlj with an idltojava example, not realizing that I was trying to use the persistent output of idlj with a transient example. It works much better if you know what your doing :o)
    Josh

  • Tweak for sql query - help needed for smalll change

    Hi.
    I am trying to run a script that checks for used space on all tablespaces and returns the results.
    So far so good:
    set lines 200 pages 2000
    col tablespace_name heading 'Tablespace' format a30 truncate
    col total_maxspace_mb heading 'MB|Max Size' format 9G999G999
    col total_allocspace_mb heading 'MB|Allocated' format 9G999G999
    col used_space_mb heading 'MB|Used' format 9G999G999D99
    col free_space_mb heading 'MB|Free Till Max' like used_space_mb
    col free_space_ext_mb heading 'MB|Free Till Ext' like used_space_mb
    col pct_used heading '%|Used' format 999D99
    col pct_free heading '%|Free' like pct_used
    break on report
    compute sum label 'Total Size:' of total_maxspace_mb total_allocspace_mb used_space_mb - free_space_mb (used_space_mb/total_maxspace_mb)*100 on report
    select
    alloc.tablespace_name,
    (alloc.total_allocspace_mb - free.free_space_mb) used_space_mb,
    free.free_space_mb free_space_ext_mb,
    ((alloc.total_allocspace_mb - free.free_space_mb)/alloc.total_maxspace_mb)*100 pct_used,
    ((free.free_space_mb+(alloc.total_maxspace_mb-alloc.total_allocspace_mb))/alloc.total_maxspace_mb)*100 pct_free
    FROM (SELECT tablespace_name,
    ROUND(SUM(CASE WHEN maxbytes = 0 THEN bytes ELSE maxbytes END)/1048576) total_maxspace_mb,
    ROUND(SUM(bytes)/1048576) total_allocspace_mb
    FROM dba_data_files
    WHERE file_id NOT IN (SELECT FILE# FROM v$recover_file)
    GROUP BY tablespace_name) alloc,
    (SELECT tablespace_name,
    SUM(bytes)/1048576 free_space_mb
    FROM dba_free_space
    WHERE file_id NOT IN (SELECT FILE# FROM v$recover_file)
    GROUP BY tablespace_name) free
    WHERE alloc.tablespace_name = free.tablespace_name (+)
    ORDER BY pct_used DESC
    The above returns something like this:
    MB MB % %
    Tablespace Used Free Till Ext Used Free
    APPS_TS_ARCHIVE 1,993.13 54.88 97.32 2.68
    APPS_TS_TX_IDX 14,756.13 1,086.88 91.37 8.63
    APPS_TS_TX_DATA 20,525.75 594.25 80.18 19.82
    APPS_TS_MEDIA 6,092.00 180.00 74.37 25.63
    APPS_TS_INTERFACE 13,177.63 366.38 71.49 28.51
    The above works fine, but I would like to further change the query so that only those tablespaces with free space less than 5% (or used space more than 95%) are returned.
    I have been working on this all morning and wanted to open it up to the masters!
    I have tried using WHERE pct_used > 95 but to no avail.
    Any advice would be appreciated.
    Many thanks.
    10.2.0.4
    Linux Red Hat 4.

    Thanks for that.
    What is confusing is that the below query works for every other (about 10 others) database but not this one (?)
    SQL> set lines 200 pages 2000
    SQL>
    SQL> col tablespace_name heading 'Tablespace' format a30 truncate
    SQL> col total_maxspace_mb heading 'MB|Max Size' format 9G999G999
    SQL> col total_allocspace_mb heading 'MB|Allocated' format 9G999G999
    SQL> col used_space_mb heading 'MB|Used' format 9G999G999D99
    SQL> col free_space_mb heading 'MB|Free Till Max' like used_space_mb
    SQL> col free_space_ext_mb heading 'MB|Free Till Ext' like used_space_mb
    SQL> col pct_used heading '%|Used' format 999D99
    SQL> col pct_free heading '%|Free' like pct_used
    SQL>
    SQL> break on report
    SQL> compute sum label 'Total Size:' of total_maxspace_mb total_allocspace_mb used_space_mb - free_space_mb (used_space_mb/total_maxspace_mb)*100 on report
    SQL>
    SQL> select /*+ALL_ROWS */
    2 alloc.tablespace_name,
    3 alloc.total_maxspace_mb,
    4 alloc.total_allocspace_mb,
    5 (alloc.total_allocspace_mb - free.free_space_mb) used_space_mb,
    6 free.free_space_mb+(alloc.total_maxspace_mb-alloc.total_allocspace_mb) free_space_mb,
    7 free.free_space_mb free_space_ext_mb,
    8 ((alloc.total_allocspace_mb - free.free_space_mb)/alloc.total_maxspace_mb)*100 pct_used,
    9 ((free.free_space_mb+(alloc.total_maxspace_mb-alloc.total_allocspace_mb))/alloc.total_maxspace_mb)*100 pct_free
    10 FROM (SELECT tablespace_name,
    11 ROUND(SUM(CASE WHEN maxbytes = 0 THEN bytes ELSE maxbytes END)/1048576) total_maxspace_mb,
    12 ROUND(SUM(bytes)/1048576) total_allocspace_mb
    13 FROM dba_data_files
    14 WHERE file_id NOT IN (SELECT FILE# FROM v$recover_file)
    15 GROUP BY tablespace_name) alloc,
    16 (SELECT tablespace_name,
    17 SUM(bytes)/1048576 free_space_mb
    18 FROM dba_free_space
    19 WHERE file_id NOT IN (SELECT FILE# FROM v$recover_file)
    20 GROUP BY tablespace_name) free
    21 WHERE alloc.tablespace_name = free.tablespace_name (+)
    22 ORDER BY pct_used DESC
    23 /
    ((alloc.total_allocspace_mb - free.free_space_mb)/alloc.total_maxspace_mb)*100 pct_used,
    ERROR at line 8:
    ORA-01476: divisor is equal to zero

  • Help needed - ipad wont restore

    Hi all,
    Just tried to upgrade my old ipad with the new software and now it wont restore at all.. i keep getting a unknown error 2006.
    Any ideas how i can get around this plss.
    Jim

    Error 2000-2009 (2001, 2002, 2005, 2006, 2009, and so on)
    If you experience this issue on a Mac, disconnect third-party devices, hubs, spare cables, displays, reset the SMC, and then try to restore. If you are using a Windows computer, remove all USB devices and spare cables other than your keyboard, mouse, and the device, restart the computer, and try to restore. If that does not resolve the issue, try the USB issue-resolution steps and articles listed for Error 1604 above. If the issue persists, it may be related to conflicting security software.
    Look at this discussion that I found in the More Like This box on the right. You can try the recommendation in it as well.
    DFU Mode
    https://discussions.apple.com/message/11393568#11393568

Maybe you are looking for