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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T15:07:33+00:00 2026-05-11T15:07:33+00:00

i want to load an image to stage using Loader and then I want

  • 0

i want to load an image to stage using Loader and then I want to make it draggable. Loading is done by selecting from tilelist as seen below, but I have no idea about drag and drop in AS3, can anybody help me? I want to make it as simple as possible.

Here is my code to load image:

var charge1:Loader = new Loader(); addChild(charge1); this.addChildAt(charge1, getChildIndex(bg)); charge1.x = 280; charge1.y = 270;  ...  function setCharge1(e:Event):void{     trace(e.target.selectedItem.source);      this.charge1.load(new URLRequest(e.target.selectedItem.source));         this.charge1.contentLoaderInfo.addEventListener(Event.COMPLETE,onComplete); } 
  • 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. 2026-05-11T15:07:34+00:00Added an answer on May 11, 2026 at 3:07 pm

    yuku was going along the right lines but what you want to do is get the contents of the loaderInfo which is actually the clip that is loaded in. something like

    private function onComplete(event : Event) : void {   var loadedClip : MovieClip = LoaderInfo(event.target).content;    loadedClip.addEventListener(MouseEvent.MOUSE_DOWN, function(event : MouseEvent)    {     loadedClip.startDrag();   });    stage.addEventListener(MouseEvent.MOUSE_UP, function(event : MouseEvent)    {       loadedClip.stopDrag();   });  } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to load image from web, then decode it by the BitmapFactory.decode() method.
I want to load the image URL from my NSMutableArray. Here is my Code:
I want to load up a random image while a page it is loading
I want a image loader library to help me load images (bmp, jpg, gif,
I want to load an image from an array and set the view to
I have image control.I want to load image from my specific path. i have
I want to load an image but I get an error-message. My code: from
I want to load an image from url on a button click & to
I want to load an image from webcam to display on pygame I am
I want to load an image file from the computer directly to any js

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.