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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:47:44+00:00 2026-06-16T01:47:44+00:00

I am new to as3. I create a rectangle and convert it to symbol.

  • 0

I am new to as3. I create a rectangle and convert it to symbol. Then I go into the symbol and create two sliders. Also, I make the symbol draggable.

controlPanel_mc.addEventListener(MouseEvent.MOUSE_DOWN, dragStartF);
controlPanel_mc.addEventListener(MouseEvent.MOUSE_UP, dragEndF);

function dragStartF(e:MouseEvent){
    e.currentTarget.startDrag();
}
function dragEndF(e:MouseEvent){
        e.currentTarget.stopDrag();
}

It works fine, but I can’t use the slider. If I drag the slider, the entire movie clip moved. How can I solve this problem? Cheers!

  • 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-16T01:47:45+00:00Added an answer on June 16, 2026 at 1:47 am

    Without more info on the structure of your FLA-file I assume that controlPanel_mc is the container containing the rectangle[background] and the two sliders.

    What it seems like you did in your code was to add event listener to the container, what that means is that “if a click occures anywhere on this object, do the following”. Since that clip “owns” the 2 sliders, the sliders will not get any MOUSE_DOWN-events since the parent is always the one handling the event first.

    You probably want to convert the background into a symbol and add the eventListeners to that object instead.

    bg.addEventListener(MouseEvent.MOUSE_DOWN, onBgClick);
    bg.addEventListener(MouseEvent.MOUSE_UP, onBgRelease);
    
    function onBgClick(e:MouseEvent){
        controlPanel_mc.startDrag();
    }
    function onBgRelease(e:MouseEvent){
        controlPanel_mc.stopDrag();
    }
    

    That should solve your issue 🙂

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

Sidebar

Related Questions

I'm new to AS3 and I'm trying to create a simple game with it.
I am new to flex and as3 and I need to create a workaround
When I attempt to create a new flash list component from my as3 file
I'm really new to flash and as3... I'm trying to create 2 scenes in
I'm new to AS3 and have been working on an XML driven navigation system
I'm new to AS3 and I'm getting this error while trying to implement OO
I am new to fairly new to AS3 and I have found myself needing
Just going to say that I'm new to AS3, What I'm trying to do
I am new to Flash and AS3. I have a DataGrid like this Item
I have the following array as3 example: var arrayDefinitionsargsAmfPhp:Array = new Array(); arrayDefinitionsargsAmfPhp['tabela'] =

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.