Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4532128
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T13:59:25+00:00 2026-05-21T13:59:25+00:00

I need to draw concentric circles in my Flex application. I am trying to

  • 0

I need to draw concentric circles in my Flex application. I am trying to do this using graphics util. The problem im facing is centering the two circles. Any one has a suggestion or know how to go about this? please help.

Thanks

Anji

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T13:59:26+00:00Added an answer on May 21, 2026 at 1:59 pm

    Use Graphics.drawCircle() method (documentation) where you should pass the same center points (two starting parameters).

    To fill circles with different colors use the following code:

    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
        xmlns:s="library://ns.adobe.com/flex/spark" 
        xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
        <fx:Script>
        <![CDATA[
            override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
            {
                super.updateDisplayList(unscaledWidth,unscaledHeight);
    
                var centerX:Number = unscaledWidth / 2;
                var centerY:Number = unscaledHeight / 2;
    
                var g:Graphics = circleHolder.graphics;
                g.clear();
                g.beginFill(0xFF00FF);
                g.drawCircle(centerX, centerY, 300);
                g.endFill();
                g.beginFill(0x0000FF);
                g.drawCircle(centerX, centerY, 200);
                g.endFill();
                g.beginFill(0x000000);
                g.drawCircle(centerX, centerY, 100);
                g.endFill();
            }
        ]]>
        </fx:Script>
        <mx:UIComponent left="0" right="0" top="0" bottom="0" id="circleHolder" />
    </s:Application>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need draw rectangle with two circle holes inside. The problem is in circles
i need to draw something like the image below using WPF... i need this
I need to draw concentric arcs of various sizes using raphael.js. I tried to
I need to draw text onto a window HDC along a circular path using
I need to draw a graph of write accesses of two concurrently running threads.
i need to draw two lines. can i use the same UIView subclass to
I need to draw an arc using GraphicsPath and having initial, median and final
I need to draw lines using DrawPrimitiveUP and I need it to use the
Need draw a graph with dot/graphviz like this image: The texts can be above
I need to draw a chart in a JSP. I am using Charts4J to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.