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

  • Home
  • SEARCH
  • 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 546619
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:53:10+00:00 2026-05-13T10:53:10+00:00

Is there something similar to this jquery component in flash or are there any

  • 0

Is there something similar to this jquery component in flash or are there any ready examples on how to do that?

Thanks.

  • 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-13T10:53:10+00:00Added an answer on May 13, 2026 at 10:53 am

    I do not know of any built-in (or third party, for that matter) components of that sort. I’m sure that some third-party ones must exist, however, but they are unlikely to be free.

    You can create your own without too much trouble. I have created a basic working version that you can build on if you want:

    // Main class, shows how to use other classes:
    
    import flash.display.*;
    import flash.events.*;
    import flash.text.TextField;
    
    
    public class Main extends Sprite
    {
        private var output:TextField;
        private var range:RangeSlider;
    
        public function Main()
        {
            output = new TextField();
            addChild(output);
    
            // SliderImage and ThumbImage are PNGs exported (inheriting from BitmapData) from the fla
            var thumb:SliderThumb = new SliderThumb(new ThumbImage(20, 20), stage);
            range = new RangeSlider(new SliderImage(1, 1), thumb, 100);
    
            range.x = 55;
            range.y = 55;
    
            range.addEventListener(Event.CHANGE, updateOutput);
    
            addChild(range);
    
            updateOutput();
        }
    
        private function updateOutput(e:Event = null):void
        {
            output.text = range.min + ' to ' + range.max;
        }
    }
    

    SliderThumb class:

    import flash.display.*;
    import flash.events.*;
    import flash.geom.Point;
    
    public class SliderThumb extends Sprite
    {
        private var image:Bitmap;
        private var mouseIsDown:Boolean;
        private var _stage:Stage;
    
        public var min:Number;
        public var max:Number;
    
    
        public function SliderThumb(imageData:BitmapData, _stage:Stage)
        {
            min = max = 0;
    
            this._stage = _stage;
    
            image = new Bitmap(imageData);
            addChild(image);
    
            addEventListener(Event.ADDED_TO_STAGE, init);
        }
    
        private function init(e:Event):void
        {
            removeEventListener(Event.ADDED_TO_STAGE, init);
    
            mouseIsDown = false;
    
            // Center image:
            image.x = -Math.round(image.width / 2);
            image.y = -Math.round(image.height / 2);
    
            addEventListener(MouseEvent.MOUSE_DOWN, mouseDown);
            _stage.addEventListener(MouseEvent.MOUSE_UP, mouseUp);
            _stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMove);
        }
    
        public function clone():SliderThumb
        {
            var clone:SliderThumb = new SliderThumb(image.bitmapData, _stage);
    
            clone.min = min;
            clone.max = max;
    
            return clone;
        }
    
        private function mouseDown(e:MouseEvent):void
        {
            mouseIsDown = true;
        }
    
        private function mouseUp(e:MouseEvent):void
        {
            mouseIsDown = false;
        }
    
        private function mouseMove(e:MouseEvent):void
        {
            if (mouseIsDown) {
                x = parent.globalToLocal(new Point(_stage.mouseX, 0)).x;
    
                if (x < min) {
                    x = min;
                }
                else if (x > max) {
                    x = max;
                }
    
                dispatchEvent(new Event(Event.CHANGE));
            }
        }
    }
    

    RangeSlider class:

    import flash.display.*;
    import flash.events.*;
    import flash.geom.Point;
    
    public class RangeSlider extends Sprite
    {
        private var background:BitmapData;
        private var sliders:Array;
    
        // Background is a one-pixel wide image that will be tiled horizonatally to give the slider its look
        public function RangeSlider(background:BitmapData, slider:SliderThumb, size:Number)
        {
            this.background = background;
    
            slider.min = 0;
            slider.max = size;
            sliders = [slider, slider.clone()];
            for each (slider in sliders) {
                addChild(slider);
                slider.addEventListener(Event.CHANGE, function (e:Event) { dispatchEvent(e); });        // Pass on the CHANGE event
            }
            sliders[1].x = size;
    
            this.size = size;
        }
    
        public function set size(value:Number):void
        {
            // Update background:
            graphics.clear();
            graphics.beginBitmapFill(background);           // Tiles by default
            graphics.drawRect(0, 0, value, background.height);
            graphics.endFill();
        }
    
        // Returns the position of the first slider (from 0 to size):
        public function get min():Number
        {
            return sliders[0].x;
        }
    
        // Returns the position of the second slider (from 0 to size):
        public function get max():Number
        {
            return sliders[1].x;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Are there any jQuery plug-ins that can do something similar to this: Acer Site
Is there any way to implement something similar to Chatroulette without using Flash or
is there any jquery plugin which provides an dropdown-textbox functionality? something similar to http://lab.anotherdan.com/js/textdropdownlist/
I'm looking to develop something similar to this data visualisation. http://www.driversofchange.com/docvis/slimcity/ Are there any
Is there a third party tool or something similar that will allow users to
I'm trying to get a jQuery component similar to the one on this site
Node.js can't handle my client code that performs something similar to jQuery/Zepto XHR pattern
Are there any existing examples of code where it is possible to do something
Is there a php equivalent to something like this jquery: var allInputs = $(:input);
I have something similar to this: <!doctype html> <html> <head> <meta charset=UTF-8> <title>JQuery Test</title>

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.