Different sizes

how to draw two cars in different sizes?
import java.awt.Graphics;
import java.awt.Graphics2D;
import javax.swing.JComponent;
This component draws two car shapes.
public class CarComponent extends JComponent
public void paintComponent(Graphics g)
Graphics2D g2 = (Graphics2D) g;
Car car1 = new Car(0, 0);
int x = getWidth() - 60;
int y = getHeight() - 30;
Car car2 = new Car(x,y);
car1.draw(g2);
car2.draw(g2);
import java.awt.Graphics2D;
import java.awt.Rectangle;
import java.awt.geom.Ellipse2D;
import java.awt.geom.Line2D;
import java.awt.geom.Point2D;
public class Car
public Car(int x, int y)
xLeft = x;
yTop = y;
public void draw(Graphics2D g2)
Rectangle body
= new Rectangle(xLeft, yTop + 10, 60, 10);
Ellipse2D.Double frontTire
= new Ellipse2D.Double(xLeft + 10, yTop + 20, 10, 10);
Ellipse2D.Double rearTire
= new Ellipse2D.Double(xLeft + 40, yTop + 20, 10, 10);
Point2D.Double r1
= new Point2D.Double(xLeft + 10, yTop + 10);
Point2D.Double r2
= new Point2D.Double(xLeft + 20, yTop);
Point2D.Double r3
= new Point2D.Double(xLeft + 40, yTop);
Point2D.Double r4
= new Point2D.Double(xLeft + 50, yTop + 10);
Line2D.Double frontWindshield
= new Line2D.Double(r1, r2);
Line2D.Double roofTop
= new Line2D.Double(r2, r3);
Line2D.Double rearWindshield
= new Line2D.Double(r3, r4);
g2.draw(body);
g2.draw(frontTire);
g2.draw(rearTire);
g2.draw(frontWindshield);
g2.draw(roofTop);
g2.draw(rearWindshield);
private int xLeft;
private int yTop;
import javax.swing.JFrame;
public class CarViewer
public static void main(String[] args)
JFrame frame = new JFrame();
frame.setSize(300, 400);
frame.setTitle("Two cars");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
CarComponent component = new CarComponent();
frame.add(component);
frame.setVisible(true);
}

fiendcs wrote:
how to draw two cars in different sizes?If you had written that code, you would know how.
Also, please use the code tags when posting stolen code in future.

