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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:51:48+00:00 2026-05-19T11:51:48+00:00

I would like to start drag objects which is located in stage.There is movie

  • 0

I would like to start drag objects which is located in stage.There is movie clips in the stage which also encloses so many objects.when i click on any of the object it should be startdraged..Do u have any solution?

addEventListener(MouseEvent.MOUSE_UP, targetMC);
function targetMC(MouseEvent:Event):void
{
    var curinstance = MouseEvent.target.valueOf();
    curinstance.startDrag();
}
  • 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-19T11:51:49+00:00Added an answer on May 19, 2026 at 11:51 am

    here is the answer

    package 
    {
    
        import flash.utils.getTimer;
        import flash.display.MovieClip;
        import flash.net.URLLoader;
        import flash.events.Event;
        import flash.net.URLRequest;
        import flash.events.ProgressEvent;
        import flash.text.GridFitType;
        import flash.display.MovieClip;
        import flash.events.Event;
        import flash.display.Sprite;
        import flash.events.MouseEvent;
        import fl.transitions.Tween;
        import fl.transitions.*;
        import fl.transitions.easing.*;
        import flash.text.TextField;
        import flash.geom.Rectangle;
        import flash.sampler.NewObjectSample;
        import fl.controls.DataGrid;
        import fl.controls.dataGridClasses.DataGridColumn;
        import fl.data.DataProvider;
        import fl.controls.ScrollPolicy;
    
        public class Main extends MovieClip
        {
    
    
            public function Main():void
            {
                var mc:MovieClip = new MovieClip();
                var mc_arr:Object = new Object();
                addChild(mc);
                for (var j:int=0; j<10; j++)
                {
                    var clips:Array = [];
    
    
        var mcm:MovieClip = new MovieClip();
        mcm.graphics.drawRect(10*j,100,40,40);
        mcm.graphics.beginFill(0x000000);
        mcm.name = "mc" + j;
        addChild(mcm);
    
    
    
                }
    
            }
    
            public function onDown(evt:MouseEvent):void
            {
                evt.target.startDrag();
            }
            public function onUp(evt:MouseEvent):void
            {
                evt.target.stopDrag();
            }
        }
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to start making code patches to Rails. Are there any good
When I start a drag operation I would like to be able to highlight
I would like to set the start position when I click into the parent
I would like start with .NET Micro Framework as my hobby project. What hardware
I would like to start a personal project that will give me a lot
I would like to start with x no. of fields (in my app I
I would like to start a community discussion. As per my question, when do
I would like to start a broadcast receiver from an activity. I have a
I've been developing my first iPhone app part-time and would like to start using
In an given Android activity, I would like to start a new activity for

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.