Buttons don't work if united into MovieClip

I have an animated image collage with 10+ images. It is brought in into the main stage as a united mc. Each image has to act as a button which links to a labeled section in the flash file.
I understand that I can not write AS3 on the main stage as I am unable to specify the instance name for each button since they all are brought as a united mc and only that mc is available as an instance.
So I go inside the mc to the level where I can select each button, give the button an instance name and then put the following code on the AS3 layer inside the mc level where all the images/buttons are assembled as a collage:
my_btn1.addEventListener(MouseEvent.CLICK,my_btn1_Down);
my_btn1_Down(event:MouseEvent): void {
MovieClip(parent.parent.parent.parent.parent.parent.parent.parent.parent.parent).gotoAndPl ay("icysophistication");
I started with just one parent and kept on adding them up to see if it will change the result, but unfortunately all the same "Error #1009: Cannot access a property or method of a null object reference."
you can view the site at www.888acolyte.com
It is still under the development and will take a min to load then wait for the image collage to appear. Those images are the ones which i would like to make into buttons.

There should be nothing preventing you from having the code on the main timeline.  You just need to target the buttons thru the mc instance name...
your_mc.my_btn1.addEventListener(MouseEvent.CLICK,my_btn1_Down);
function my_btn1_Down(event:MouseEvent): void {
    this.gotoAndPlay("icysophistication");
And if you name your buttons to match the frame labels, you can have all the buttons share the same event handler function...
your_mc.icysophistication.addEventListener(MouseEvent.CLICK, btnClick);
your_mc.spicysophistication.addEventListener(MouseEvent.CLICK, btnClick);
etc....
function btnClick(event:MouseEvent): void {
    this.gotoAndPlay(evt.currentTarget.name);

Similar Messages

  • Every time I plug in my headphones into my Macbook Pro, my volume control buttons don't work.

    Every time I plug in my headphones into my Macbook Pro, my volume control buttons don't work. Even after I unplug my headphones they don't work, they get stuck on the level of volume it was at when I plugged in the headphones. I can control the volume if I go to system preferences and do it that way, but that is such a pain. Also, in order to get the buttons to work again I have to completely restart my computer which is also a pain! What should I do, or can do, to fix the problem?

    If you have have  lion system, herebis a digital/analong output, youmcan a tooth/Qip with the the tip cut off you can  you can stirrted s very gently to the input/put is a digital/along output devivce\\\\\\\\\\\\\
    The dual input/digital input
    a annaolg/digidal, an toothpick/Qtip with the cutit off gentely wiggle  the the the input/put should then looen the the right the, should loosen the sticky switch to the lne.

  • Rotating Menu - Buttons don't work inside MC's

    Hello,
    This is my first post here and it would be great if I could
    have your help to solve this little problem:
    Flash CS3 | AS2 | Rotating Menu
    I'm creating a small animation in which I have a clock-like
    rotative menu.
    I found the code for this in the internet and made some few
    adjustments (mainly just took somethings I didn't needed out)
    In my file I have 6 circles that are all movieclips that make
    part of a circular menu that rotates everytime you click on one of
    the circles. Those movieclips are not on the stage, only on the
    library, and are being "pulled" into action by the actionscript.
    I need those movieclips to act as menu buttons, so I made a
    button inside each one of them.
    The problem is that the buttons don't work. They don't do
    what they are suppose to (load another movieclip). The solution
    must be quite simple because it doesn't make sense not to work, but
    I'm unable to get it...
    In the original file they worked as buttons that linked to an
    URL but I removed that because I didn't need it. Just need them to
    act as normal buttons and play another MC...
    Do you have any idea why this happens?
    Does it have anything to do with the fact that the circle
    movieclips that contain the buttons are not actually on the stage?!
    The code I'm using in the buttons is rather simple:
    on(release){
    movie1.play();
    I would appreciate your help on this!
    Thank you,

    Hi Odisey2,
    I appreciate the time you took to try to help me!
    I only have 1 frame in my stage, and its the one that
    contains the actioscript code.
    I also have on stage the MC i'm trying to make the button
    play. The first frame of that MC is empty and has a stop, so that
    its not visible at first.
    Then I wanted that when you click the button (the onde that
    is inside the MCs that are being "pulled" by the code I sampled) it
    would play that MC on stage.
    The code I'm using in the burron is pretty simple:
    on(release){
    movie1.play();
    I've tried to put "_root" before, like this: "_root.movie1"
    but it doesn't work as well.
    Any other idea?
    Do you think it has anything to do with the fact that the
    circle movieclips that contain the buttons are not actually on the
    stage?!
    Thanks,

  • Flash buttons don't work

    I created my template in Dreamweaver and 9 other pages from
    the template. Now I inserted flash buttons in the original template
    and linked them to all other pages. Buttons work in the original
    template but not in any of other pages, even though I updated the
    pages with all the changes. What am I doing wrong??? I am losing my
    mind here.
    Any help appreciated.
    Thanks!

    Flash buttons don't work in any real sense of the word,
    anyhow. Why are you
    using them?
    If you want to use Flash for navigation, consider this -
    1. Some people don't have Flash installed - what do they do?
    2. Search engines don't parse Flash links - your site will
    not be spidered
    3. Screen assistive devices don't parse Flash links - what
    will those users
    do?
    4. DW cannot maintain links within a Flash movie, so if you
    move or rename
    a linked file, your navigation will break - what will you do?
    It's usually a very bad idea for these reasons...
    This problem is due to the fact that you are placing the
    buttons into a
    Template file. In this case, and assuming you want to inherit
    all the
    problems, make the links to the buttons ROOT RELATIVE.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "zxh5079" <[email protected]> wrote in
    message
    news:ga1gp6$qos$[email protected]..
    >I created my template in Dreamweaver and 9 other pages
    from the template.
    >Now I
    > inserted flash buttons in the original template and
    linked them to all
    > other
    > pages. Buttons work in the original template but not in
    any of other
    > pages,
    > even though I updated the pages with all the changes.
    What am I doing
    > wrong???
    > I am losing my mind here.
    > Any help appreciated.
    >
    > Thanks!
    >

  • IPad 2 Rotation, Sleep, and Volume Buttons Don't Work.

    I have an iPad 2 running 7.1.1 (11D201) and just yesterday the sleep sleep and volume buttons don't work, and the screen won't rotate at all.  I have already tried the following:
    Switched the Lock Rotation/Mute settings in General
    Power cycling it
    Held the sleep and menu button to reset it (the button worked for that at least)
    Done a network reset
    Reset All Settings and restored from backup
    Reset All Settings and restored from iCloud
    Erase All Content and Settings and restored from backup
    Erase All Content and Settings and restored from iCloud
    If anyone has any OTHER suggestions besides what I've already tried, I am all ears.  Thanks.

    Go into Recovery Mode per the instructions here.  You WILL lose all of your data (game scores, etc,) but, for the most part, you can redownload apps and music without be charged again.  Also, if you have IOS-7, read this.

  • Clean Install of Windows 8 & Some buttons Don't Work

    I bought this PC with dead Hard Drive. I installed new Drive and Windows 8 from USB.It only installed as 32bit OS and I know it should have been 64bit. Has 4Gb memory installed.Property screen shows:  4.00GB (2.97GB usable)(32bit OS, x64 Processor).   Some of my buttons Don't Work nor does my Microphone. I have tried verifying all drivers but none fix buttons. No errors listed in Device Manager. Any help is Appreciated.

    Wow that is so a "Canned" response. Can't install Windows7 on a system that never had 7. This unit was made originally for Vista. And even those do not have drivers I could use. Now if there were device manufacturer information you could give me about my unit then maybe I can get the buttons to work. The most important is the Microphone and Volume/mute buttons that need to work then you could help me.The Dell site will give you an exact biuld list when serial or Tag number is provided which help Identify device manufacturer so user can goto their site to get generic drivers to work with their Dell PC regardless of what version of OS is currently installed.So if you can really help here is the PC Info»HP TouchSmart IQ524 Desktop PC
    Serial Number:   3CR9240GJN
    Product Number:   NC701AA  

  • Buttons don't work unplugged, work plugged in

    I am asking this question because I'm sure there's a way to fix it, but my iPod mini recently got a bit wet, and so I left it a few days and restored it and everything, but now if it is plugged into my computer and I eject it from iTunes, but leave it plugged in all of the buttons work the way they are supposed to and the iPod works (plays music, wheel works, etc), but as soon as I pull the connector out of the iPod the buttons don't work as if I put the "Hold" button on. Music continues to play, but I cannot do anything. If anybody knows a solution please reply.

    You don't say how long ago it was in the steamy room.
    If it was just recently, then I'd try shutting down the MacBook, then putting it in a warm, DRY environment for a week in the hope that any condensation is evaporated away.  I'd keep the MacBook open to encourage drying. Don't be tempted to keep trying it during this process. Just be patient.  However, changing its orientation every day might speed up the drying process.
    It's possible that condensation might be shorting out part of the circuitry.  If this is a case then there might be permanent damage to the electronic components, but there's a good chance things might recover once it's dried out.
    If it hasn't recovered after a week then I think your only option is to take it to a repairer.
    Good luck
    Bob

  • I just opened my new earphones and the volume buttons don't work! Help

    I just used my iPhone 5s earphones the first time yesterday and the volume buttons don't work. I tried unplugging them and then plugging them in again and they still don't work. Also when I plug in any kind of earphones in my phone it doesn't completely go in, is that supposed to happen?

    Never mind, I found out why it didn't work. Since my phone and earphones were new the earphones didn't plug in well. So when I plugged it into my mac it went all the way in and the buttons worked. When I plugged it back in my phone it went al the way in this time and the buttons worked.

  • "Archive" and "View" buttons don't work after folio update

    Hi all,
    I have a subscription to the professional edition and I have built a custom viewer app for Android. I have built about 10 folios and at first download all is ok, the folios are displayed without problems and the app works fine except for one issue: "Archive" button don't work, when I tap on it, near folio cover, nothing happens, the folio does not disappear from folios list.
    But the serious problem occurs when I perform a folio update from Folio Producer ('Update content' from adobe dashboard DPS): both "Archive" and "View" buttons stop working, nothig happens when I tap tap on them and I am forced to uninstall and reinstall the application on tablet (.apk file) to see folio changes in my custom viewer.
    This is very annoying as well as time expensive.
    Tablet is Samsun Galaxy Tab SII with Android 3.2.
    Any help is appreciated.

    To the best of my knowledge, the SII is a smartphone and not a tablet device, and the official claim is (correct me if I'm wrong) that DPS on Android is corrently tablet only.
    Anyway, it seems strange to me so checked and found out that even though the DPS apps are not available when you search for them in the Play Market of a smartphone you can still force load them to the phone and run them.
    I've done it on both a Samsung SIII running Android 4.0.4 and a Samsung GT-I9070 running Android 2.3.6 (I currently don't have a device running Android 3.2)
    The interface is so small that it's hardly possible to use it, but it works.

  • My Finder is going crazy.  Keep getting a message saying it quit unexpectedly and asking if I want to restore windows, but I can't get it to stop.  buttons don't work.

    My Finder is going crazy.  Keep getting a message saying it quit unexpectedly and asking if I want to restore windows, but I can't get it to stop.  buttons don't work.

    Something else you can try.
    In Finder hold down the option/alt key while selecting the Go menu item. Select Library. Then go to Preferences/com.apple.finder.plist. Move the .plist to your desktop.
    Restart and test. If it works okay, delete the plist from the desktop. 
    If the same, return the .plist to where you got it from, overwriting the newer ones.
    If you want to make your user library permanently visible, run the below command in Applications/Terminal.
    chflags nohidden ~/Library/
    You will need to do that after any updates.

  • Click wheel and buttons don't work on 5th gen.

    I have had my iPod for about half a year and for some reason my iPod buttons don't work. If I move the hold button it turns on but none of the other buttons work. It charges and everything. Does anyone know what to do?
    5th generation   Windows XP  

    There isn't any problem with your ipod, theres just a different way of going about when you put video games on your ipod. First, plug in your ipod. when your ipod icon appears on the left side where it usually does, click on it. Look at the top on the ipod screen that appears. The screen should give u info about your ipod. At the top look for an icon that says games. Pictures and a few other things are there but click on games. Once that screen appears click on the check mark that say sync games. After that it is pretty self explanatory. GoodLuck

  • My Microsoft Intellimouse back and forward buttons don't work in Firefox, but they do in IE and in Windows Explorer. It used to work, now it just stopped. Why and how can I fix this?

    Forward and back buttons don't work in Firefox but do everywhere else.

    Make sure that you set those buttons to the default action in your mouse driver software (Control Panel > Mouse or specific Intellimouse driver software).

  • My earphones mic and volume buttons don't work ever since the iOS 8.1 update! Please help me. One discussion person says they bought a new pair and THEY don't work either. What do I do? I'm about to have a breakdown!

    I rely heavily on my earphones because well... I'm lazy but they don't work. They work on my friend's iPhone who hasn't updated yet but I've updayed and the mic and volume buttons don't work. Please make a correct update!

    Nope, still same problem. I did an install, didn't work. Then I completely removed my IDT driver, restarted, installed the driver, restarted, same problem.
    When I troubleshoot my audio it always asks me which one to troubleshoot. It only works if I do one of the "Speakers / HP - IDT" but I don't know why it has so many devices listed with the same name.
    Also, after I troubleshoot and I can hear audio, if I go to "Manage audio devices" it still shows that no audio device is installed, which is why the webinars won't work.

  • Portege M750 and Win8.1 Pro -tablet buttons don't work

    Hi
    I'm having difficulties installing the tablet buttons in WINDOWS 8.1 Pro. Everything else works, perfectly.
    In Windows 8 Pro this buttons worked nicely, but now, after a clean install of Windows 8.1 Pro two of the buttons don't work. The buttons are the Toshiba assist button and the presebtation button. I've tried to configure them in Toshiba assist software but nothing happens.
    I'm sure I've installed all drivers that made wverything work with Windows 8. As anyone tryed this and add success?

    > I'm sure I've installed all drivers that made wverything work with Windows 8
    Windows 8.1 is not Windows 8 and many of Toshiba Win 8 drivers and tools dont work or are not fully compatible with Win 8.1
    As far as I know the Toshiba does not support Win 8.1 on this Portege M750.
    This means that no Win 8.1 drivers will be released and in such case some notebook features like the control buttons could not work properly.
    Fact is that using Windows Vista or Win 7, such buttons were controlled by Value Added Package. This package does not exist for Win 8.1 and has been replaced by other software called Toshiba System Driver
    So in case you want to try to get the buttons to work, I recommend checking this with Toshiba System Driver

  • Buttons don't work

    I am working on a small application.
    My main frame is a public class that defines two buttons in its constructor one for input and the other for feedback.
    The input screen and the feedback screens are defined as inner listener classes of the main class.
    The code compiles fine but the buttons don't work.Please take a look at my code and make suggestions for what I am doing wrong
    Thanks
    import java.awt.*;
    import java.awt.event.*;
    public class project1 extends Frame {
    static Object source;
    static Button input, feedback, apply;
    public project1(){ 
    super("Project Development Coordination System");     
    setSize(500,500);
    setLayout(new BorderLayout());
    //Build and add 1st Panel of project1
    Panel p1 = new Panel(new BorderLayout());
    TextField Title = new TextField();
    Title.setFont(new Font("Sansserif", Font.BOLD, 48));
    Title.setText("HORNSONIC");
    Title.setEditable(false);
    TextField Name = new TextField();
    Name.setFont(new Font("Sansserif", Font.BOLD, 30));
    Name.setText("Hera International, Inc.");
    Name.setEditable(false);
    p1.add(Title, BorderLayout.NORTH);
    p1.add(Name, BorderLayout.CENTER);
    add(p1, BorderLayout.NORTH);
    //Build and add 2nd Panel
    Panel PDCS = new Panel();
    TextField pdcs = new TextField();
    pdcs.setFont(new Font("Sanserif", Font.BOLD, 22));
    pdcs.setText("Project Development Coordination System");
    pdcs.setEditable(false);
    PDCS.add(pdcs);
    add(PDCS, BorderLayout.CENTER);
    //Build and add 3rd Panel
    Panel buttons = new Panel();
    Button input = new Button("INPUT");
    buttons.add(input);
    Button feedback = new Button("FEEDBACK");
    buttons.add(feedback);
    input.addActionListener( new Input());
    feedback.addActionListener(new Feedback());
    add(buttons, BorderLayout.SOUTH);
    addWindowListener(new WindowAdapter(){
    public void windowClosing(WindowEvent event){
         System.exit(0);
    //end of project1()
    //Input class     
    static class Input extends Frame implements ActionListener {
              Input(){
    super("Input");
    setSize(500,500);
    //Build and add FirstPanel of the Frame
    Panel FP = new Panel(new BorderLayout());
    //Build and add northpanel of FP
    Panel np = new Panel(new BorderLayout());
    //Build and add subpanel1 of np
    Panel subpanel1= new Panel();
    Label L1 = new Label("Sample#");
    TextField T1 = new TextField(10);
    T1.setEditable(true);
    Label L12 = new Label("Customer:");
    TextField ctf = new TextField(10);
    ctf.setBackground(Color.gray);
    ctf.setForeground(Color.black);
    ctf.setEditable(true);
    subpanel1.add(L1);
    subpanel1.add(T1);
    subpanel1.add(L12);
    subpanel1.add(ctf);
    //Build and add subpanel2 of np
    Panel subpanel2 = new Panel();
    TextField sub1t = new TextField(10);
    sub1t.setBackground(Color.gray);
    sub1t.setForeground(Color.black);
    sub1t.setEditable(true);
    subpanel2.add(sub1t);
    Label sublabel = new Label("Model#");
    subpanel2.add(sublabel);
    TextField sub2t = new TextField(10);
    sub2t.setBackground(Color.gray);
    sub2t.setForeground(Color.black);
    sub2t.setEditable(true);
    subpanel2.add(sub2t);
    np.add(subpanel1, BorderLayout.NORTH);
    np.add(subpanel2, BorderLayout.CENTER);
    FP.add(np, BorderLayout.NORTH);
    //Build and add centerpanel of FP
    Panel cp = new Panel(new BorderLayout());
    //Build and add subcenter1 of centerpanel
    Panel subcenter1 = new Panel(new BorderLayout());
    Panel NP = new Panel();
    Label Project = new Label("Project Scope");
    NP.add(Project);
    TextField PS = new TextField(10);
    PS.setBackground(Color.gray);
    PS.setForeground(Color.black);
    PS.setEditable(true);
    NP.add(PS);
    Label Appl = new Label("Application:");
    NP.add(Appl);
    TextField Price1 = new TextField(10);
    Price1.setBackground(Color.gray);
    Price1.setForeground(Color.black);
    Price1.setEditable(true);
    NP.add(Price1);
    subcenter1.add(NP, BorderLayout.NORTH);
    Panel CP = new Panel();
    Label TP = new Label("Target Price-");
    CP.add(TP);
    TextField appl = new TextField(10);
    appl.setBackground(Color.gray);
    appl.setForeground(Color.black);
    appl.setEditable(true);
    CP.add(appl);
    Label quote = new Label("Quoted Price-");
    CP.add(quote);
    TextField Q = new TextField(10);
    Q.setBackground(Color.gray);
    Q.setForeground(Color.black);
    Q.setEditable(true);
    CP.add(Q);
    subcenter1.add(CP, BorderLayout.CENTER);
    cp.add(subcenter1, BorderLayout.NORTH);
    //Build subcenter panel of cp
    Panel subcenter = new Panel(new GridLayout(1,3));
    List list = new List (3,true);
    list.addItem("Woofer:");
    list.addItem("Mid:");
    list.addItem("Tweeter");
    subcenter.add(list);
    TextArea inches = new TextArea(3,5);
    inches.setBackground(Color.gray);
    inches.setForeground(Color.black);
    inches.setEditable(true);
    subcenter.add(inches);
    List list1 = new List(3, true);
    list1.addItem("Count-");
    list1.addItem("Count-");
    list1.addItem("Count-");
    subcenter.add(list1);
    TextArea count = new TextArea(3,5);
    count.setBackground(Color.gray);
    count.setForeground(Color.black);
    count.setEditable(true);
    subcenter.add(count);
    List list2 = new List(3, true);
    list2.addItem("Materials:");
    list2.addItem("Materials:");
    list2.addItem("Materials:");
    subcenter.add(list2);
    TextArea materials = new TextArea(3,5);
    materials.setBackground(Color.gray);
    materials.setForeground(Color.black);
    materials.setEditable(true);
    subcenter.add(materials);
    cp.add(subcenter, BorderLayout.CENTER);
    FP.add(cp, BorderLayout.CENTER);
    //Build and add southpanel of FP
    Panel sp = new Panel();
    TextArea comments = new TextArea("Comments:", 3,30);
    sp.add(comments);
    FP.add(sp, BorderLayout.SOUTH);
    add(FP, BorderLayout.NORTH);
    //Build and add SouthPanel of Frame
    Panel SP = new Panel();
    List l1 = new List(8,true);
    l1.addItem("Quote Requested:");
    l1.addItem("Quote to be completed by:");
    l1.addItem("Sample Requested:");
    l1.addItem("STd sent to Factory:");
    l1.addItem("Factory estimated ETD:");
    l1.addItem("Revised ETD#1:");
    l1.addItem("Revised ETD#2:");
    l1.addItem("Revised ETD#3:");
    SP.add(l1);
    TextArea dates1 = new TextArea(8,8);
    dates1.setBackground(Color.gray);
    dates1.setForeground(Color.black);
    dates1.setEditable(true);
    SP.add(dates1);
    List l2 = new List(8, true);
    l2.addItem("Days Quote overdue:");
    l2.addItem("Date Quote Received:");
    l2.addItem("Actual ETD:");
    l2.addItem("Sample Arrival Date:");
    l2.addItem("Days Sample overdue:");
    l2.addItem("Days in Development:");
    l2.addItem("Date sent to customer:");
    l2.addItem("Actual Days to customer:");
    SP.add(l2);
    TextArea dates2 = new TextArea(8,8);
    dates2.setBackground(Color.gray);
    dates2.setForeground(Color.black);
    dates2.setEditable(true);
    SP.add(dates2);
    add(SP, BorderLayout.SOUTH);
    //Build and add CenterPanel of Frame
    Panel TD = new Panel();
    TextField td = new TextField("TIME IN DEVELOPMENT");
    TD.add(td);
    add(TD, BorderLayout.CENTER);
              addWindowListener(new WindowAdapter(){
    public void windowClosing(WindowEvent event){
         System.exit(0);
    }// end of input()
    public void actionPerformed(ActionEvent Event)
    Object source = Event.getSource();
    if (source == input){
                   new Input();
                   setVisible(true);
    }//end of input if
              }//end of actionPerformed.
         }//end of class input
    //Feedback class
    static class Feedback extends Frame implements ActionListener{
    Feedback(){
    super("Feedback");
    setSize(500,500);
    //Build and add panel 1.
    Panel p1 = new Panel(new BorderLayout());;
    //Build and subpanel off panel 1
    Panel subpanel1= new Panel();
    Label L1 = new Label("Sample#");
    TextField T1 = new TextField(10);
    T1.setEditable(true);
    Label L12 = new Label("Customer:");
    TextField ctf = new TextField(10);
    ctf.setBackground(Color.gray);
    ctf.setForeground(Color.black);
    ctf.setEditable(true);
    subpanel1.add(L1);
    subpanel1.add(T1);
    subpanel1.add(L12);
    subpanel1.add(ctf);
    Panel subpanel2 = new Panel();
    TextField sub1t = new TextField(10);
    sub1t.setBackground(Color.gray);
    sub1t.setForeground(Color.black);
    sub1t.setEditable(true);
    subpanel2.add(sub1t);
    Label sublabel = new Label("Model#");
    subpanel2.add(sublabel);
    TextField sub2t = new TextField(10);
    sub2t.setBackground(Color.gray);
    sub2t.setForeground(Color.black);
    sub2t.setEditable(true);
    subpanel2.add(sub2t);
    p1.add(subpanel1, BorderLayout.NORTH);
    p1.add(subpanel2, BorderLayout.CENTER);
    add(p1, BorderLayout.NORTH);
    //Build and add Panel 2
    Panel p2 = new Panel(new BorderLayout());
    //Build and add subcenter1 of Panel 2.
    Panel subcenter1 = new Panel(new BorderLayout());
    //Build subpanels of subcenter 1.
    Panel NP = new Panel();
    Label Project = new Label("Project Scope");
    NP.add(Project);
    TextField PS = new TextField(10);
    PS.setBackground(Color.gray);
    PS.setForeground(Color.black);
    PS.setEditable(true);
    NP.add(PS);
    Label Appl = new Label("Application:");
    NP.add(Appl);
    TextField Price1 = new TextField(10);
    Price1.setBackground(Color.gray);
    Price1.setForeground(Color.black);
    Price1.setEditable(true);
    NP.add(Price1);
    subcenter1.add(NP, BorderLayout.NORTH);
    Panel CP = new Panel();
    Label TP = new Label("Target Price-");
    CP.add(TP);
    TextField appl = new TextField(10);
    appl.setBackground(Color.gray);
    appl.setForeground(Color.black);
    appl.setEditable(true);
    CP.add(appl);
    Label quote = new Label("Quoted Price-");
    CP.add(quote);
    TextField Q = new TextField(10);
    Q.setBackground(Color.gray);
    Q.setForeground(Color.black);
    Q.setEditable(true);
    CP.add(Q);
    subcenter1.add(CP, BorderLayout.CENTER);
    p2.add(subcenter1, BorderLayout.NORTH);
    //BUILD and add subcenter to Panel 2);
    Panel subcenter = new Panel();
    List list = new List (3,true);
    list.addItem("Woofer:");
    list.addItem("Mid:");
    list.addItem("Tweeter");
    subcenter.add(list);
    TextArea inches = new TextArea(3,5);
    inches.setBackground(Color.gray);
    inches.setForeground(Color.black);
    inches.setEditable(true);
    subcenter.add(inches);
    List list1 = new List(3, true);
    list1.addItem("Count-");
    list1.addItem("Count-");
    list1.addItem("Count-");
    subcenter.add(list1);
    TextArea count = new TextArea(3,5);
    count.setBackground(Color.gray);
    count.setForeground(Color.black);
    count.setEditable(true);
    subcenter.add(count);
    List list2 = new List(3, true);
    list2.addItem("Materials:");
    list2.addItem("Materials:");
    list2.addItem("Materials:");
    subcenter.add(list2);
    TextArea materials = new TextArea(3,5);
    materials.setBackground(Color.gray);
    materials.setForeground(Color.black);
    materials.setEditable(true);
    subcenter.add(materials);
    p2.add(subcenter, BorderLayout.CENTER);
    //Build and add south subpanel of Panel 2
    Panel subpanel = new Panel();
    Label L2 = new Label("Sample Disposition:");
    subpanel.add(L2);
    TextField T2 = new TextField(10);
    T2.setEditable(true);
    subpanel.add(T2);
    Label l2 = new Label("Date:");
    subpanel.add(l2);
    TextField t2 = new TextField(10);
    t2.setEditable(true);
    subpanel.add(t2);
    TextArea TF = new TextArea("Feedback:",3,30);
    TF.setEditable(true);
    subpanel.add(TF);
    p2.add(subpanel, BorderLayout.SOUTH);
    add(p2, BorderLayout.CENTER);
    //Build and add Panel 3.
    Panel p3 = new Panel();
    Label L3 = new Label("Project Continued on Revision#:");
    TextField T3 = new TextField(10);
    T3.setEditable(true);
    Label l3 = new Label("Order Placed:");
    TextField t3 = new TextField(10);
    t3.setEditable(true);
    p3.add(L3);
    p3.add(T3);
    p3.add(l3);
    p3.add(t3);
    add(p3, BorderLayout.SOUTH);
    setVisible(true);
    addWindowListener(new WindowAdapter(){
    public void windowClosing(WindowEvent event){
         System.exit(0);
    }//end of Feedback()
    public void actionPerformed(ActionEvent AE){
    if (AE.getSource() == feedback){
    new Feedback();
         setVisible(true);
    }//end of feedback if
    }//end of actionPerformed
    }//end of class Feedback
    public static void main (String args[]){
         project1 window = new project1();
         window.setVisible(true);
         //end of main
    }//end.

    I compiled and did run your code....
    it seems you are trying to implement a Frame with two buttons... each time the user click on a button, the main frame displays the equivalent panel with a set of components .. isn�t it ?
    well... some tips:
    1 - Why don�t you use a JTabbedPane ? a much better container than a simple Frame....
    2 - If you really need to use a Frame as a container of multiple forms.. then you should take a look in the java.awt.CardLayout
    other tip: don�t use the Frame component as the same class as the ActionListener.. divie these comopnents in two classes...

Maybe you are looking for

  • Extract data from a table

    Hi All, How to extract data from a table to a excel sheet. I want matnr and desc from MARA. Please help me. Thanks Veni

  • Problem in MIRO agains BILL OF LADING & INBOUND DELIVERY

    Hi GURUS / EXPERTS, I am using INBOUND DELIVERY AGAINST PO (VL31N) & POST GOODS RECEIPT,where I mention the BILL OF LADING in SHIPMENT at Header data.  After that I use MIRO, during MIRO, i reference the bill of lading number Which is mentioned in th

  • One BW system for several landscapes ??????

    Guys I would really apprciate some advice.  In the past I have set up BW systems for a landscape consisting of APO, ECC, SRM and of course the BW system to support these. I am now working for a company that has several ECC production systems live and

  • ME_READ_PO_FOR_PRINTING - Deleted Items

    Hi, I am using the FM ME_READ_PO_FOR_PRINTING . If i pass 1 to cx_druvo , I am getting all the items displayed in my Form. But if an item is deleted, that item does not get read with cx_druvo = 1. For that I need to pass cx_druvo = 2. But with cx_dru

  • Group Stacked Bar Graph

    Hi, In our project we need to implement grouping of stacked bar graph, but with dvt graphs we are not able to achieve this. We want similar graph in below link but using dvt graphs: http://www.highcharts.com/demo/column-stacked-and-grouped Please hel