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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T03:18:42+00:00 2026-06-02T03:18:42+00:00

I created a skin called customSliderTrack in the graphical editor of Adobe Flash CS5.5.

  • 0

I created a skin called customSliderTrack in the graphical editor of Adobe Flash CS5.5. This Slider is now in the “library” of the FLA file.

I can apply this skin with the following code:

var cls:Class = getDefinitionByName("CustomSliderTrack") as Class;
var tmpTrack:Sprite = new cls();
slider.setStyle("sliderTrackSkin",tmpTrack);

However due to the binary nature of the FLA file and lack of compatibility of different Versions of Adobe Flash I need to implement it all in Actionscript.

I understand that cls is a MovieClip object but I cant get the same results with new MovieClip(). I think this might be related to the dashed Lines in the graphical editor(I modified the default SliderTrack_skin). I havn’t found out yet what they mean and how to replace them with Actionscript code.

  • 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-02T03:18:45+00:00Added an answer on June 2, 2026 at 3:18 am

    setStyle automatically sets the track.height and track.width. In case of the track.height the slider.height attribute does not seem to have any effect. To work around this problem simply set the track.height to the best value.

    To access the track extend the Slider class and override the configUI Function:

    public class CustomSlider extends Slider
    {
        override protected function configUI():void
        {
            // Call configUI of Slider
            super.configUI();
            // The sprite that will contain the track
            var t:Sprite = new Sprite();
            // Draw the content into the sprite
            t.graphics.beginFill(0x000000, 0.1);
            t.graphics.drawRect(0, -15, width, 30);
            t.graphics.endFill();
            // Set the Sprite to be the one used by the Slider
            this.setStyle("sliderTrackSkin",t);
            // Reset the height to the value that it should be
            track.height = 30;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is my first experience with themes. I've created a skin file for a
I have created a skin in VC++ through the win32 API. Now I want
I created a custom button skin: <?xml version=1.0 encoding=utf-8?> <s:SparkSkin 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=65
I have created a skin for DotNetNuke 5.x and I attempted to do as
I've created a skin which uses solpartmenu. On a portal that uses submenus, I'm
I've created a skin that allows me to have two labels on a spark
I have created a perfect skin detector, but it detects ALL skin. What are
I created a custom video skin for my movie, and published the swf. The
Here is the problem. I've created custom RectangularBorder and set it as border skin
I have a library with a class called Recipient which has it's own fluent

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.