Similar Messages

  • Mixing memory module of different sizes in G5-8 slot machine

    is there a problem with Mixing memory module of different sizes in G5-8 slot machine
    I have 2gb on four slots with 512 memory chips
    Can I upgrade my memory with 1gb chips in the remaining four slots.

    Hi epospiech-
    Yes you can.
    Instructions here: Memory (DIMMs) Replacement Instructions
    Luck-
    -DaddyPaycheck

  • In Pages 5, why are page thumbnails different sizes?

    So I'm using 5. And I must say I think it's brilliantly done after a long period of ******** about it. I guess I'm not asking of it anything it doesn't provide and what it does it does very well - though I'm puzzled by the behavior of selecting text via the keyboard.
    Anyhow, that's not my question. I'm working with a long text document. I notice that as I work the page thumbnails become different sizes. It's subtle but it's clearly intentional. I reckon it's trying to tell me something but I don't know what. Haven't been able to find any info in the manual and was wondering if any of you clever people here might know. Thanks.

    This is what I meant about how rude you are though.  Your answer DOESN'T EXPLAIN ANY OF THE BEHAVIOUR myself or the other person were reporting.  The only assumption that I can make is that you posted here for the sole purpose of implying that we are both mistaken or stupid. 
    How is this helpful at all? 
    How do you have 32,485 points when you are obviously more concerned with insulting people than helping them out?  It puts the lie to the whole idea of "Apple Support Communities." 
    Also, I specifically informed you that your comments were insulting and unhelpful and politely requested you not post on this thread anymore or at least until you had some kind of actual information, yet here you are.  Posting again, with no content other than the implied insult.
    I'm not stupid.  I know what a section break is, I know what a page break is.  I'm a writer who has used innumerable word processing programs over the years and have been an IT worker for 10 years now. 
    I have a Pages document.  It has no (or only one depending on your point of view), section(s).  It has page breaks only.  The pagination is set to start at "1" on the first page and proceed normally to the end of the document (300 or so pages).  I am using Pages 5.5.2 on a brand new iMac.  I have NONE of the previous or older versions/types of Pages on my computer. 
    The pages thumbnails on the side, do actually CHANGE SIZE randomly as I am editing the document.   These differing sizes are NOT CORRELATED WITH THE BEGINNING OR ENDING OF SECTIONS.  These size changes are also NOT CORRELATED WITH THE PAGE BREAKS (in case you were about to argue the similarity of page breaks and section breaks).  As I work through the document and scroll up and down editing here or there, the size of the thumbnails RANDOMLY CHANGE SIZE.  Sometimes this is correlated with me working on a section, sometimes I can work on a section and no change happens at all.  The thumbnails that change size often change back again when I scroll back to them later on. 
    So please ... Try to act like a decent human being and either help out, or go away.  STOP POSTING THAT WE ARE WRONG, when you DON'T in fact know we are wrong.  STOP INSULTING ME by assuming I am stupid. 
    Why are you even here if you don't want to actually HELP anyone? 
    To anyone else reading this:  I am having a real bad time with this fellow who is just the most insulting person I have met for a while, however many of my posts about him are being deleted.  If anyone knows (including the mods of this forum) of the proper way to REPORT or get rid of a troll/abuser like him on Apple Support Communities or a place to report his behaviour, please let me know. 

  • Photo Gallery thumbnails in business catalyst render in different sizes in different browsers

    Photo Gallery thumbnails in business catalyst render in different sizes in safari and chrome but are fine in firefox. What is the issue with Safari? I have tried the different algorithm options such as fill_proportional etc and firefox is the only browser that displays correctly. I thought safari was the most standards compatible browser - what's the problem here?

    Hi,
    If you have seperate XML file but with the same basic structure then you can change the XML a Spry dataset refers to and regenerate the spry region without reloading the full page.
    So on my photo gallery page I can change the album the photos are shown from via the seturl sprydata function as below.  dsPhotos being my Spry dataset that points to the relevant XML dataset with my image references and captions etc.  My XML is actually dynamically generated from Picasa RSS feeds (and RSS feeds are XML) but the principle will be the same with your static XML.
    First I add an event listener for when someone clicks on an album (the li tag within my div with the id "albums" holds a photo and title for each album.)
    function Albums()
    var myalbums = Spry.$$("#albums li", "TabbedPanels1")
    var rows = dsAlbums.getData();
    var setListener = function( element, value )
      Spry.Utils.addEventListener( element, "click", function(){ showAlbum( value ); },false );
    for( var i = 0, length = myalbums.length; i < length; i++ )
      setListener( myalbums[i], i );
    Then this is the code which changes the photo album to be shown. (when the user clicks the relevant album)
    function showAlbum(i)
    pauseShow();
    pImage = 'No';
    var rows = dsAlbums.getData();
    var albumid = rows[i]["albumid"];
    var url = "xml/PicasaAphotoFeed.asp?albumid=" + albumid;
    dsPhotos.setURL(url);
    dsPhotos.loadData();
    var rowcount = dsAlbums.getRowCount() - 1;
    var nextalbum;
    var navnext;
    var n;
    The page is here www.thehmc.co.uk/photo5.html is you want to see it in context.
    In your case showAlbum would switch between Frank.xml or Wolfie.xml depending on how you decide to name your xml datasets.
    Regards
    Phil

  • How can I use the print module to print different size images on one large "canvas"?

    How can I use the print module to print different size images on one large "canvas"? An example would be in Photoshop, go to file>new, and create the size paper I want, and move images of different sizes onto it.
    I was thinking the print module would do this automatically for me.

    You can't, at present. It's been a requested feature, so we'll see if it shows up in a future version, but it's not there at present.

  • How do you can change the page size of a pdf in MAC?  I have multiple pdf documents of different sizes that I want to combine.

    Help.  How do I change the page size of a pdf in MAC?  I have multiple pdf documents in varying sizes I would like to combine and print.

    There's no real need to do that. A PDF can have pages of different sizes.
    On Fri, Jun 6, 2014 at 4:11 AM, christine rambo <[email protected]>

  • [Intel] Mixing different size and brands of memory. MSI 6507 Motherboard.

    Hello,
    Does anyone know if it is ok to mix, firstly different size ram and secondly - different brands. I am currently using a 1x PC2100 512mb stick and 1x PC2100 256mb stick (Different Brands) and have never had any problems. However I am looking to replace the 256 stick with either another 512 or 1g, when searching on the net most of the advice is not to mix brands and always use pairs rather than different size sticks?
    I have a MSI 6507 MB
    Thanks

    Hi
    Using matched pairs is still the best way to go with memory but that doesn't mean that having different brands won't work.  It is a crap shoot when mixing different sticks of memory.  Sometimes it works fine but most of the time it causes problems.

  • Portfolio pdf- why is text in different sizes on each page of pdf?

    Even though i have saved my images with text (always  font size 12) as the same size (eg. 10in x 10in at 100ppi),  each time i save the images as a pdf the pdf then has all different size text from image to image-  a complete mess as a portfolio.
    Also when i then changed the size of the image and saved it as a copy, both images and text stay the same size!  though both the ppi and scale differ in each images....
    How do i change this? any tips appreciated!

    You can't write directly in PDF from Output Module, only add a header or
    footer text but that will repeat itself each page.
    You could try so in an app like Word or if you have Pages or other design
    application it would be possible to make your own layout and text and from
    there save as PDF.
    You can also try in PS, just create a template frame (new file) big enough
    to paste the images in and with space around including more at the bottom
    where you add the text you want. On the frame put a text layer and the file
    layer for the image by either drag and drop or copy paste. Resize the image
    till it fits in the frame
    You cans resize the image on the template layer to fit in the frame as you
    like and save as new files.
    Now you have same sized frame with same ppi and font size.
    With this files selected in Bridge in the order you want choose Output
    Module with option for paper size, landscape or portrait, background color.
    Choose 1 column and 1 row including auto space, deselect filename and
    extension and also deselect header and footer if thy are not so already
    (unless you want some text and page numbers)
    I created the images in photoshop and then  i use the bridge adobe output
    module- the pdf is a multiple page document with one image per page which
    has text written beneath the image -
    as in  the image is saved with a frame with title/text.
    Is there a way of writing individual text directly onto each pdf page
    instead of the image? perhaps this will solve the issue of differing text
    sizes....?

  • I have many photos with file extension of .PDD and that Photo Deluxe 4 no longer will operate in Win 7. How can I open?  Next in Elements 11, how do I load and print different pictures and different sizes options on the same page?

    I have many photos with file extension of .PDD and that Photo Deluxe 4 no longer will operate in Win 7. How can I open?  Next in Elements 11, how do I load and print different pictures and different sizes options on the same page?
    Thanks,
    Shir

    sbmgrams wrote:
    I have many photos with file extension of .PDD and that Photo Deluxe 4 no longer will operate in Win 7. How can I open?
    See here:
    Reading PhotoDeluxe PDD Files

  • I want to use multiple windows because I can make them different sizes so what keystroke can i use to cycle between them?

    I use Mac 10.4.11 and Firefox 3.6.23
    I have found the keystrokes to cycle tabs but i want a keystroke to cycle windows in firefox because you cant make multiple tabs different sizes or locations to overlap them on screen

    I use Mac 10.4.11 and Firefox 3.6.23
    I have found the keystrokes to cycle tabs but i want a keystroke to cycle windows in firefox because you cant make multiple tabs different sizes or locations to overlap them on screen

  • Two machines saving the same file as different sizes?

    My coworker and I both have the same version of Illustratir (CS6) and both use Lion on iMacs, but today noticed something weird. He saved a file similar to a file I had done before as both an eps and a pdf and his file size was more than twice what my file sizes usually are. I thought it was odd, so I copied everything from his file into a new file (same dimensions) and saved out an eps and pdf (default settings), and like I thought, my files were less than half the size of his.
    Why would two machines be saving identical files at different sizes? Is there a setting somewhere I'm missing? Everything in the file is vector, if it matters. There's not even any editable text.

    See the mechanism of saving here: http://superuser.com/questions/66825/what-is-the-difference-between-size-and-size-on-disk
    The size of the "blocks" depends on the size of the disk and how it's been formatted.

  • Why is the body area of my site a different size in the preview view than than in the design view?

    Why is the body area of my site a different size in the preview view than than in the design view?

    Why is the body area of my site a different size in the preview view than than in the design view?

  • ≥≤ Symbols output in different sizes. Please help!

    Working in Quark Xpress 9.5.1, on OS 10.8.4 using Font Agent Pro 5.028...
    I am having difficulty with the the font Helvetica Condensed. Sometimes the greater than/equal (≥) or less than/equal signs (≤) are different sizes. We have three different macs all set up with same software/versions and using the same font library. Each one is outputting differently. We have struggled with this same issue through various OS and various versions of Quark and Font Agent Pro.
    I am not very knowledgeable about all of the things that can go wrong with fonts - and I just don't know how to get to the source of our issue.
    This happens using both Adobe and Allied Fonts.
    Please help!

    The usual problem is that at print time, your printer does not have the exact font available, and substitutes a different font that it thinks should be comparable. The letters sometimes work, but special symbols are rarely the same in all aspects in different fonts.
    If there is a Printer option to do so, tell it not to do any Font substitution.

  • Two hard drives with exact same files showing different sizes

    I have two WD external drives, one which I'm trying to dedicate solely to Time Machine backups.  In transferring data from the one I intend to use for that purpose to the other, I'm finding that all the files transferred but that the folders register as having different sizes (e.g. one video folder has the same number in each, but on the original disk it was 4.43 GB in total and is only 4.26 GB on the new disk).
    I've read that there could be hidden system files that didn't move, but if that's the case does it matter?  Both drives are the same model but are differently formatted.
    Thanks

    but are differently formatted.
    That could be the cause. Files are not written to a disk in bytes, they are written in blocks that are a minimum size. For instance, if the minimum block size is 1KB, the a 5 byte file will occupy 1KB on the disk. So, depending on the block size of the drive format, you may get different results.

  • How do I make a 20 X 30 print with layers of 16 X 20, 12 X 18, 11 X 14, 8 X 12, 8 X 10, 5 X 7 and 4 X 6 of the same image to display the different sizes available to someone?  Using Elements 13 with Windows 8.1

    How do I make a 20 X 30 print with layers of 16 X 20, 12 X 18, 11 X 14, 8 X 12, 8 X 10, 5 X 7 and 4 X 6 of the same image to display the different sizes available to someone?  Using Elements 13 with Windows 8.1
    A senior citizen needs some help.
    Thanks

    Saving each image as different size - is it an option for you?  I would save images with their name as: 20x30.png, 16x20.png etc etc.
    Or explain whether you want these in a webpage  in which case only one image is necessary and different sizes are displayed with good CSS code.  this is question for Dreamweaver forum if this is what you want.

  • Multiple stages on multiple screens of different size

    I'm working on a project that requires me to have two stages on two screens of different size. How do I do this in Flex, or is it even possible?
    More specifically, I am building a kiosk appliction, that will have the menu on a small touch-screen that sits in front of a larger, wall-mounted screen. When the user selects content to be played (videos, web sites, whatever) from the touch-screen, then the effect of that selection needs to be sent to the other stage. I need to be able to run a screen-saver on the main screen, also. Basically, the controls are the main application, and the other screen is simply a container for viewing things.
    I am currently packaging my Flex project in AIR, not through the web, so I actually have a windowed application. Basically, I just need to create a new window with a custom chrome that simply holds a movie.
    Is such a thing possible in Flex? I couldn't figure out how to spawn another stage, much less one that was referencable from the first stage.

    Hey all. I have reached the answer. I left everything up that I posted before, in case anybody is having similar issues. To create the custom component, click your project, create a package, and then right-click that package and create a new MXML component. Then, create the MXML just like you would before. Your root tag will be whatever you are working to modify (so, s:Window for my case, but you can do an s:Label or whatever you want). So, first, I'll give you the code for my simple Window component:
    [CODE]
    <?xml version="1.0" encoding="utf-8"?>
    <!-- This is a window component which creates a transparent window with no system chrome (no bars, close, min, max buttons, resize stuff) that contains... This screen is spawned from the main MXML WindowedApplication using AS 3. -->
    <s:Window xmlns:fx="http://ns.adobe.com/mxml/2009"
                        xmlns:s="library://ns.adobe.com/flex/spark"
                        xmlns:mx="library://ns.adobe.com/flex/mx"
                        systemChrome="none" visible="true" transparent="true" showStatusBar="false" width="400" height="300"
        <s:layout>
            <s:BasicLayout />
        </s:layout>
        <s:Label id="controlScreenTitle" text="new Window from VideoScreen component" fontSize="72" fontWeight="normal" color="#222222">
        <s:filters>
            <s:DropShadowFilter color="#CCCCCC" />
        </s:filters>
        </s:Label>
    </s:Window>
    [/CODE]
    All I did was a very simple white box there. You can disable the system chrome and such from the main Window tag, as I have shown. The window this creates has no [ _ ] [ [] ] [ x ] buttons, bar along the bottom, or any background. In my actual project, this component will hold a container to play my video objects.
    Then, I create my main document:
    [CODE]
    <?xml version="1.0" encoding="utf-8"?>
    <!-- This is the main MXML file for the application. MXML is based on pure XML, and is actually a short-cut to generating AS code. You use MXML to set up the layout of the stage. -->
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                            xmlns:s="library://ns.adobe.com/flex/spark"
                            xmlns:mx="library://ns.adobe.com/flex/mx"
                            showStatusBar="false" alwaysInFront="false"
                            creationComplete="init()">
        <!-- Imports -->
        <fx:Style source="KioskScreensStyles.css" />
        <fx:Script source="controlScreenMain.as" />
        <fx:Script>
            <![CDATA[
                /* Insert other ActionScript stuff here. Try to put as much of it as you can in the .AS file, though */
            ]]>
        </fx:Script>
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., variables, services, value objects) here -->
            <!-- Any variables placed in here will be global, and live for the entirety of the entire program's run. However, for simplicity's sake, I have placed all of those for this application in the imported .as file. But, for reference, they are described using MXML. ie: -->
            <!--<fx:Type id="ASReferencableName">Value of the variable</fx:Type>-->
        </fx:Declarations>
        <s:BorderContainer id="controlInterface" right="0" left="0" top="0" bottom="0" borderStyle="inset" borderColor="#CCCCCC">
            <s:layout>
                <!-- There are several layouts available to you:
                        * s:BasicLayout will allow you to completely control all placement. Objects are absolutely placed, and don't move from their position on the stage, even if the screen scrolls.
                        * s:TileLayout can be used to create grids of button objects.
                        * s:HorizontalLayout and s:VerticalLayout will lay out elements horizontally or vertically on the stage. You can specify padding around each object (example below). Placement will begin from top-left corner of the visible stage. If you go with either of these, then no x, y properties on elements will be used, as the system will automatically place all elements in the order that they are created.
                -->
                <s:BasicLayout />
                <!--<s:TileLayout columnAlign="justifyUsingWidth" rowAlign="justifyUsingHeight" />-->
                <!--<s:HorizontalLayout verticalAlign="middle" paddingLeft="10" paddingRight="10" />-->
            </s:layout>
            <!-- We default the text of this ID as an error, showing that the .as did not link up. -->
            <s:Label id="controlScreenTitle" text="Error loading program..." fontSize="48" fontWeight="normal" color="#222222">
                <s:filters>
                    <s:DropShadowFilter color="#CCCCCC" />
                </s:filters>
            </s:Label>
            <!-- Creating the menu buttons for playing the movies -->
            <s:ToggleButton id="btn1" label="Play video 1" click="btn1_clickHandler(event)" />
            <s:ToggleButton id="btn2" label="Play video 2" click="btn2_clickHandler(event)" />
            <s:ToggleButton id="btn3" label="Play video 3" click="btn3_clickHandler(event)" />
            <s:ToggleButton id="btn4" label="Play video 4" click="btn4_clickHandler(event)" />
            <s:ToggleButton id="btn5" label="Play video 5" click="btn5_clickHandler(event)" />
            <s:ToggleButton id="btn6" label="Play video 6" click="btn6_clickHandler(event)" />
        </s:BorderContainer>
    </s:WindowedApplication>
    [/CODE]
    Now, the important part will be the .as file. Here's parts of that:
    [CODE]
    /* Imports */
    /* import custom components. This is what allows us to open a new window in AIR. NOTE: THIS IS HOW YOU GET THAT CUSTOM MXML FILE IN HERE TO USE */
    import customComponents.VideoScreen;
    // import older mx stuff only when needed. Try to avoid using these.
    import mx.controls.Image;
    // import the newer Spark components. Use these for everything possible.
    import spark.components.VideoDisplay;
    import spark.components.Window;
    import spark.primitives.Rect;
    // Global variable declairation
    protected var screens:Array = Screen.screens;
    protected var controlScreenSizes:Rectangle = screens[0].bounds;
    protected var videoScreenSizes:Rectangle = screens[1].bounds;
    // All variables below Defined in init(), to be sure that they have been fully loaded
    // While the :Window declairation technically works for the controlScreen, Flash views this as an error, and will not process everything properly if I type it like that.
    //protected var controlScreen:Window = this.Window;
    protected var controlScreen;// = this;
    /* NOTE: THIS IS THE USE OF MY NEW, IMPORTED CUSTOM WINDOW. This is all you need to do to make it. */
    protected var videoScreen:VideoScreen = new VideoScreen();
    protected var btns:Array;
    /* Initialize all my variables, and call the needed functions to set everything up */
    protected function init():void
        controlScreen = this;
        // This is a Window method that opens the Window. I did not have to code this.
        videoScreen.open(false);
        btns = [btn1, btn2, btn3, btn4, btn5, btn6];
        placeScreens();
        createControlScreen();
        loadScreenSaver();
    /* Moves all my screens so that they sit in the top-left of each of the two screens, and then expands to be full screen on those two screens, whatever size that may be. */
    private function placeScreens():void
        // We move it to -1,-1 because there is 1 px padding and dead white space that I can't figure out how to remove.
        controlScreen.move(-1,-1);
        controlScreen.width = (controlScreenSizes.width+1);
        controlScreen.height = (controlScreenSizes.height+1);
        controlInterface.width = (controlScreenSizes.width+1);
        controlInterface.height = (controlScreenSizes.height+1);
        videoScreen.systemChrome = "Standard";
        videoScreen.move(controlScreenSizes.width,0);
        videoScreen.width = (videoScreenSizes.width);
        videoScreen.height = (videoScreenSizes.height);
    /* Puts all the buttons where they belong, and attached the background image that we need and so forth */
    private function createControlScreen():void
       /* Most of this code is not needed for the demonstration, so I only include what I feel would be helpful, with psudocode for the rest */
        var backgroundImg:Image = new Image();
        backgroundImg.source = "assets/backgroundImg.jpg";
        var backgroundVid:VideoDisplay = new VideoDisplay();
        backgroundVid.source = "assets/backgroundVid.mp4";
        backgroundVid.width = (controlScreenSizes.width+1);
        backgroundVid.height = (controlScreenSizes.height+1);
        backgroundVid.autoPlay = true;
        backgroundVid.muted = true;
        backgroundVid.loop = true;
        /* Format the buttons. You can change height, width, x and y position on the form, label (the text on it), and some other things (including the ability to spawn video or picture or sound when clicked and such for animations. */
        /* buncha code that moved the buttons around and made them all fit in the screen dynamically based on the screen size. */
        /* Finally, play with controlScreenTitle, which is a label control that you can styple and use for text on the screen in addition to the buttons. In here is just a bunch of code to do that*/
        /* Attach the elements to the controlInterface. The first put on has the lowest z, therefore is under the rest. Stack them in the order you want then displayed. The first one should be either backgroundImg (image), or backgroundVid (video), depending on what you provided and want. Note that the video causes the buttons to lag a lot */
        controlInterface.contentGroup.addElement(backgroundImg);
        //controlInterface.contentGroup.addElement(backgroundVid);
        controlInterface.contentGroup.addElement(controlScreenTitle);
        controlInterface.contentGroup.addElement(btn1);
        controlInterface.contentGroup.addElement(btn2);
        controlInterface.contentGroup.addElement(btn3);
        controlInterface.contentGroup.addElement(btn4);
        controlInterface.contentGroup.addElement(btn5);
        controlInterface.contentGroup.addElement(btn6);
        /* Buncha code for the functionality */
    } // End function createControlScreen()
    /* Puts the screensaver up on the video display so that we don't burn out the display */
    private function loadScreenSaver():void
        //pull in screensave into that window
    /* Makes sure that the user doesn't see two buttons active at the same time--that would look like two movies were playing at the same time. */
    private function deselectOtherButtons(clicked:int):void
        for(var i:int=0; i<6; i++)
            if(i != (clicked-1))
                btns[i].selected = false;
    /* All of the below do the same thing: unselect all the other buttons when one of the buttons is clicked. I could just create one click event handler, but I wanted to leave the possiblity of customizing the result of each button's click, so I left it this way. */
    protected function btn1_clickHandler(event:MouseEvent):void
        deselectOtherButtons(1);
    protected function btn2_clickHandler(event:MouseEvent):void
        deselectOtherButtons(2);
    protected function btn3_clickHandler(event:MouseEvent):void
        deselectOtherButtons(3);
        deselectOtherButtons(4);
    protected function btn5_clickHandler(event:MouseEvent):void
        deselectOtherButtons(5);
    protected function btn6_clickHandler(event:MouseEvent):void
        deselectOtherButtons(6);
    [/CODE]
    If anybody looking at this has any questions about it, feel free to ask me. I am not usually able to comb the forums, so you'll have to PM me or something. I actually put this up right after I found my solution, so there is work still to be done on it (obviously). But if you ever need to do anything like this, here's some code for you.

Maybe you are looking for

  • Adding new region to Standard page

    Hello, I need to add new region to display added details to the Paid Off Balance Screen. In Jdev, i was able to create a new messageComponentLayout Region and added the correspnding datapoints. Should i always create it as flexibleLayout only, i read

  • EBS - Auto posting not working  if text behind the document number

    Hi, When the document number is at the end of the payment reference, there is no problem.     However, when there is text behind the document number, the posting rule doesn't work anymore.     The autoposting also fails when there is a seperator (lik

  • Adobe flash download help ???

    Hello.  I repeatedly successfully ??? download adobe flash player only to repeatedly have a box pop up when I attempt to listen or access something online saying "Opps, you need to download the latest adobe flash player to access this"  HELP... how c

  • When updating through the Appstore i am asked to buy products again, how do i fix?

    GarageBand and iPhoto came preloaded on my new Macbook Pro but when i try to update them through the Appstore a message appears telling me that i can only update programs that i have previously purchased, which i did, effectively, when i bought my la

  • RSA1 is not working after working on Open Hub service in BI 7

    Hi, RSA1 is not opening after I create open hub destination in BI 7. Its giving an error 'Destination type is not supported'. I have seen from forum for this as there must be an entry deleted from certain table for resolving this.But I don't know whi