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 8507991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:01:50+00:00 2026-06-11T03:01:50+00:00

Im desperatly trying to build a volume indicator Just found some volume slider examples.

  • 0

Im desperatly trying to build a volume indicator

Just found some volume slider examples.
What I look for is like in picture below:

What are good volume indicator techniques to handle ?

  • 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-06-11T03:01:52+00:00Added an answer on June 11, 2026 at 3:01 am

    I’ve tried to create what you need. Please take a look here.

    If it is what you’re looking for, here is the code:

    <?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009" 
         xmlns:s="library://ns.adobe.com/flex/spark" 
         xmlns:mx="library://ns.adobe.com/flex/mx" creationComplete="group1_creationCompleteHandler(event)">
    
    <fx:Script>
        <![CDATA[
            import mx.events.FlexEvent;
    
            private static const BAR_HEIGHT:Number = 44;
            private static const BAR_WIDTH:Number = 5;
            private static const BAR_GAP:Number = 2;
            private static const BAR_COUNT:Number = 50;
            private static const BAR_COLOR_ACTIVE:uint = 0x00ff00;
    
            [Bindable]
            public var initialPercent:Number;
    
            private var totalBarHeight:Number;
    
            protected function group1_creationCompleteHandler(event:FlexEvent):void
            {
                totalBarHeight = BAR_HEIGHT * BAR_COUNT;
                drawBars(blackBars);
                update(initialPercent);
            }
    
            public function update(percent:Number):void {
                drawBars(greenBars, BAR_COLOR_ACTIVE, percent);
            }
    
            public function drawBars(where2draw:Group, color:uint = 0x000000, percent:Number = 100):void {
                //complete bars
                var completeBars:Number = Math.floor(BAR_COUNT * percent / 100); 
                where2draw.graphics.clear();
                for (var i:int = 0; i < completeBars; i++) 
                {
                    var barX:Number = (BAR_WIDTH + BAR_GAP) * i;
                    where2draw.graphics.beginFill(color);
                    where2draw.graphics.drawRect(barX, 0, BAR_WIDTH, BAR_HEIGHT);
                    where2draw.graphics.endFill();
                }
                //partial bars, if needed
                var reminderBarHeight:Number = totalBarHeight * percent / 100 - completeBars * BAR_HEIGHT;
                var barY:Number = BAR_HEIGHT - reminderBarHeight;
                var barX:Number = (BAR_WIDTH + BAR_GAP) * completeBars;
                where2draw.graphics.beginFill(color);
                where2draw.graphics.drawRect(barX, barY, BAR_WIDTH, reminderBarHeight);
                where2draw.graphics.endFill();
            }
    
        ]]>
    </fx:Script>
    
    <s:Group id="blackBars"/>
    <s:Group id="greenBars"/>
    
    </s:Group>
    

    Probably it is better to build it with ActionScript. I created it just to convey the idea.

    Speaking about the second component you need, it should be event easer. You can probably achieve that effect by drawing a gradient across your component and animating a mask whenever values are changing.

    Thanks!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I am desperatley trying to get some scrolling functionality to work on a
I have been trying desperately to draw some images into a view. The view
I'm really new in Android Development and, like many others, I'm trying desperately to
I am desperately trying to get a local build of a site to get
i am desperatly trying to use the following library : ofx4j . But the
I am getting really desperate here. I working with Xcode, trying to implement some
I'm trying to make a clean maven setup on some legacy project that uses
I'm trying to build a very basic AutoLisp interface. I'm a total beginner at
I'm running myFaces 2.1.7 and desperatly trying to reduche the mmeory usage of our
I am desperately trying and failing to hook CallWndProc using EasyHook. Intptr addr =

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.