Quantcast
Channel: Adobe Community : All Content - Adobe Animate CC - General
Viewing all articles
Browse latest Browse all 13519

clicked button brings object to front

$
0
0

hi guys,

 

so I currently have a set of buttons that when clicked, make certain objects visible. These objects are layered on top of each other and I want to bring each to the front when its button is clicked, but I'm struggling with the code snippets for "bring to front" - I'm pretty new to actionscript so the Child stuff is a little confusing

 

basically what I'm looking for is this:

 

button.addEventListener(MouseEvent.CLICK, showobject);

function showobject(event:MouseEvent):void

{

  *** code to bring the object to front ***

}

 

 

THANKS!


Viewing all articles
Browse latest Browse all 13519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>