Solved

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

Posted on 2002-03-22
2
2,169 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
  • 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

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 last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
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.

762 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