Solved

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

Posted on 2002-03-22
2
2,170 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

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…
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

752 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