Newbie here, with button action script issue

I have just started to scrach the surface with actionscript
and I have attempted to assign it to buttons. Much to my supprise,
it worked, sort of... All my buttons require a double click the
first time you click on them. I was able to put
this together, by
using the following action script for all my buttons:
on (release) {
ybutton.onRelease = function() {
gotoAndStop(28);
So I have 2 questions. What actionscript will give me the
single click that I am looking for? Also, is there any shortcut to
making a broad change? In other words, will have to switch out the
code for every button on 37 frames?
Thank you

1: // You needed two clicks because you have 2 onRelease.
on (release) {
gotoAndStop(28);
2: Yes, it'll go fast I would copy the above and paste where
needed then just change the frame #.

Similar Messages

  • Movie Clip Button - Action Script issues

    This is a two part question:
    1. I have my movie clip button, "mcAboutus" then inside my
    movie clip I have 5 layers: actions, labels, text, animated
    rollover("mcAboutusover"), animated rolloff("mcAboutusoff"). On the
    labels layer I have _up, _over, _off. On the _up is the text layer,
    on the _over is a movie clip of the animated
    rollover("mcAboutusover") which is 90 frames, and I want to loop as
    long as the mouse is over the text. And the _off has the
    "mcAboutusoff" movie clip.
    So I was able to have the rollover work, but when I roll off
    the rollover animation continues on until the end of the animation.
    I understand it has to do with the fact that it's a movie clip, but
    how do I point it to go into the movie clip and read the animation
    and that on the last frame of the animation I have a
    "gotoAndPlay(1);" to have the animation continue looping as long as
    it's in a rollover state?
    here is the code I have for the _root:
    this.mcAboutus.onRollOver = function() {
    mcAboutus.gotoAndPlay(_over);
    this.mcAboutus.onRollOut = function() {
    mcAboutus.gotoAndPlay(_off);
    The other problem I am having is that once the I have rolled
    over the animation once, the button dies and won't let me rollover
    it again?
    Aside from the "stop();" action in the mcAboutus movie clip
    symbol, I don't have any other actions, should I put items in the
    different movie clips I have set up?
    ALSO.... The reason that I have the main movie clip button,
    and two movie clips residing in the mcBtn is I wanted light rays to
    be glowing from the text, and I was having a hard time getting what
    I wanted from Flash, so I created in After Effects and exported two
    .SWF files. So those .SWF files are the _over and _off states in
    the mcBtn. I am having a very hard time controlling those Movie
    Clips within the main MC Button. Please, any help would be greatly
    appreciated.

    quote:
    Originally posted by:
    kglad
    mcAboutusover should be a movieclip that has your over
    animation and it should have a stop() on its last frame. it should
    be placed on your _over frame in mcAbousus' timeline. you should
    then use:
    Ok, so I have my main timeline, in it has my
    mcAboutus>> then inside that I have three labels. _up which
    has the static text then on frame 5 I have the _over which has the
    keyframe for the mcAboutusover, this animation is 90 frames, then I
    have on frame 10, the _off for the RollOut state, and I have a 10
    frame animation on that one. I still can't get it to continue on
    after the initial rollover, the button still dies down.
    I am going to redo everything in a presentation timeline,
    based on Total Training and see if that helps my problem out any,
    and will get back to you tomorrow with more info. Thanks

  • Help with button/action script

    As part of a class I have to create an aquarium where I have
    pictures of fish on the side and I want to be able to click on the
    fish and have it add the fish to the aquarium. I want to be able to
    have the viewer select the number and types of fish they want in
    the aquarium. I'm using Flash 8 if that matters. Please, any help
    would be wonderful.

    Thank you for your help so far.
    I am just a beginner and that coding went way over my head. I
    have created a movie clip for each fish and I have added the
    buttons to the aquarium. I have created the linkage for the movie
    clips in my library. I am having problems attaching the clip to the
    button. In all of the examples I have seen I have to include the
    instance name. How do I give a clip that is not on the stage an
    instance name?
    Can you please help?
    Thank you
    hgingrich

  • Scroll bar actions script issue

    I am having a problem with the action script for a scroll bar
    the code is complex and I did not write it but have managed to make
    other adjustments to get it to work...think we got the wrong raw
    file to work from because the scroll bar works in the file on the
    seller's server. Can't find the programmer now. If someone could
    please tell me what I am missing. The scroll bar works if you use
    the solid scroller in the middle but does not move the information
    and the arrows do not work at all. You can check this out at
    http://74.53.228.34/~jacob753/vocab/
    Just click on crossword and then load a topic and you will
    see that the scroll bar does not work at all. The floating window
    is another issue and I will put this in another message after this
    is fixed.
    The code is below:
    initClueListScroll = function(y){
    // y : hauteur de la cluelist (height of the cluelist)
    _global.clueListHeight = y
    _global.clueListScroll = true
    var c = clScrollClip
    c._x = Math.floor(cluelistClip._x+cluelistClip._width)
    c.scrollBG._height = gridSize*cellSize-40
    c.scrdownClip._y = c.scrollBG._y+c.scrollBG._height
    c.scroller._height =
    c.scrollBG._height*(gridSize*cellSize/y)
    // ---- on définit les actions (action definitions)
    c.scrdownClip.onRollOver = c.scrupClip.onRollOver =
    function(){
    this.gotoAndPlay(2)
    c.scrdownClip.onRollOut = c.scrupClip.onRollOut =
    function(){
    this.gotoAndStop(1)
    c.scrdownClip.onReleaseOutside = c.scrdownClip.onRelease =
    function(){
    this.gotoAndStop(1)
    var c = getMain().clScrollClip
    c.scrollBG.onRelease()
    c.scrupClip.onReleaseOutside = c.scrdownClip.onRelease =
    function(){
    this.gotoAndStop(1)
    var c = getMain().clScrollClip
    c.scrollBG.onRelease()
    c.scroller.onRollOver = function(){
    this.gotoAndStop(2)
    c.scroller.onRollOut = function(){
    this.gotoAndStop(1)
    c.scroller.onPress = function(){
    this.gotoAndStop(2)
    var c = getMain().clScrollClip
    var yMin = c.scrollBG._y
    var yMax =
    c.scrollBG._y+Math.floor(c.scrollBG._height-c.scroller._height)
    this.startDrag(false,0,yMin,0,yMax)
    getMain().onMouseMove = function(){
    var c = getMain().clScrollClip
    var yDes = c.scroller._y-20
    var yMax = Math.floor(c.scrollBG._height-c.scroller._height)
    var yFin = 20+Math.min(yDes,yMax)
    c.scroller.setGoTo(c.scroller._x,yFin,100,c.scroller._yscale,100,0,4)
    var yDiff =
    (yFin-c.scrollBG._y)*(gridSize*cellSize/c.scrollBG._height)
    if(yFin==yMax+20){
    var ymn = 0
    var ymx = clueListHeight-(gridSize*cellSize)
    yDiff = (ymx - ymn)*(yFin/(yMax+20))
    // pX, pY, pW, pH, pA, pR, pSpeed
    var cl = getMain().cluelistClip.contClip
    cl.setGoTo(cl._x,-yDiff+gridPosition.y,100,100,100,0,4)
    c.scroller.onRelease = c.scroller.onReleaseOutside =
    function(){
    stopDrag()
    this.gotoAndStop(1)
    delete getMain().onMouseMove
    c.scrollBG.onRelease = function(){
    var c = getMain().clScrollClip
    var yDes = c._ymouse-20<c.scroller._height ? 0 :
    c._ymouse-20
    var yMax = Math.floor(c.scrollBG._height-c.scroller._height)
    var yFin = 20+Math.min(yDes,yMax)
    c.scroller.setGoTo(c.scroller._x,yFin,100,c.scroller._yscale,100,0,4)
    var yDiff =
    (yFin-c.scrollBG._y)*(gridSize*cellSize/c.scrollBG._height)
    if(yFin==yMax+20){
    var ymn = 0
    var ymx = clueListHeight-(gridSize*cellSize)
    yDiff = (ymx - ymn)*(yFin/(yMax+20))
    // pX, pY, pW, pH, pA, pR, pSpeed
    var cl = getMain().cluelistClip.contClip
    cl.setGoTo(cl._x,-yDiff+gridPosition.y,100,100,100,0,4)
    c.scrollBG.onReleaseOutside = c.scrollBG.onRelease

    Try it in a simple test case.  I don't think that is default behavior.

  • XML Gallery won't work remotely - Action Script issues

    I created an XML scrolling thumbnail gallery using a
    tutorial
    found here
    I then had to alter the action script to get my thumbnails to
    display properly -- they were spaced out or overlapping each other
    and not in the sequence specified in the XML file. The new code
    works great locally, but the thumbnails and larger image refuse to
    load remotely in every browser i've tried. Any thoughts on how to
    alter the action script to load the gallery?!?! I'm not much
    experienced in Flash so any help would be most appreciated.
    You can find the page with my unloadable gallery
    here
    You can see my action script in my
    Flash
    CS3 file
    Thanks!
    Joe.

    Hi --
    I clicked on the link for your gallery and the images load??
    Both when I
    click on the image or when I click the "next" and "previous"
    buttons --
    although the "hit" area for the buttons is below the actual
    text so you
    should adjust that on those buttons. I would also recommend
    not making the
    text selectable so the cursor won't change to the "I bar"
    Rich
    "joesavy" <[email protected]> wrote in
    message
    news:fcp3qi$4ak$[email protected]..
    >I created an XML scrolling thumbnail gallery using a
    >
    http://www.kirupa.com/developer/mx2004/thumbnails.htm
    >
    > I then had to alter the action script to get my
    thumbnails to display
    > properly
    > -- they were spaced out or overlapping each other and
    not in the sequence
    > specified in the XML file. The new code works great
    locally, but the
    > thumbnails
    > and larger image refuse to load remotely in every
    browser i've tried. Any
    > thoughts on how to alter the action script to load the
    gallery?!?! I'm not
    > much
    > experienced in Flash so any help would be most
    appreciated.
    >
    > You can find the page with my unloadable gallery
    >
    http://www.sullivancreative.com/clients/se-07-7-24/se_website/gallery.html
    >
    > You can see my action script in my
    >
    http://www.sullivancreative.com/clients/se-07-7-24/se_website/xml_photogallery_s
    > crollthms_fix.fla
    >
    > Thanks!
    > Joe.
    >
    >

  • Could someone help me with my action script?

    I followed a tutorial on how to make an interactive photo gallery but for some reason the file isn't working. I am new to flash and no very little about action script.
    Would someone be willing to take a look at my file and advise me?
    Thanks

    Did your tutorial have you download XML from a server to feed the images to the gallery? Many people forget to check for errors loading the XML file or forget to "do something" once the XML is loaded. Common things not to look for are IOErrorEvent.IO_ERROR or SecurotyErrorEvents warning you the XML you're trying to load is on a different domain (a webserver online) and it doesn't have permission (a crossdomain.xml).
    In those situations it can appear like it's doing nothing.
    Did you just take the code of the tutorial at the end and try to play it as you went through the tutorial? If you just copy and pasted it all you'lre going to have a hard time isolating the issue. In that case you can always re-do the tutorial until you start to see issues. Then you know where they are.

  • Help needed with Button action performed

    Hi,
    I am new to AWT prgramming .
    I have created a menu called " Menu System Test window " and it contains toplevel menu items of "File" and "Help" and File Menu contains subitems "Product Evaluation" and "Exit".
    When i click File->Product Evaluation it displays a new Frame named "ProductEvaluationMeasurementTool" with some check boxes ,radiobuttons, buttons and text fields. So when i select some checkboxes in that new frame and click the button labeled "Metricslevel" it displays some resultin textField1 , similarly when i click Button labeled "Measurementlevel" it displays some result in textField2.
    My question is i have another button in Frame Called "Reset". When i click the Reset button all the check boxes which have been checked previously should be unchecked and moreover the result in both the textfield should be cleared.
    I am sending my code. Kindly help me.
    Thanks in advance.
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.Component;
    import java.awt.Checkbox;
    import javax.swing.*;
    // Make a main window with two top-level menus: File and Help.
    // Help has a submenu and demonstrates a few interesting menu items.
    public class MainWindow extends Frame {
      public MainWindow() {
        super("Menu System Test Window");
        setSize(500, 500);
        // make a top level File menu
        FileMenu fileMenu = new FileMenu(this);
        // make a top level Help menu
        HelpMenu helpMenu = new HelpMenu(this);
        // make a menu bar for this frame 
        // and add top level menus File and Menu
        MenuBar mb = new MenuBar();
        mb.add(fileMenu);
        mb.add(helpMenu);
        setMenuBar(mb);
        addWindowListener(new WindowAdapter() {
          public void windowClosing(WindowEvent e) {
            exit();
      public void exit() {
        setVisible(false); // hide the Frame
        dispose(); // tell windowing system to free resources
        System.exit(0); // exit
      public static void main(String args[]) {
        MainWindow w = new MainWindow();
        w.setVisible(true);
    // Encapsulate the look and behavior of the File menu
    class FileMenu extends Menu implements ActionListener {
      MainWindow mw;  // who owns us?
      public FileMenu(MainWindow m) {
        super("File");
        mw = m;
        MenuItem mi;
        add(mi = new MenuItem("ProductEvaluation"));
        mi.addActionListener(this);
        add(mi = new MenuItem("Exit"));
        mi.addActionListener(this);
      // respond to the Exit menu choice
      public void actionPerformed(ActionEvent e) { String item = e.getActionCommand();
        if (item.equals("ProductEvaluation"))
         Frame f = new Frame("ProductMeasurementEvaluationTool");
         f.setSize(1290,1290);
         f.setLayout(null);
         TextField t1 = new TextField("textField1");
         t1.setBounds(230, 630, 50, 24);
         f.add(t1);
         TextField t2 = new TextField("textField2");
         t2.setBounds(430, 630, 50, 24);
         f.add(t2);
         ActionListener al = new MyActionListener(f, t1);
         ActionListener a2 = new MyActionListener(f, t2);
         Label l1 = new Label("Select the appropriate metrics for Measurement Process Evaluation");
         l1.setBounds(380, 50, 380, 20);
         f.add(l1);
         Label l2 = new Label("Architecture Metrics");
         l2.setBounds(170, 100, 110, 20);
         f.add(l2);
         Label l3 = new Label("RunTime Metrics");
         l3.setBounds(500, 100, 110, 20);
         f.add(l3);
         Label l4 = new Label("Documentation Metrics");
         l4.setBounds(840, 100, 130, 20);
         f.add(l4);
         JRadioButton rb1 = new JRadioButton("Componenent Metrics",false);
         rb1.setBounds(190, 140, 133, 20);
         f.add(rb1);
         JRadioButton rb2 = new JRadioButton("Task Metrics",false);
         rb2.setBounds(540, 140, 95, 20);
         f.add(rb2);
         JRadioButton rb3 = new JRadioButton("Manual Metrics",false);
         rb3.setBounds(870, 140, 108, 20);
         f.add(rb3);
         JRadioButton rb4 = new JRadioButton("Configuration Metrics",false);
         rb4.setBounds(190, 270, 142, 20);
         f.add(rb4);
         JRadioButton rb5 = new JRadioButton("DataBase Metrics",false);
         rb5.setBounds(190, 420, 122, 20);
         f.add(rb5);
         JRadioButton rb6 = new JRadioButton("DataHandling Metrics",false);
         rb6.setBounds(540, 270, 142, 20);
         f.add(rb6);
         JRadioButton rb7= new JRadioButton("HumanInterface Metrics",false);
         rb7.setBounds(540, 420, 156, 20);
         f.add(rb7);
         JRadioButton rb8 = new JRadioButton("Development Metrics",false);
         rb8.setBounds(870, 270, 141, 20);
         f.add(rb8);
         JRadioButton rb9= new JRadioButton("Marketing Metrics",false);
         rb9.setBounds(870, 420, 121, 20);
         f.add(rb9);
         Checkbox  c10 = new Checkbox("Size");
         c10.setBounds(220, 170, 49, 20);
         f.add(c10);
         Checkbox c11 = new Checkbox("Structure");
         c11.setBounds(220, 190, 75, 20);
         f.add(c11);
         Checkbox c12 = new Checkbox("Complexity");
         c12.setBounds(220, 210, 86, 20);
         f.add(c12);
         Checkbox c13 = new Checkbox("Size");
         c13.setBounds(220, 300, 49, 20);
         f.add(c13);
         Checkbox c14 = new Checkbox("Structure");
         c14.setBounds(220, 320, 75, 20);
         f.add(c14);
         Checkbox c15 = new Checkbox("Complexity");
         c15.setBounds(220, 340, 86, 20);
         f.add(c15);
         Checkbox c16 = new Checkbox("Size");
         c16.setBounds(220, 460, 49, 20);
         f.add(c16);
         Checkbox c17 = new Checkbox("Structure");
         c17.setBounds(220, 480, 75, 20);
         f.add(c17);
         Checkbox c18 = new Checkbox("Complexity");
         c18.setBounds(220, 500, 86, 20);
         f.add(c18);
         Checkbox c19 = new Checkbox("Size");
         c19.setBounds(580, 170, 49, 20);
         f.add(c19);
         Checkbox c20 = new Checkbox("Structure");
         c20.setBounds(580, 190, 75, 20);
         f.add(c20);
         Checkbox c21 = new Checkbox("Complexity");
         c21.setBounds(580, 210, 86, 20);
         f.add(c21);
         Checkbox c22 = new Checkbox("Size");
         c22.setBounds(580, 300, 49, 20);
         f.add(c22);
         Checkbox c23 = new Checkbox("Structure");
         c23.setBounds(580, 320, 75, 20);
         f.add(c23);
         Checkbox c24 = new Checkbox("Complexity");
         c24.setBounds(580, 340, 86, 20);
         f.add(c24);
         Checkbox c25 = new Checkbox("Size");
         c25.setBounds(590, 460, 49, 20);
         f.add(c25);
         Checkbox c26 = new Checkbox("Structure");
         c26.setBounds(590, 480, 75, 20);
         f.add(c26);
         Checkbox c27 = new Checkbox("Complexity");
         c27.setBounds(590, 500, 86, 20);
         f.add(c27);
         Checkbox c28 = new Checkbox("Size");
         c28.setBounds(920, 170, 49, 20);
         f.add(c28);
         Checkbox c29 = new Checkbox("Structure");
         c29.setBounds(920, 190, 75, 20);
         f.add(c29);
         Checkbox c30 = new Checkbox("Complexity");
         c30.setBounds(920, 210, 86, 20);
         f.add(c30);
         Checkbox c31 = new Checkbox("Size");
         c31.setBounds(920, 300, 49, 20);
         f.add(c31);
         Checkbox c32 = new Checkbox("Structure");
         c32.setBounds(920, 320, 75, 20);
         f.add(c32);
         Checkbox c33 = new Checkbox("Complexity");
         c33.setBounds(920, 340, 86, 20);
         f.add(c33);
         Checkbox c34 = new Checkbox("Size");
         c34.setBounds(930, 450, 49, 20);
         f.add(c34);
         Checkbox c35 = new Checkbox("Structure");
         c35.setBounds(930, 470, 75, 20);
         f.add(c35);
         Checkbox c36 = new Checkbox("Complexity");
         c36.setBounds(930, 490, 86, 20);
         f.add(c36);
         Button b1  = new Button("MetricsLevel");
         b1.setBounds(230, 600, 120, 24);
         f.add(b1);
         b1.addActionListener(al);
         Button b2  = new Button("MeasurementLevel");
         b2.setBounds(430, 600, 120, 24);
         f.add(b2);
         b2.addActionListener(a2);
         Button b3  = new Button("Reset");
         b3.setBounds(630, 600, 120, 24);
         f.add(b3);
         f.show();
        else
       { mw.exit();}
    class MyActionListener implements ActionListener
        Frame f;
        TextField textField1;
        TextField textField2;
        public MyActionListener(Frame f, TextField tf)
            this.f = f;
            textField1 = tf;
            textField2 = tf;
        public void actionPerformed(ActionEvent e)
           String s = e.getActionCommand();
        if (s.equals("MetricsLevel"))
            Component[] components = f.getComponents();
      int numOfCheckBoxes = 81;
      int numChecked = 0;
      for ( int i = 0; i < components.length; i++ )
       if ( components[i] instanceof Checkbox )
        Checkbox checkBox = (Checkbox) components;
    if ( checkBox.getState() )
    numChecked++;
    double ratio = (double) numChecked / (double) numOfCheckBoxes;
    textField1.setText( Double.toString( ratio ) );
    else
    if (s.equals("MeasurementLevel"))
    Component[] components = f.getComponents();
    int numOfCheckBoxes = 81;
    int numChecked = 0;
    for ( int i = 0; i < components.length; i++ )
    if ( components[i] instanceof Checkbox )
    Checkbox checkBox = (Checkbox) components[i];
    if ( checkBox.getState() )
    numChecked++;
    double ratio = (double) numChecked / (double) numOfCheckBoxes;
    textField2.setText( Double.toString( ratio ) );
    else
    if (s.equals("Reset"))
    Code for Reset Button action performed.
    // Encapsulate the look and behavior of the Help menu
    class HelpMenu extends Menu implements ActionListener {
    MainWindow mw; // who owns us?
    public HelpMenu(MainWindow m) {
    super("Help");
    mw = m;
    MenuItem mi;
    add(mi = new MenuItem("Description"));
    mi.addActionListener(this);
    // respond to a few menu items
    public void actionPerformed(ActionEvent e) {
    String item = e.getActionCommand();
    if (item.equals("Description"))
    System.out.println("You can get description at our website");

    import java.awt.*;
    import java.awt.event.*;
    // Make a main window with two top-level menus: File and Help.
    // Help has a submenu and demonstrates a few interesting menu items.
    public class MainWindow extends Frame
      public static void main(String args[])
        new MainWindow();
      public MainWindow()
        super("Menu System Test Window");
        setSize(500, 500);
        // Why not make 1 menubar class that you can add with
        // this.setMenuBar(new MyMenuBar(this)); ?
        // make a top level File menu
        FileMenu fileMenu = new FileMenu(this);
        // make a top level Help menu
        HelpMenu helpMenu = new HelpMenu(this);
        // make a menu bar for this frame
        // and add top level menus File and Menu
        MenuBar mb = new MenuBar();
        mb.add(fileMenu);
        mb.add(helpMenu);
        this.setMenuBar(mb);
        this.setVisible(true);
        this.addWindowListener(new WindowAdapter()
          public void windowClosing(WindowEvent e)
            System.exit(0);
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.JRadioButton;
    //Encapsulate the look and behavior of the File menu
    public class FileMenu extends Menu implements ActionListener
      private MainWindow mw; // who owns us?
      private MenuItem itmPE   = new MenuItem("ProductEvaluation");
      private MenuItem itmExit = new MenuItem("Exit");
      public FileMenu(MainWindow main)
        super("File");
        this.mw = main;
        this.itmPE.addActionListener(this);
        this.itmExit.addActionListener(this);
        this.add(this.itmPE);
        this.add(this.itmExit);
      // respond to the Exit menu choice
      public void actionPerformed(ActionEvent e)
        if (e.getSource() == this.itmPE)
          Frame f = new Frame("ProductMeasurementEvaluationTool");
          f.setSize(1290, 1290);
          f.setLayout(null);
          TextField t1 = new TextField("textField1");
          t1.setBounds(230, 630, 50, 24);
          f.add(t1);
          TextField t2 = new TextField("textField2");
          t2.setBounds(430, 630, 50, 24);
          f.add(t2);
          // Way to ugly..
          // ActionListener al = new MyActionListener(f, t1);
          // ActionListener a2 = new MyActionListener(f, t2);
          // see below...
          Label l1 = new Label("Select the appropriate metrics for Measurement Process Evaluation");
          l1.setBounds(380, 50, 380, 20);
          f.add(l1);
          Label l2 = new Label("Architecture Metrics");
          l2.setBounds(170, 100, 110, 20);
          f.add(l2);
          Label l3 = new Label("RunTime Metrics");
          l3.setBounds(500, 100, 110, 20);
          f.add(l3);
          Label l4 = new Label("Documentation Metrics");
          l4.setBounds(840, 100, 130, 20);
          f.add(l4);
          JRadioButton rb1 = new JRadioButton("Componenent Metrics", false);
          rb1.setBounds(190, 140, 133, 20);
          f.add(rb1);
          // Please do not use AWT and Swing components in the same frame.
          JRadioButton rb2 = new JRadioButton("Task Metrics", false);
          rb2.setBounds(540, 140, 95, 20);
          f.add(rb2);
          JRadioButton rb3 = new JRadioButton("Manual Metrics", false);
          rb3.setBounds(870, 140, 108, 20);
          f.add(rb3);
          JRadioButton rb4 = new JRadioButton("Configuration Metrics", false);
          rb4.setBounds(190, 270, 142, 20);
          f.add(rb4);
          JRadioButton rb5 = new JRadioButton("DataBase Metrics", false);
          rb5.setBounds(190, 420, 122, 20);
          f.add(rb5);
          JRadioButton rb6 = new JRadioButton("DataHandling Metrics", false);
          rb6.setBounds(540, 270, 142, 20);
          f.add(rb6);
          JRadioButton rb7 = new JRadioButton("HumanInterface Metrics", false);
          rb7.setBounds(540, 420, 156, 20);
          f.add(rb7);
          JRadioButton rb8 = new JRadioButton("Development Metrics", false);
          rb8.setBounds(870, 270, 141, 20);
          f.add(rb8);
          JRadioButton rb9 = new JRadioButton("Marketing Metrics", false);
          rb9.setBounds(870, 420, 121, 20);
          f.add(rb9);
          Checkbox c10 = new Checkbox("Size");
          c10.setBounds(220, 170, 49, 20);
          f.add(c10);
          Checkbox c11 = new Checkbox("Structure");
          c11.setBounds(220, 190, 75, 20);
          f.add(c11);
          Checkbox c12 = new Checkbox("Complexity");
          c12.setBounds(220, 210, 86, 20);
          f.add(c12);
          Checkbox c13 = new Checkbox("Size");
          c13.setBounds(220, 300, 49, 20);
          f.add(c13);
          Checkbox c14 = new Checkbox("Structure");
          c14.setBounds(220, 320, 75, 20);
          f.add(c14);
          Checkbox c15 = new Checkbox("Complexity");
          c15.setBounds(220, 340, 86, 20);
          f.add(c15);
          Checkbox c16 = new Checkbox("Size");
          c16.setBounds(220, 460, 49, 20);
          f.add(c16);
          Checkbox c17 = new Checkbox("Structure");
          c17.setBounds(220, 480, 75, 20);
          f.add(c17);
          Checkbox c18 = new Checkbox("Complexity");
          c18.setBounds(220, 500, 86, 20);
          f.add(c18);
          Checkbox c19 = new Checkbox("Size");
          c19.setBounds(580, 170, 49, 20);
          f.add(c19);
          Checkbox c20 = new Checkbox("Structure");
          c20.setBounds(580, 190, 75, 20);
          f.add(c20);
          Checkbox c21 = new Checkbox("Complexity");
          c21.setBounds(580, 210, 86, 20);
          f.add(c21);
          Checkbox c22 = new Checkbox("Size");
          c22.setBounds(580, 300, 49, 20);
          f.add(c22);
          Checkbox c23 = new Checkbox("Structure");
          c23.setBounds(580, 320, 75, 20);
          f.add(c23);
          Checkbox c24 = new Checkbox("Complexity");
          c24.setBounds(580, 340, 86, 20);
          f.add(c24);
          Checkbox c25 = new Checkbox("Size");
          c25.setBounds(590, 460, 49, 20);
          f.add(c25);
          Checkbox c26 = new Checkbox("Structure");
          c26.setBounds(590, 480, 75, 20);
          f.add(c26);
          Checkbox c27 = new Checkbox("Complexity");
          c27.setBounds(590, 500, 86, 20);
          f.add(c27);
          Checkbox c28 = new Checkbox("Size");
          c28.setBounds(920, 170, 49, 20);
          f.add(c28);
          Checkbox c29 = new Checkbox("Structure");
          c29.setBounds(920, 190, 75, 20);
          f.add(c29);
          Checkbox c30 = new Checkbox("Complexity");
          c30.setBounds(920, 210, 86, 20);
          f.add(c30);
          Checkbox c31 = new Checkbox("Size");
          c31.setBounds(920, 300, 49, 20);
          f.add(c31);
          Checkbox c32 = new Checkbox("Structure");
          c32.setBounds(920, 320, 75, 20);
          f.add(c32);
          Checkbox c33 = new Checkbox("Complexity");
          c33.setBounds(920, 340, 86, 20);
          f.add(c33);
          Checkbox c34 = new Checkbox("Size");
          c34.setBounds(930, 450, 49, 20);
          f.add(c34);
          Checkbox c35 = new Checkbox("Structure");
          c35.setBounds(930, 470, 75, 20);
          f.add(c35);
          Checkbox c36 = new Checkbox("Complexity");
          c36.setBounds(930, 490, 86, 20);
          f.add(c36);
          ActionListener action = new MyActionListener(f, t1, t2);
          Button b1 = new Button("MetricsLevel");
          b1.setBounds(230, 600, 120, 24);
          b1.addActionListener(action);
          f.add(b1);
          Button b2 = new Button("MeasurementLevel");
          b2.setBounds(430, 600, 120, 24);
          b2.addActionListener(action);
          f.add(b2);
          Button b3 = new Button("Reset");
          b3.setBounds(630, 600, 120, 24);
          b3.addActionListener(action);
          f.add(b3);
          f.addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent e)
              System.exit(0);
          f.show();
        else if (e.getSource() == this.itmExit)
          System.exit(0);
    import java.awt.*;
    import java.awt.event.*;
    //Encapsulate the look and behavior of the Help menu
    public class HelpMenu extends Menu implements ActionListener
      private MainWindow main; // who owns us?
      private MenuItem itmDescription = new MenuItem("Description");
      public HelpMenu(MainWindow main)
        super("Help");
        this.main = main;   
        this.itmDescription.addActionListener(this);
        this.add(this.itmDescription);
      // respond to a few menu items
      public void actionPerformed(ActionEvent e)
        if (e.getSource() == this.itmDescription)
          System.out.println("You can get description at our website");
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.JRadioButton;
    public class MyActionListener implements ActionListener
      private Frame     frame;
      private TextField textField1;
      private TextField textField2;
      public MyActionListener(Frame frame, TextField tf1, TextField tf2)
        this.frame = frame;
        this.textField1 = tf1;
        this.textField2 = tf2;
      public void actionPerformed(ActionEvent e)
        String s = e.getActionCommand();
        if (s.equals("MetricsLevel"))
          Component[] components = this.frame.getComponents();
          int numOfCheckBoxes = 81;
          int numChecked = 0;
          for (int i = 0; i < components.length; i++)
            if (components[i] instanceof Checkbox)
              if (((Checkbox)components).getState())
    numChecked++;
    double ratio = (double) numChecked / (double) numOfCheckBoxes;
    this.textField1.setText(Double.toString(ratio));
    else if (s.equals("MeasurementLevel"))
    Component[] components = frame.getComponents();
    int numOfCheckBoxes = 81;
    int numChecked = 0;
    for (int i = 0; i < components.length; i++)
    if (components[i] instanceof Checkbox)
    if (((Checkbox)components[i]).getState())
    numChecked++;
    double ratio = (double) numChecked / (double) numOfCheckBoxes;
    this.textField2.setText(Double.toString(ratio));
    else if (s.equals("Reset"))
    this.textField1.setText("");
    this.textField2.setText("");
    for (int i = 0; i < this.frame.getComponentCount(); i++)
    Component c = this.frame.getComponent(i);
    if (c instanceof JRadioButton)
    ((JRadioButton)c).setSelected(false);
    else if (c instanceof Checkbox)
    ((Checkbox)c).setState(false);

  • Troubles with rule action scripting, again

    I'm baaack, I have another question with a rule action script that I can not figure out how to get to run. In this instance I want the script to sort messages from various members of a group into their respective mailboxes. The mail rule selects the group and sends it to the following Script.
    using terms from application "Mail"
    on perform mail action with messages theMessages for rule theRule
    tell application "Mail"
    repeat with eachMessage in theMessages
    set theSender to sender of eachMessage
    if theSender contains "+the full address of the sender+" then
    set mailbox of eachMessage to mailbox "+the desired mailbox+ "
    end if
    end repeat
    end tell
    end perform mail action with messages
    end using terms from
    What am I missing this time? This is the most recent version of several attempts.I may as well add, when I expand this to include the numerous members of the group, do I end each of the "if" statements with a "end if" or will the script evaluate several "if" statements in one toss. tT

    The most likely place it could fail is in the comparision:
    if theSender contains "the full address of the sender" then
    You should add some debugging to see whether this evaluates to true or false. If it's true and the message doesn't move that's a whole different problem from it evaluating false.
    As for the 'if' question, you can do it either way. Depending on the situation, one path may be more or less efficient than the other, so it may take some experimentation:
    In general, I try to group the statements into the action, not the clause - for example, if there are three clauses that cause a specific action then I'd have one if statement with three clauses rather than three separate if statements that all lead to the same task.

  • Help with adding action script to an order form

    Hi - Firs time I'm on this board. Searched and didn't see
    anything that fit. Adobe/Macromedia Support told me my form needs
    an action script insert for me to gain access to a previous page.
    I'm revamping an online order form. It's about 2 1/2 pages in
    length. I find that I can't go back to the first page -- I'm locked
    in the second one. On split screen the HTML coding shows there is
    more than one page. Also, when I look at it in a browser the whole
    page is there.
    Does anyone know how and where I can put in action script.
    I'm not an HTML maven so this isn't my thing. Thanks for whatever
    advice you can give.
    Best - ETide

    Visit gotoandlearn.com and find a tutorial there for creating
    a preloader.

  • Oh boy, another P35D3 guy here with a rebooting BIOS issue :(

    Bought the following components:
    1. MSI P35D3 Board
    2. Intel Core 2 Duo 3.0ghz CPU (8400 series I believe)
    2. Kingston ValueRAM 2 sticks of 1gb DDR3 Ram
    3. NVIDIA 9600GT Video Card.
    4. Nspire 750w PS
    Originally it was an ATI HD3870 Card, but when I but this thing together it was actually throwing beeping codes, so I exchanged the Video for an Nvidia 9600GT (which seems to have been a bit of a downgrade).
    I started experiencing the dreaded reboot problem. Thinking the board was bad, I took the whole PC back to the store, but they could not reproduce the error. Took it back home and it started working fine except for the random time that it does the continual reboot. Started to research on the net like crazy. Seems a ton of guys are having the same issues. From everything I've read I've been able to do the following:
    1. Upgrade the BIOS to the latest. I'm actually confused here because I used the Liveupdate feature and it updated my BIOS to v2.5, yet the latest BIOS on the download page is v1.6???
    2. Setup the BIOS Settings to PCI=4X, MPS=1.4. Disabled all non necessary devices. Disabled spread spectrum
    I still have my RAM at "Enabled by SPD". I don't know what to manually put for settings for my type of RAM. Everytime I try something, it goes into the continuous reboot until I press the reset CMOS button, and I'm using the spec sheet for my RAM.
    I'm posting this from another computer, but when I get to mine, I will post the info that I'm currently using.
    Has anyone been able to completely eliminate this problem???

    Ok, here's the RAM type that I currently have:
    KVR1333D3N9K2/2G
    2GB (1GB 128M x 64-Bit x 2 pcs.) PC3-10600 CL9 240-Pin DIMM Kit
    DESCRIPTION:
    ValueRAM's KVR1333D3N9K2/2G is a kit of two 128M x 64-bit 1GB (1024MB) DDR3-1333 CL9 SDRAM (Synchro- nous DRAM) memory modules, based on sixteen 64M x 8-bit DDR3-1333 FBGA components per module. The SPDs are programmed to JEDEC standard latency 1333Mhz timing of 9-9-9 at 1.5V. Each 240-pin DIMM uses gold contact fingers and requires +1.5V. The electrical and mechanical specifications are as follows:
    JEDEC standard 1.5V ± 0.075V Power Supply VDDQ = 1.5V ± 0.075V
    667MHz fCK for 1333Mb/sec/pin 8 independent internal bank Programmable CAS Latency: 5,6,7,8,9,10 Posted CAS
    Programmable Additive Latency: 0, CL - 2, or CL - 1 clock Programmable CAS Write Latency(CWL) = 9(DDR3-1333) 8-bit pre-fetch
    Burst Length: 8 (Interleave without any limit, sequential with starting address “000” only), 4 with tCCD = 4 which does not allow seamless read or write [either on the fly using A12 or MRS] Bi-directional Differential Data Strobe
    Internal(self) calibration : Internal self calibration through ZQ pin (RZQ : 240 ohm ± 1%) On Die Termination using ODT pin
    Average Refresh Period 7.8us at lower then TCASE 85°C, 3.9us at 85°C < TCASE . 95°C Asynchronous Reset
    1066Mbps CL7 doesn’t have backward compatibility with 800Mbps CL5
    Anyone have any ideas what manual memory settings I should try?

  • Help with button actions

    Hi all,
    The last Flash version that I am use to, is 5.5 which was extremely easy to use. I have used CS3  a little, but now I have CS4. You use to be able to set the action right in the button, then just copy the button. Now it's totaly different. I have watched some tutorials in Adobe TV, but find that my property windows do not look like theirs, which is very confusing.
    Can any one point me to some URLs that show me basic buttons tutorials, such as: on release goto and play scene 1 frame 10, etc.
    Thank yoou
    HDsuperglide

    you can use as1 if you want.  cs3, cs4 and cs5 are all backwards compatible with the coding style you've used in the past.
    nevertheless, i'm not an adobe employee/company rep.
    this forum is for people that want help and i'm here to help people that want help.
    if you want to complain/provide suggestions, here's the place for you:  https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • Newb here witha few questions.

    Not a newb to macs but to my powerbook. I had a Powermac G3 all in one beige with 384 MEGS of ram, 9.2 OS and a factory speed of 233 MGHZ clocked to 280 and 4 GIG HD and CD drive. It since died a few years ago when the power unit/supply...i am guessing, crapped out. I now just purchased a Lombard 400 MGHZ powerbook G3 DVD/CD, with 64 MEGS of ram and a 6 gig HD. There is some things i need to get for it...ram, batteries and a bigger hardrive but i am happy with it. I am running 10.2 on it right now and REALLY need more memory. I am about to install 9.2 on it as well. My question is the PC slot on the left side, what can go there? I know the 333MGHZ Lombards use a DVD decoder there but mine does not since its built in. What sorta things can go there? Also i have a 10.3 CD here...should i install it as wellor will it make it run slower since i only have the 64 MEGS right now.

    Brandon:
    Here is one topic in Discussions that might give you some clues.

  • Newbie here with a host of problems

    Just got my I ipod touch and besides having to re-register every time I log on, I am also having problems with my ipod being seen as a device in itunes. Somehow I managed to download one song from itunes and play it on my ipod. When I went back on itunes to purchase another song, not only did it not recognize the ipod again, but I could not sync the new song and then the first song that I did sync was no longer on my ipod. What happened to the song that I downloaded? I am so disgusted. I can't get anything accomplished. Please help!

    My advice would be to make sure you have the latest software. When you connect your IPT (iPod Touch) to your computer, iTunes should show your IPT. The latest software is 1.1.3. If you have 1.1.1, update to 1.1.2. and then to 1.1.3. You can find out which version you have in one of two ways: 1) On your IPT (not hooked to the computer) at the home screen, select Settings->General->About. You should have Version 1.1.3 (4A93); 2) in iTunes, Click on the IPT and you'll see the Summary tab. It will let you know if you have an update available. Now if you don't have the updated software,click Check For Update. If the update doesn't help, click the Restore button on iTunes. It'll reset your iPod and will sync everything back on.
    Don't feel like an idiot: it's new so you have to learn it. We're here to help!
    Message was edited by: sman02

  • Newbie here with automatic update problem.

    Hi everyone,
    I just purchased a palm centro for sprint and so far I really like it. The problem is every morning when I get up there is this message...
    Sorry, your secheduled automatic updte did not complete successfully because a connection could not be establised--32485
    Can anyone help me with this? I would appreciate any advice. Thanks.
    Leila
    Post relates to: Centro (Sprint)

    Hello Leila and welcome to the Palm forums.
     This is likely an error message from the My Centro application of the Palm Software (store) application.  The problem is that one or both of these applications is waking up while you're asleep and trying to check for content updates (not really needed in my opinion) and the Internet connection on your phone is currently closed.
     I don't use either of these applications on my Treo 755p (My Centro is called My Treo).  If you launch these apps on your Centro, and then press the Menu button on your keyboard you should be be able to access the menu item that controls software updates and turn off the updates.
     Other applications on your Centro may also be looking to check for updates.  I would also check Pocket Tunes (pTunes) to see if it is looking for updates also.
    Hope that helps,
    Alan G
    Post relates to: Treo 755p (Sprint)

  • Help newbie here with Mac Airport Extreme

    Hello Everybody,
    I just purchased my first mac (new macbook). im so excited. i also purchased a airport extreme base station together with the macbook. i was wondering if i can set-up the airport base station with my PC? my pc does'nt have any wireless just a plain ethernet card. can you guys help.
    thanks in advance
    eugene

    just plug the pc into your airport extreme (won't work on express in the same way). i have had a few issues with full access by both my ibook and pc to each others shared files, so i am still working the network. however, from the beginning, my pc has had full broadband access through the ethernet.
    have fun!
    chewy

Maybe you are looking for

  • Static Text - Font Size

    I have a requirement for an Add-On form to make the text larger than normal (larger than than all the other forms) as it needs to be read from some distance away. it_STATIC items do not have a FontSize attribute, is there another way of overriding th

  • We're new here, who can help us?

    Hi everyone, well, i'm very interesting in Abode LiveCycle. And the main problem is: I have a working well system, which can take some requests from users and after resend them PDF documents with digital sign (electronic digital signature). Who can h

  • E-mailing using iPhoto 11

    Hi there, I just installed iLife 11 yesterday. Right now I am trying to write an e-mail with photos in it. I just upgraded from 08. In 08 you can choose different sizes for the photos small, medium, large. I just want to send a quick small e-mail. Th

  • Switching view controller crashes

    I set a button to change the view controller and i get this error please help

  • Insert date on a condition

    I would like to insert the current date and time if a condition is met. 'Now' and 'Today' upadate to whatever is current. I want something that will put in the date and time at the moment, and leave that. Is there a way to do this?