Drawing with graphics

If I draw a rounded rectangle from top to bottom, the corners are nicely rounded. If I draw the rectangle from bottom to top the entire shape is rounded instead of just the corners. How can I draw from bottom to top and still round just the corners?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"   creationComplete="init()">
    <mx:Script>
        <![CDATA[
            private function init():void{
                canvas.graphics.beginFill(0xffff00);
                canvas.graphics.drawRoundRect(300,300,50,200, 20, 20);
                canvas.graphics.drawRoundRect(600,500,50,-200, 20, 20);
        ]]>
    </mx:Script>
<mx:Canvas id="canvas"    />
</mx:Application>

If I draw a rounded rectangle from top to bottom, the corners are nicely rounded. If I draw the rectangle from bottom to top the entire shape is rounded instead of just the corners. How can I draw from bottom to top and still round just the corners?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"   creationComplete="init()">
    <mx:Script>
        <![CDATA[
            private function init():void{
                canvas.graphics.beginFill(0xffff00);
                canvas.graphics.drawRoundRect(300,300,50,200, 20, 20);
                canvas.graphics.drawRoundRect(600,500,50,-200, 20, 20);
        ]]>
    </mx:Script>
<mx:Canvas id="canvas"    />
</mx:Application>

Similar Messages

  • Drawing with a graphics tablet in Flash

    Hey community!
    I recently got the newest version of Flash and wanted to do some drawing with my graphics tablet, but whenever i try to draw a freehand line, using the pencil or paintbrush tool, then for some reason, it draws a straight line leading to the bottom left side of the screen, and i have no idea why it is doing this.
    When i use the tablet to draw in Photoshop, then it works absolutely fine, but not in Flash
    Any help will be lovely!!
    Thank you

    Hi,
    The issue is resolved in the latest update of Flash Pro.Please update Flash professional to 14.1.0.96 .Follow the instruction below for the same :
    Installation instructions
    Log out and log in to the CC desktop application. Update the application when prompted.
    You should see the list of new updates as soon as the new CC desktop application is launched.
    Install Flash Professional CC and Mobile Device Packaging app. On a high speed connection, it took me around 8 minutes.
    After the application is installed, you can launch the application directly from the desktop app by clicking on it.
    Thanks & Regards,
    Sangeeta

  • Drawing 2D graphics with no frame or no panel ?

    Hi,
    I would like to know if it is possible to draw 2D graphics directly over the OS(windows2002) ? like drawing a rectangle over the desktop without any JPanel or JFrame.
    cheers,
    sletourne

    It is possible, I've done it ;-)
    import java.awt.*;
    import java.awt.event.*;
    public class JustSomething implements WindowListener
         public static void main(String args[])
              new JustSomething();
         public JustSomething()
              Frame winf = new Frame();
              winf.setLocation(2000,2000);
              winf.add(new java.awt.Label("If you see this you have a mighty big screen"));
              Window win = new Window(winf);          
              win.setSize(width,height);
              winf.addWindowListener(this);
         public void windowOpened(WindowEvent windowevent){}
         public void windowClosing(WindowEvent windowevent){}
         public void windowClosed(WindowEvent windowevent){}
         public void windowIconified(WindowEvent windowevent){}
         public void windowDeiconified(WindowEvent windowevent){}
         public void windowActivated(WindowEvent windowevent){}
         public void windowDeactivated(WindowEvent windowevent){}

  • Need help with Graphics and Severs

    I'm not sure if this is the right place to post this question so please tell me if i should move it else where.
    I am trying to make a server that will connect two applets on different computers. I got it so they can talk to each other though text(i.e. Once types something into a text box, it shows up on the other) but i cannot find out a way to do the same with graphics( i.e. one draws something, it shows up the same on the other). DOes anyone have any idea what i can do. Thanks!

    ok, i now have another problem. When i try to get this code to work, it gives me an java.io.NotSerializableException. Here is the code that is not working using the Message class that you wrote:
    ObjectOutputStream os;
    //later on in code
    os.writeObject(new ImageChatMessage(ImageChatMessage.IMAGE,someImage));
    //this is where it gives me an errorThis is the complete error that it gives me:
    java.io.NotSerializableException: sun.awt.image.OffScreenImage
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.writeUnshared(ObjectOutputStream.java:368)
         at client.Fight_Applet.run(Fight_Applet.java:150)
         at java.lang.Thread.run(Thread.java:613)
    Do you have any idea what is causing this and how i might be able to fix it?

  • How do I use Automator to duplicate a folder with graphics on my desktop and erase their Resource forks?

    How do I use Automator to duplicate a folder with graphics on my desktop and erase their Resource forks?
    I do not use command line and tried to use ZapResourceForksAMAub_1.2 which I downloadedand instaled the Zap Resource Forks.action. Next I tried to use their sample copy-zap-rsrc.workflow in Snow Leopardon my Mac Pro. The 3 different steps are displayed in Automator but there is no place to put in which folder (on my deskto) to copy, and remove the resource forks from the graphic files.
    Can sombody please step me through this please please.
                                                                                          W.W.

    Unfortunately, Back to My Mac only works across computers using the same iCloud account.

  • Black screen after login while on battery with graphics switching enabled

    Getting a black screen after entering my password while logging into my account while on battery with graphics switching enabled. Everything is up and running, I just can't see it.
    I can log into the guest account on battery
    I can log into my account while plugged into power
    I can log into my account on battery if graphics switching is disabled
    I believe something that is starting up in my account is causing the system to switch from integrated to discrete graphics on login, and that switch isn't working correctly on battery power.
    As a work around for now, I can run with graphics switching disabled, but I'd like to solve this so I get longer battery life.
    MacBook Pro Retina 15"
    Mountain Lion
    All updates applied

    I had the same issue and managed to reslove it.
    Shut down your machine.
    Power it back on while holding the 'shift' key (left or right, doesn't matter)
    You will see a greay progress bar go across the screen while you boot in to 'safe boot'
    Once booted, login, and go to Energy Saver and turn on 'Automatic Graphics Switching'.
    Reboot back in to normal mode, and you should be able to log back in and see again.
    I did this without being plugged into AC power.
    Hope it helps!
    Cheers!

  • Issue with graphics tearing on thumb scroll in Flex 3

    We are seeing some off issues with graphics (one using the charting package and the other using degrafa) tearing on thumb scrolling in a large Flex 3 app.  It's very hard to reproduce on OSX with the latest versions of Safari and Firefox, but it shows almost immediately when you run the app on Windows or Linux (regardless of the browser).  I took one of the pieces out of the app and put it into a very simple testbed app and can't get the problem to show on Windows (i was hoping to isolate the issue in a smaller test case, but no such luck).
    So, ii've got a few idea's on how to work around the issue, but i was wondering if anyone else has seen this type of problem before?
    Problem:   
         - graphics tear on thumb scroll
         - doesn't happen if you click in the track or use the arrows
         - one view is using the charting package, the other view is using degrafa
    Thanks for any comments or suggestions...
    Richard

    SOLUTION:  changed wmode from "opaque" to "window" in the jsp serving as the wrapper for the app's main swf...
    Here's the reference we used to determine the proper setting for wmode;
    http://kb2.adobe.com/cps/127/tn_12701.html
    Thanks again for the response...  Richard

  • Batch create Multiple files in Acrobat X and X1 cannot convert Word 2010 with graphics

    I work for an exams board where hundreds of exam papers are produced. Once approved, these exams are converted to PDF and sent to print.  Using the Batch Create Multiple Files option is therefore essential to getting these papers print ready on time.  We have found that using this function to convert multiple Word 2010 files with graphics will not render it properly.  It deconstructs the graphics which loses the integrity of the exam paper. 
    I have trialled the same group of files on Acrobat X1 with the same result.
    Have other Acrobat Pro Users experienced the same problem?  Is there a fix? 

    I have uploaded the files and shared them.  These are the links
    Grade 11 Maths Standardisation Project Paper 2 2013.doc
    https://files.acrobat.com/preview/9694310d-ca7f-4919-883d-c53b36215d89
    Grade 11 Maths Standardisation Project Paper 2 Analysis Grid 2013.doc
    https://files.acrobat.com/preview/97da9e5f-d412-4d25-9bbc-d1a525d90826
    Grade 11 Maths Standardisation Project Paper 2 Diagram Sheet 2013.doc
    https://files.acrobat.com/preview/f50dd62e-af04-4060-85c5-fa81ce6803d8
    Grade 11 Maths Standardisation Project Paper 2 Formula Sheet 2013.doc
    https://files.acrobat.com/preview/7fc6007b-aaa6-4d65-9a8c-bf99818474a5
    Grade 11 Maths Standardisation Project Paper 2 Marking Guidelines 2013.doc
    https://files.acrobat.com/preview/b3a715bb-3683-48df-b0ec-3d17442275be
    Grade 11 Maths Standardisation Project Paper I Analysis Grid 2013.docx
    https://files.acrobat.com/preview/ab62e6b6-0261-434e-8a2f-382f74335685
    The first file is the problem file.  If you create this file separately, Acrobat will convert it perfectly.  But "Batch create multiple files" and the graphics are deconstructed on page 8

  • Indesign CS5 crash during startup - problem with Graphics.rpln

    I work in an architectural company and already several of our computers have experienced this very rare and unusual behaviour. During start up of Indesign (not clicking on any file but just launching Indesign) it crashes with the following error:
    "Adobe Indesign CS5 has stopped working"
    We use Windows 7 64bit, so the first step I did - I went into Application Log which says, so appears to be a problem with Graphics.rpln.
    -=-=-=-=-=-=-=-=-=-=-===-=-
    Fault bucket 1848500921, type 1
    Event Name: APPCRASH
    Response: Not available
    Cab Id: 0
    Problem signature:
    P1: InDesign.exe
    P2: 7.0.0.355
    P3: 4bad00be
    P4: GRAPHICS.RPLN
    P5: 7.0.0.355
    P6: 4bad03d3
    P7: c0000005
    P8: 0004e1e2
    P9:
    P10:
    Attached files:
    C:\Users\User\AppData\Local\Temp\WER162E.tmp.WERInternalMetadata.xml
    These files may be available here:
    C:\Users\User\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_InDesign.exe_b042 ec9a818cb8fb57eefe0aacb41c22fdcbb8_10c12aa8
    Analysis symbol:
    Rechecking for solution: 0
    Report Id: 9e59fc2c-5b68-11e3-908c-f46d0497fc9b
    Report Status: 0
    -=-=-=-=-=-=-=-=-=-=-===-=-
    I have tried everything I could think of - removed and reinstalled Adobe CS5, manually removed Adobe folders under %Appdata%\Local and %Appdata%\Remote folders (why can't Adobe delete those things during uninstallation is always a total mystery), changed video adapter drivers, cleaned Temp folders, everything I knew...
    None of the other apps like Photoshop or Illustrator CS5 malfunction - only Indesign. What is going on?
    Can it conflict with other software we use? We have Bentley Microstation, 3D Max, Office 2010, Kaspersky Antivirus and LOGMEIN installed on this computer...Any clues, guys?

    Looks to me like you've never installed any of the patches. Last patch for CS5 was 7.0.4, so I'd start with that and see if ti helps.

  • MSWORD templates with graphics look pixelated

    When converting Word templates to PDFs with both text and graphics, the text renders fine in the PDF, but the graphics look very pixelated and fuzzy and ragged.  Have tried both .doc and .docx files, and with graphics as JPG and EPS files.  Same results. 
    Any ideas here?

    They do print pixelated.  All content looks crisp in the word template, but any graphics still show as pixelated and ragged when PDF-ed. Smoothing is turned on.
    Thanks for the tip - any other suggestions?

  • Pdf (with graphics and text) in the email body

    When I place an pdf (with graphics and text) in the body of my email using Mac Mail my recipient sees them as attachments only. I am trying to find a way of presenting a formatted email with graphics that will appear the same way to all recipients, but a pdf frequently ends up being an attachment instead of staying in the body. The pdf  file doesn’t seem to always show up in the body as created. Is there a better way to accomplish this?

    You have no control over how your email maybe rendered by other email servers and client side software.
    Attachment Tamer may give you a few more options but it does not guaranty the end result.

  • How do I save emails with graphics into documents appear as broken page tried saving as html and all files

    I am using Windows 7, and ISP provider is AOL 9.5 dialup.
    When I attempt to save emails with graphics to My Documents,
    any graphics, usually in body of email as a bitmap or jpeg file, when I reopen email from My Documents, the graphics appear blank, as if a broken/torn page. Is there some settings I need to adjust on Firefox to be able to save complete files.

    I'm not a Mac user, that's my caveat, however there is a button on the ribbon for SharePoint Document Libraries on the Library Tab called Connect To Office.
    If that works with Office 2011 you'll start seeing your SharePoint site as a place where you can store documents in Office.
    Otherwise, you need to click "New" in teh library itself and have SharePoint open Office for you.
    w: http://www.the-north.com/sharepoint | t: @JMcAllisterCH | c: http://www.b-i.com

  • Socket with graphics

    hi folk
    i have project to create client server program with multiuser
    i know how to deal with threading server by bassing messages
    but what about if all client will share the same board ( applet with graphics ) how can i deal with that ??

    You have to express what the "board" means in a manner that can be passed over the socket.
    For example...if you're writing a shared whiteboard type applet...then you could express the image or changes to the image on the whiteboard as lists of pixels, and then send those lists over the socket.
    I guess you could also serialize the image and share that, but that sounds to me like it would be harder to synchronize between clients.

  • Drawing with a pencil = circles and rectangles

    When I am drawing with a pencil, the line looks like the shape I want to draw, but when I stop drawing, the shape reshapes to another shape whick looks like circles and rectangles = it does not look like the shape I wanted to draw. What is the problem?

    at the bottom of the tools panel click the pencil mode icon and choose ink or, use the brush tool if you want no adjustment to your drawing.

  • Problem running reports with graphics in 11i

    Hi,
    I have developed some custom reports (using
    Reports 6i) with graphics charts embedded within them. I would like to display the output from within Oracle Applications 11i.
    There seem to be two approaches:
    1. Invoke the report from Oracle Self-Service using OracleOasis.runReport
    2. Register the report as a concurrent request (with HTML/PDF output) and run it using the concurrent manager
    Approach 1 requires the reports server cgi which I start using adrepctl.sh. Approach 2 requires the concurrent manager which I start using adcmctl.sh.
    The problems start to occur depending on how and from where I start these scripts. The exact problem occurs in both cases.
    If these scripts are started:
    1. From a regular telnet window from a windows NT box
    The reports error out with a REP-3000 internal toolkit error
    2. From an Exceed xterm session and I keep the Exceed session alive (I tried both TrueColors and PseudoColors settings)
    The reports work but there are problems with the output - pie colors do not appear (everything is white, for e.g.), etc.
    3. From the Sun Solaris console
    The reports work fine.
    The problem is that method 3 is not very convenient since every time I bring down the concurrent manager or reports cgi server, I need to walk to a different building (where the Sun boxes are) to start it.
    Method 2 above isn't particularly great either (even assuming I can get it to work) since I need to have an exceed session running all the time.
    Can some one offer suggestions to solve the problem I'm having? Even clues on why method 2 above is not working as expected would be greatly appreciated.
    Thanks,
    - NR

    Problem solved! As long as the xhost + is set on the host machine and some one is logged in, it appears that one can simply set the DISPLAY environment variable to point to the host (even from a simple telnet window) and start the reports server or concurrent manager. Looks like you also have to have REPORTS60_NO_DUMMY_PRINTER set to "YES".

Maybe you are looking for

  • File structure in Sun ONE (aka jForte)

    Hi: I have (and want to use) the following sources file-strcutrue: src/applet.java index.htlm applet.class But ONE (AFAIK) just allows to work this way (compiling the .class files in the same directory): index.html applet.java applet.class Does anybo

  • Forms 10g can't generate library!

    Hello, I use forms 10g(Version 9.0.4.0.19 (Production)) for windows to create library, it can be complied, but it can't create plx file! It raise error "FRM-91507". The testing library only contains a procedure which has 'null it. Anyone has this pro

  • SAP XI 30: Enable ABAP Mapping

    Hi everybody, we are on XI 30 and want to enable ABAP-Mapping. What do we have to do? regards Mario

  • Illustrator corrupting files

    Using illustrator to create charts at work and the files keep corrupting. Our IT department has looked into this but have said it is a programme issue. Also there are forums that say the same. This is not a new thing but has got worse in CC. When is

  • Suspend/Resume stopped working after upgrading pm-utils.

    Hello folks, I am running Arch on a Fujitsu Amilo 1437G and suspend/resume was working fine with pm-utils 1.2.6.1-3. After last system upgrade I have realized that system does not resume anymore after suspend: hard disk drive sounds like starting but