3 Replies - 1319 Views - Last Post: 07 November 2016 - 05:28 PM

#1 Transistor   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 46
  • Joined: 20-November 13

Display picture where user clicks

Posted 07 November 2016 - 04:17 PM

Hi,

In AS2 how do I take an image in the library and display on the target where the user clicks ?

So I have this and there are two images in the library smallbullethole.png and largebullethole.png
small corresponds to the left target and large to the right.

left_target.onRelease = function()
{
      

}

right_target.onRelease = function()
{


}





I'm not sure on how to do this.


Thanks.

Is This A Good Question/Topic? 0
  • +

Replies To: Display picture where user clicks

#2 Transistor   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 46
  • Joined: 20-November 13

Re: Display picture where user clicks

Posted 07 November 2016 - 04:38 PM

Quick update. I added two movieclips smallbullet and bigbullet to the stage and
then I move those to the point where the users clicks. It works but how do I do this
if I want multiple images to appear where ever the user clicks not just one ?

Thanks.
Was This Post Helpful? 0
  • +
  • -

#3 ArtificialSoldier   User is offline

  • D.I.C Lover
  • member icon

Reputation: 2351
  • View blog
  • Posts: 7,185
  • Joined: 15-January 14

Re: Display picture where user clicks

Posted 07 November 2016 - 04:51 PM

You need set the library object so that it is exported for Actionscript, and then create a new instance of the library object. It's kind of hard to find documentation for Actionscript 2 at this point, it's been deprecated in favor of Actionscript 3 for about 10 years now, but hopefully this helps:

http://help.adobe.co...8ea63-7fee.html
Was This Post Helpful? 1
  • +
  • -

#4 Transistor   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 46
  • Joined: 20-November 13

Re: Display picture where user clicks

Posted 07 November 2016 - 05:28 PM

Ah I see. I'll take a look. Thanks.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1