Solved

'send to back'/'bring to front' related question

Posted on 2002-03-22
2
2,171 Views
Last Modified: 2006-11-17
does anyone know how to force an object (for example, named object1)
to go in the front(or  back) of other object (named object2)? In designtime
this can be done by pressing CTRL+arrow down (CTRL+arrow up) or from menu :
"Modify/Arrange/Bring to front" (Modify/Arrange/Send to back). i want to make
this action when button is pressed. therefor i think ActionScript cant be avoided.
Am I right? Is this possible? How?

Thanks in advance.
0
Comment
Question by:kzdown
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 

Expert Comment

by:LOBO
ID: 6893323
This is how I would do it and it is very simple.

When the movie is stopped the object1 is behind the Object 2 on separate layers.

When the button is clicked the movie moves to the next frame and stops.

On this frame the two layers have new keyframes where object 1 is now on the layer above Object 2.

In other words they have swapped layers. The only actionscript  used is your regular go to next frame and stop.
0
 

Accepted Solution

by:
LOBO earned 42 total points
ID: 6893334
This is how I would do it and it is very simple.

When the movie is stopped the object1 is behind the Object 2 on separate layers.

When the button is clicked the movie moves to the next frame and stops.

On this frame the two layers have new keyframes where object 1 is now on the layer above Object 2.

In other words they have swapped layers. The only actionscript  used is your regular go to next frame and stop.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question