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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:33:10+00:00 2026-05-19T04:33:10+00:00

I’m new to flash, but I have drag and drop code for my movieclips

  • 0

I’m new to flash, but I have drag and drop code for my movieclips and so can manipulate them in this way. But I would like to be able to display an image depending on where the user clicks on the movie scene. What would the code be that loads an image, onClick, at the mouse X and Y? 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-19T04:33:10+00:00Added an answer on May 19, 2026 at 4:33 am

    I’m mainly a Flex developer but this code snippet of AS3 should work fine for you in Flash as well:

    addEventListener(MouseEvent.CLICK,myMouseHandler);
    
    private function myMouseHandler(event:MouseEvent):void
    {
        var swfLoader:SWFLoader=new SWFLoader();
        swfLoader.source="http://www.google.com/images/logos/ps_logo2.png";
        swfLoader.x=mouseX;
        swfLoader.y=mouseY;
        addChild(swfLoader); //note in flex 4 adding to container need to use addElement otherwise this code executes in there fine as well.
    }
    

    The documentation for AS3 is pretty thorough and can be found here: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/index.html
    they did a good job with this version of the documentation of giving you filters at the top of the page to see only items available in Flash only or using a Flex framework or using AIR. A quick breakdown of how all this relates: AS3 is the scripting language used to write code that gets compiled into what’s known as AS3 bytecode (typically all in a file with a swf or swc extension) which is then interpreted by the Flash plugin in the browser. MXML is a “declarative markup language” it’s very similar in appearance to HTML using tags and nesting to represent relationships of parent/child (they are both loosely XML), the MXML gets compiled to AS3 then to AS3 bytecode and once again interpreted by the flash plugin. Nice thing about Flex is there’s a whole lot of pre-built components provided and the framework creates a robust set of rules for how you can create extensible components with a well defined life cycle (you know it gets created once, you know only to update the parts that require updating ie createChildren, commitProperties, measure etc.). AIR is adobe integrated run-time which is basically a flash player for the desktop where it can live outside the browser and is therefore not limited to the functionality allowed by the browser (due to security issues lots of operations are blocked by the browser), basically AIR is Flex+Desktop related goodies. I know this is more than what your asking for but I hope you find this info useful.

    Good luck,

    Shaun

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have this code to decode numeric html entities to the UTF8 equivalent character.
This could be a duplicate question, but I have no idea what search terms
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
Does anyone know how can I replace this 2 symbol below from the string

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.