Please help - 3 second animated buttons

Hey all,
I am using Flash CS3 to create a button for a site I am building in Dreamweaver CS4.
The button I am trying to create looks like a volume knob on a guitar amp. I need it to
start at zero and then "turn up to 10" over a period of 3 seconds when the user hovers over
it. It also needs to play a sound on mouse over.
I have created seperate images in photoshop for the knob pointing at each increment 1-10. I
added these to a new Flash doc on separate layers. However I cannot figure out how to get it
set in a button. I tried both the layers version and exporting it as a movie and creating a
movie button.
I have created simple buttons but not one that "plays a longer animation" like this.
Thanks for any help you can provide!

Thanks! I appreciate your patience with my lack of knowledge here.
So I created a new .fla file as AS3, inserted each image into a frame and applied the stop() command to the first frame:
I then saved it as a Movie (.swf)
Is that correct?
Next steps...Do I then take that exported movie and insert it into a new layer in the original .FLA file and apply the action you outlined in your post?
Thanks again for your help and patience!!!!

Similar Messages

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

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

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

  • Please help with next/previous buttons.

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

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

  • Please help! my menu button stopped working =

    i just bought an imove speaker for my ipod mini and everything was going great until i disconnected my ipod from it...now my menu button doesnt work! its stuck on shuffle songs and i cant reach my playlists or any other features anymore....essentially it has become an ipod shuffle...please please plaese help...why isn't my menu button functioning anymore? thanks so much for any help!!
    ipod mini    

    okay so i see theres a lot of cases of freezing...guess that could be it....ill try resetting it after work...hope thats it...thanks anyway....

  • Please help with aligning google button

    hi this is my website i have made,
    after making a few changes i have messed something up and now the google+ button has moved over to the right to much?
    i need to know how i can get the button to place above the facebook and twitter buttons where it was to begin with.
    www.uniquelawns.com
    many thanks Dave

    Run your page through the validator here and clean out the errors (except the two specific to the google code)
    http://validator.w3.org/
    That should make realigning an easier task.

  • Please help me make Encore button layers in Photoshop

    I modified a library menu from Encore in CS4 but my button layers are off kilter so that the selected and activate layers just look like jumbled text.  I made my buttons from text of the material they link too, so the layer two and three text looks offset and murky. I'd like to have the actual text change color for the select and activate layer. I envision a color scheme from the US flag. Normal state is red, selected blue and activate white. I can't figure out how to do this. One thought I had was that perhaps the text needs to be changed to a smart object and then it can be set up. But the color palette in Encore is confusing to me. Anyone able to provide me an instruction list to do this?

    Thanks Bill:
    I have navigated to your article (web page I saw did not have the images) and already attempted to create my menu following the isntructons. I backed off because I have a bigger edit issue. I have a sequence with a decode mpeg error with video drop out and loss of sync that I have now asked a question for on the Premiere forum. This is not a screen shot of my layers with your transparencies but the one that corresponds  my menu above.
    It differs from the menu of my prior project referenced above in that my text layer is at 100% opacity as you can see.
    My prior menu with effects on the text layer has about 73% opacity and 40% opacity in the fill. You can see how it works from the normal to the selected state.
    When I imported my Cuba menu into Encore and viewed the selected and activated states the whole thing became a mess. I think my solution to make a simple change in the states as I did in the first menu is to open the color dialog in Encore and select the best color to make a workable change as to a good blue as I can get. I'll do some color research to see if that can even work.
    I wish i could see the images of how your transparency process came out. I may run out of time to use it here because I have to solve the sync problem and get this overdue project delivered, but I will try it later.

  • PLEASE HELP!  Text animation question.

    Hi,
    This might be a dumb question, but it's really stumping me.  I want to animate a title using some of the text animation presets, but I can't seem to apply an animation that makes the text appear AND an animation that makes the text disappear.  I can do one or the other, but not both.
    For example, I want my title's text to appear with "FocusIn", and I want it to disappear with "DropOutByCharacter."  How do I do this?!  I've searched everywhere and wasted an entire day trying to figure this out!
    Thanks.
    - epompa03

    Along with Steve's tip on doing two Titles (probably the easiest way to handle this), would be to use Keyframed Effects to create your animation. Since Drop Out By Character, is the harder one to do by hand, I'd just add a Blur to the Title, and Keyframe it to start out heavily Blurred (maybe even with a lowered Opacity, also Keyframed) and then Keyframe the Blur out, where you wish to have the Title sharp. Then, add the Drop Out By Character.
    The beauty of Keyframing the various Effects is that you can control many at one time on a single Clip. However, the concept is not the easiest to initially grasp. Once you do, you'll likely use Keyframes in lieu of most packaged animation Effects.
    Steve has a good series of articles on Keyframing on the Muvipix site. Do not recall if they are in the "free" section, or not. Since there is a ton of great material, articles, tutorials and also Assets, like Motion Footage and Menus there, a subscription often pays for itself in one day of downloading.
    Good luck,
    Hunt

  • Please Help with moving animation

    Hey, im having trouble figuring out this technique.. where say for instance someone is running past a pole and once they cross the other side a word appears as they run by.
    And when you use a tree and move it across the screen as a transition.
    What should i search to learn these?

    You will also find links to many
    free tutorials in the PremiereProPedia that will quickly show you how things are done in Premiere Pro.
    Cheers
    Eddie
    PremiereProPedia   (
    RSS feed)
    - Over 300 frequently answered questions
    - Over 250 free tutorials
    - Maintained by editors like
    you
    Forum FAQ

  • Since yesterday, when I push the play button, that automatically  activates the pause putton. Result : I cannot watch nor listen anithing. Please help me ¡

    since yesterday, whwn I push the play button, that automatically activates the pause button. Please  help me¡

    The play button in which App?
    Have you tried restarting or resetting your iPad?
    Restart iPad: Press and hold the Sleep/Wake button until the red slider appears. Slide your finger across the slider to turn off iPad. To turn iPad back on, press and hold the Sleep/Wake until the Apple logo appears.
    Reset iPad: Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Ignore the "Slide to power off".

  • In the Itunes Wishlist there is no price button that you can psuh to buy the items. So I cant buy my whole wishlist without doing it all seperatly and I dont know the total price of all the items. Please help!

    In the Itunes Wishlist there is no price button that you can push to buy the items. So I cant buy my whole wishlist without doing it all seperatly and I dont know the total price of all the items. Please help!

    Both the button and the total cost appear to have been removed in the current version of iTunes - I don't have them either and other people have posted about it as well. You can try leaving feedback for Apple and maybe they'll be added back in a future update : http://www.apple.com/feedback/itunesapp.html

  • Please Help - Need Help with Buttons for GUI for assignment. URGENT!!

    Can someone please help me with the buttons on this program? I cannot figure out how to get them to work.
    Thanks!!!
    import java.awt.*;
    import java.awt.event.*;
    import java.text.NumberFormat;
    import javax.swing.*;
    import javax.swing.JButton;
    public class InventoryTAH implements ActionListener
        Maker[] proMaker;
        JTextField[] fields;
        NumberFormat nf;
        public void actionPerformed(ActionEvent e)
            int index = ((JComboBox)e.getSource()).getSelectedIndex();
            populateFields(index);
        public static void main(String[] args)
            try
                UIManager.setLookAndFeel(
                        "com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
            catch (Exception e)
                System.err.println(e.getClass().getName() + ": " + e.getMessage());
            InventoryTAH test = new InventoryTAH();
            test.initMakers();
            test.showGUI();
            test.populateFields(0);
        private void initMakers() {
            proMaker = new Maker[10];
            proMaker[0] = new Maker( 1, "Pens",1.59,100,"Bic");
            proMaker[1] = new Maker( 2, "Pencils", .65, 100,"Mead");
            proMaker[2] = new Maker( 3, "Markers", 1.29, 100,"Sharpie");
            proMaker[3] = new Maker( 4, "Paperclips", 1.19, 100,"Staples");
            proMaker[4] = new Maker( 5, "Glue", .85, 100,"Elmer's");
            proMaker[5] = new Maker( 6, "Tape", .50, 100,"3m");
            proMaker[6] = new Maker( 7, "Paper", 1.85, 100,"Mead");
            proMaker[7] = new Maker( 8, "Stapler", 2.21, 100,"Swingline");
            proMaker[8] = new Maker( 9, "Folders", .50, 100,"Mead");
            proMaker[9] = new Maker( 10, "Rulers", .27, 100,"Stanley");      
          int maxNum = 10;
          int currentNum = 0;
          int currentInv = 0;
             Action firstAction = new AbstractAction("First")
              public void actionPerformed(ActionEvent evt)
                   currentInv = 0;
                   int populateFields;
          JButton firstButton = new JButton(firstAction);
          Action previousAction = new AbstractAction("Previous")
              public void actionPerformed(ActionEvent evt)
                   currentInv--;
                   if (currentInv < 0)
                        currentInv = maxNum - 1;
                   int populateFields;
          JButton previousButton = new JButton(previousAction);
          Action nextAction  = new AbstractAction("Next")
              public void actionPerformed(ActionEvent evt)
                   currentInv++;
                   if (currentInv >= currentNum)
                        currentInv = 0;
                  int populateFields;
          JButton nextButton = new JButton(nextAction);
          Action lastAction = new AbstractAction("Last")
              public void actionPerformed(ActionEvent evt)
                   currentInv = currentNum - 1;
                   int populateFields;
          JButton lastButton = new JButton(lastAction);
              JPanel buttonPanel = new JPanel( );
        private void showGUI() {
            JLabel l;
            JButton button1;
                JButton button2;
            fields = new JTextField[8];
            JFrame f = new JFrame("Inventory");
            Container cp = f.getContentPane();
            cp.setLayout(new GridBagLayout());
            cp.setBackground(UIManager.getColor(Color.BLACK));
            GridBagConstraints c = new GridBagConstraints();
            c.gridx = 0;
            c.gridy = GridBagConstraints.RELATIVE;
            c.gridwidth = 1;
            c.gridheight = 1;
            c.insets = new Insets(2, 2, 2, 2);
            c.anchor = GridBagConstraints.EAST;
            cp.add(l = new JLabel("Item Number:", SwingConstants.CENTER), c);
            l.setDisplayedMnemonic('a');
            cp.add(l = new JLabel("Item Name:", SwingConstants.CENTER), c);
            l.setDisplayedMnemonic('b');
            cp.add(l = new JLabel("Number of Units in Stock:", SwingConstants.CENTER), c);
            l.setDisplayedMnemonic('c');
            cp.add(l = new JLabel("Price per Unit: $", SwingConstants.CENTER), c);
            l.setDisplayedMnemonic('d');
            cp.add(l = new JLabel("Total cost of Item: $", SwingConstants.CENTER), c);
            l.setDisplayedMnemonic('e');
            cp.add(l = new JLabel("Total Value of Merchandise in Inventory: $", SwingConstants.CENTER), c);
            l.setDisplayedMnemonic('f');
            cp.add(l = new JLabel("Manufacturer:", SwingConstants.CENTER), c);
            l.setDisplayedMnemonic('g');
            cp.add(l = new JLabel("Restocking Fee: $", SwingConstants.CENTER), c);
            l.setDisplayedMnemonic('h');
                c.gridx = 1;
            c.gridy = 0;
            c.weightx = 1.0;
            c.fill = GridBagConstraints.HORIZONTAL;
            c.anchor = GridBagConstraints.CENTER;
            cp.add(fields[0] = new JTextField(), c);
            fields[0].setFocusAccelerator('a');
            c.gridx = 1;
            c.gridy = GridBagConstraints.RELATIVE;
            cp.add(fields[1] = new JTextField(), c);
            fields[1].setFocusAccelerator('b');
            cp.add(fields[2] = new JTextField(), c);
            fields[2].setFocusAccelerator('c');
            cp.add(fields[3] = new JTextField(), c);
            fields[3].setFocusAccelerator('d');
            cp.add(fields[4] = new JTextField(), c);
            fields[4].setFocusAccelerator('e');
            cp.add(fields[5] = new JTextField(), c);
            fields[5].setFocusAccelerator('f');
            cp.add(fields[6] = new JTextField(), c);
            fields[6].setFocusAccelerator('g');
            cp.add(fields[7] = new JTextField(), c);
            fields[7].setFocusAccelerator('h');
            c.weightx = 0.0;
            c.fill = GridBagConstraints.NONE;
              cp.add(firstButton);
              cp.add(previousButton);
              cp.add(nextButton);
              cp.add(lastButton);
                          JComboBox combo = new JComboBox();
            for(int j = 0; j < proMaker.length; j++)
                combo.addItem(proMaker[j].getName());
            combo.addActionListener(this);
                cp.add(combo);
                cp.add(button1 = new JButton("   "), c);
            f.pack();
            f.addWindowListener(new WindowAdapter()
                public void windowClosing(WindowEvent evt)
                    System.exit(0);
            f.setVisible(true);
      private void populateFields(int index) {
            Maker maker = proMaker[index];
            fields[0].setText(Long.toString(maker.getNumberCode()));
            fields[1].setText(maker.getName());
            fields[2].setText(Long.toString(maker.getUnits()));
            fields[3].setText(Double.toString(maker.getPrice()));
            fields[4].setText(Double.toString(maker.getSum()));
            fields[5].setText(Double.toString(maker.totalAllInventory(proMaker)));
            fields[6].setText(maker.getManufact());
            fields[7].setText(Double.toString(maker.getSum()*.05));       
    class Maker {
        int itemNumber;
        String name;
        int units;
        double price;
        String manufacturer;
        public Maker(int n, String name, double price, int units, String manufac) {
            itemNumber = n;
            this.name = name;
            this.price = price;
            this.units = units;
            manufacturer = manufac;
        public int getNumberCode() { return itemNumber; }
        public String getName() { return name; }
        public int getUnits() { return units; }
        public double getPrice() { return price; }
        public double getSum() { return units*price; }
        public String getManufact() { return manufacturer; }
        public double totalAllInventory(Maker[] makers) {
            double total = 0;
            for(int j = 0; j < makers.length; j++)
                total += makers[j].getSum();
            return total;
    }}

    // I have made some modifications. Please try this.
    import java.awt.*;
    import java.awt.event.*;
    import java.text.NumberFormat;
    import javax.swing.*;
    import javax.swing.JButton;
    public class InventoryTAH implements ActionListener
    Maker[] proMaker;
    JTextField[] fields;
    NumberFormat nf;
    int currentInv = 0;
    public void actionPerformed(ActionEvent e)
    currentInv= ((JComboBox)e.getSource()).getSelectedIndex();
    populateFields(currentInv);
    public static void main(String[] args)
    try
    UIManager.setLookAndFeel(
    "com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
    catch (Exception e)
    System.err.println(e.getClass().getName() + ": " + e.getMessage());
    InventoryTAH test = new InventoryTAH();
    test.initMakers();
    test.showGUI();
    test.populateFields(0);
    private void initMakers() {
    proMaker = new Maker[10];
    proMaker[0] = new Maker( 1, "Pens",1.59,100,"Bic");
    proMaker[1] = new Maker( 2, "Pencils", .65, 100,"Mead");
    proMaker[2] = new Maker( 3, "Markers", 1.29, 100,"Sharpie");
    proMaker[3] = new Maker( 4, "Paperclips", 1.19, 100,"Staples");
    proMaker[4] = new Maker( 5, "Glue", .85, 100,"Elmer's");
    proMaker[5] = new Maker( 6, "Tape", .50, 100,"3m");
    proMaker[6] = new Maker( 7, "Paper", 1.85, 100,"Mead");
    proMaker[7] = new Maker( 8, "Stapler", 2.21, 100,"Swingline");
    proMaker[8] = new Maker( 9, "Folders", .50, 100,"Mead");
    proMaker[9] = new Maker( 10, "Rulers", .27, 100,"Stanley");
         int maxNum = 10;
         int currentNum = 0;
    Action firstAction = new AbstractAction("First")
              public void actionPerformed(ActionEvent evt)
                   currentInv = 0;
                   populateFields(currentInv);
         JButton firstButton = new JButton(firstAction);
         Action previousAction = new AbstractAction("Previous")
              public void actionPerformed(ActionEvent evt)
                   currentInv--;
                   if (currentInv < 0)
                        currentInv = maxNum - 1;
                   populateFields(currentInv);
         JButton previousButton = new JButton(previousAction);
         Action nextAction = new AbstractAction("Next")
              public void actionPerformed(ActionEvent evt)
                   currentInv++;
                   if (currentInv >= maxNum)
                        currentInv = 0;
              populateFields(currentInv);
         JButton nextButton = new JButton(nextAction);
         Action lastAction = new AbstractAction("Last")
              public void actionPerformed(ActionEvent evt)
                   currentInv = maxNum-1;
                   populateFields(currentInv);
         JButton lastButton = new JButton(lastAction);
              JPanel buttonPanel = new JPanel( );
    private void showGUI() {
    JLabel l;
    JButton button1;
              JButton button2;
    fields = new JTextField[8];
    JFrame f = new JFrame("Inventory");
    Container cp = f.getContentPane();
    cp.setLayout(new GridBagLayout());
    cp.setBackground(UIManager.getColor(Color.BLACK));
    GridBagConstraints c = new GridBagConstraints();
    c.gridx = 0;
    c.gridy = GridBagConstraints.RELATIVE;
    c.gridwidth = 1;
    c.gridheight = 1;
    c.insets = new Insets(2, 2, 2, 2);
    c.anchor = GridBagConstraints.EAST;
    cp.add(l = new JLabel("Item Number:", SwingConstants.CENTER), c);
    l.setDisplayedMnemonic('a');
    cp.add(l = new JLabel("Item Name:", SwingConstants.CENTER), c);
    l.setDisplayedMnemonic('b');
    cp.add(l = new JLabel("Number of Units in Stock:", SwingConstants.CENTER), c);
    l.setDisplayedMnemonic('c');
    cp.add(l = new JLabel("Price per Unit: $", SwingConstants.CENTER), c);
    l.setDisplayedMnemonic('d');
    cp.add(l = new JLabel("Total cost of Item: $", SwingConstants.CENTER), c);
    l.setDisplayedMnemonic('e');
    cp.add(l = new JLabel("Total Value of Merchandise in Inventory: $", SwingConstants.CENTER), c);
    l.setDisplayedMnemonic('f');
    cp.add(l = new JLabel("Manufacturer:", SwingConstants.CENTER), c);
    l.setDisplayedMnemonic('g');
    cp.add(l = new JLabel("Restocking Fee: $", SwingConstants.CENTER), c);
    l.setDisplayedMnemonic('h');
              c.gridx = 1;
    c.gridy = 0;
    c.weightx = 1.0;
    c.fill = GridBagConstraints.HORIZONTAL;
    c.anchor = GridBagConstraints.CENTER;
    cp.add(fields[0] = new JTextField(), c);
    fields[0].setFocusAccelerator('a');
    c.gridx = 1;
    c.gridy = GridBagConstraints.RELATIVE;
    cp.add(fields[1] = new JTextField(), c);
    fields[1].setFocusAccelerator('b');
    cp.add(fields[2] = new JTextField(), c);
    fields[2].setFocusAccelerator('c');
    cp.add(fields[3] = new JTextField(), c);
    fields[3].setFocusAccelerator('d');
    cp.add(fields[4] = new JTextField(), c);
    fields[4].setFocusAccelerator('e');
    cp.add(fields[5] = new JTextField(), c);
    fields[5].setFocusAccelerator('f');
    cp.add(fields[6] = new JTextField(), c);
    fields[6].setFocusAccelerator('g');
    cp.add(fields[7] = new JTextField(), c);
    fields[7].setFocusAccelerator('h');
    c.weightx = 0.0;
    c.fill = GridBagConstraints.NONE;
              cp.add(firstButton);
              cp.add(previousButton);
              cp.add(nextButton);
              cp.add(lastButton);
                        JComboBox combo = new JComboBox();
    for(int j = 0; j < proMaker.length; j++)
    combo.addItem(proMaker[j].getName());
    combo.addActionListener(this);
              cp.add(combo);
              cp.add(button1 = new JButton(" "), c);
    f.pack();
    f.addWindowListener(new WindowAdapter()
    public void windowClosing(WindowEvent evt)
    System.exit(0);
    f.setVisible(true);
    private void populateFields(int index) {
    Maker maker = proMaker[index];
    fields[0].setText(Long.toString(maker.getNumberCode()));
    fields[1].setText(maker.getName());
    fields[2].setText(Long.toString(maker.getUnits()));
    fields[3].setText(Double.toString(maker.getPrice()));
    fields[4].setText(Double.toString(maker.getSum()));
    fields[5].setText(Double.toString(maker.totalAllInventory(proMaker)));
    fields[6].setText(maker.getManufact());
    fields[7].setText(Double.toString(maker.getSum()*.05));
    class Maker {
    int itemNumber;
    String name;
    int units;
    double price;
    String manufacturer;
    public Maker(int n, String name, double price, int units, String manufac) {
    itemNumber = n;
    this.name = name;
    this.price = price;
    this.units = units;
    manufacturer = manufac;
    public int getNumberCode() { return itemNumber; }
    public String getName() { return name; }
    public int getUnits() { return units; }
    public double getPrice() { return price; }
    public double getSum() { return units*price; }
    public String getManufact() { return manufacturer; }
    public double totalAllInventory(Maker[] makers) {
    double total = 0;
    for(int j = 0; j < makers.length; j++)
    total += makers[j].getSum();
    return total;
    }}

  • I Got My Fourth Generation iPod touch Since 1year and a half, And My Home Button doesn't work anymore and when i'm on an app it bugs and goes to the menu. Is It Normal? Please Help me ASAP

    I Got My Fourth Generation iPod touch Since 1year and a half, And My Home Button doesn't work anymore and when i'm on an app it bugs and goes to the menu. Is It Normal? Please Help me ASAP

    The Home button "wears out" sometimes
    Try:
    fix for Home button
    iPhone Home Button Not Working or Unresponsive? Try This Fix
    - If you have iOS 5 and later you can turn on Assistive Touch it add the Home and other buttons to the iPods screen. Settings>General>Accessibility>Assistive Touch
    - If not under warranty Apple will exchange your iPod for a refurbished one for:
    Apple - Support - iPod - Repair pricing
    You can do it an an Apple store by:
    Apple Retail Store - Genius Bar
    or sent it in to Apple. See:
    Apple - Support - iPod - Service FAQ
    - There are third-party places like the following that will repair the Home button. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens

  • New at Flash, please help! Sound On/Off Button

    I'm trying to create a button that when clicked once, it plays music, and when clicked again, it stops. I don't need the button image to change at all, I just need a simple start/stop.
    I've been able to make the button start the music when clicked but I've not been successful in making it stop.
    I am using CS4, and have no scripting experience.
    This is for a graphic arts assignment so please help!

    drag your button to the stage and assign it an instance name (eg, btn).  you can then use:
    var sound:MP3=new MP3();
    var sc:SoundChannel = sound.play();
    btn.addEventListener(MouseEvent.CLICK,f);
    function f(e:MouseEvent):void{
    if(sc){
    sc.stop();
    sc=null;
    } else {
    sc=sound.play();

  • Missing Podcasts...PLEASE HELP!

    Lately I have been noticing that in iTunes my Podcasts have not been updating. However, when I go to the individual pages for each Podcasts it shows DOZENS of new Podcasts available. Why am I no longer getting updated on new Podcasts? Also, on the rare occasions that new Podcasts HAVE shown up on iTunes there is only a title and description but no link to download. PLEASE HELP!    

    If the button to download is missing, try a Repair of iTunes.
    This is done by downloading iTunes again (do not uninstall your current iTunes), and then running the install. At some stage you should see a message asking if you wish to Repair iTunes. Use that.
    That should sort out the missing buttons. Perhaps it will sort out the lack of automatic downloads, but check the Podcast Settings to make sure that iTunes is still set to download new episodes of Podcasts you are subscribed to.

  • My 4th generation ipod touch is not turning off when i hold the wake button for few seconds the Voice Control Function Starts Automatically.Please help me to get out of this problem.

    My 4th generation ipod touch is not turning off when i hold the wake button for few seconds the Voice Control Function Starts Automatically.Please help me to get out of this problem.

    Sorry i mistakenly made this question. It was alright. No Problem At ALL

Maybe you are looking for

  • Missing images in web gallery- strange lines??

    When I make a web gallery and publish to .mac a couple of images appear to be missing or are cropped.. its really odd.. everything looks fine in the preview. Also I sometimes get these really strange thin lines through my images.. I usually dont noti

  • Process chain issue in production server

    hAI I created the process chain to load the transaction data . Then i transported to Quality and Production server. 1) When i try to open the my process chain in RSPC in Production System. Then im not getting the process chain . But im getting black

  • Lightroom 3.2 - Using subst to a local drive fails

    I recently installed Windows 7 64bit on a spare drive and started playing around with LR to see if there were any changes in performance between Win7 and XP. My current configuration on XP x64 uses subst to map a directory on my "D" drive to the "P"

  • Music Album Art

    Hi, I have a new ipod touch 4th generation. And having problem's downloading my music from Windows Player, which I had already arranged my albums with titles and correct album art. But when they downloaded on to the ipod the albums are split into sin

  • End of life for 8.0.5

    Does anyone know if and when there is 'end-of-life' for version 8.0.5 on HPUx? I need to educate myself and my client?