ActionScript 1/2 :: SwapDepth But No SetDepth?

Feb 26, 2010

Why does the MovieClip class have no setDepth method? Why should we use swapDepth when a setDepth method is the easier way to set a movieclip's depth? Is it because setting of depth should be done by another class like DepthManager?

View 4 Replies


Similar Posts:


ActionScript 2.0 :: SetDepth - Another Instance Appears?

Mar 24, 2004

When i use the command

menus.setDepth (2)

I get another instance of the same movie appearing over top of the original on the specified depth of 2. Both are visible.Is this the way its supposed to work or is there a way to get rid of the old instance on its original depth?

View 3 Replies

ActionScript 1/2 :: Set The SwapDepth For UI ScrollBar?

Oct 11, 2010

How do I set the swapDepth for my UI ScrollBar? (the scrollbar show-up when some external text is being loaded). Or how do I make 'abc' right on top of all other items?

[Code]...

View 3 Replies

ActionScript 2.0 :: SwapDepth() With And New KeyFrame?

Dec 5, 2005

i got some trouble here that I cant seem to find a solution, well, I dont even know what happends here.

The goal: Make a puzzle-like with 54 MCs

What it should do:
- Come to front onMouseOver swapDepth(1)
- Go to back when onMouseOut swapDepth(-0)
This is working...

I cant seem to understand why my MCs are still appearing on another keyframe when I click the button "2"

Btn "1" goes to the puzzle. Btn "2" goes to an empty keyframe but there are some MCs that are still visible when they should not be.

View 7 Replies

ActionScript 2.0 :: Swapdepth On Duplicate Mc In A Mc?

Jun 23, 2009

I am having tremendous trouble with swapdepths on a movie. I am quite the lame coder as I am more the designer type but I am trying to get some basics down for a simple RPG.Basically I have 2 layers. the top layer is 9 empty clips in a 3x3 grid I load all the 'objects' into. These loop around so I can build up a map in sections. It loads the next 'set' when the player moves to the next 'section' (the player doesn't move as the background does).the second layer is simply a background with the same idea but has no interactive elements.

The player is on the same layer as the 'objects'. I don't know if layers affect depth information.The problem is that I am trying to make each object within the loaded .swf modular, in that it checks whether or not the player is in its hitzone, and applies certain things. like swapdepths, transparency etc.transparency works a treat, but swapdepths seems to only work on ONE of the objects I have in that sections objects movieclip. It even traces that the player is below the object with getDepth tests...but it doesn't actually go under. Some clips are instances, while others are not...but still, only ONE works properly.

Is there any weird swapdepth rules in regards to changing depth of clips inside loaded movieclips inside a main movie?!I have tried swapping individual objects as well as the parent clip as a whole and neither seem to work.

View 2 Replies

ActionScript 2.0 :: SwapDepth Duplicating Movieclip?

Jan 12, 2009

I've developed a resource with drag and drop movieclips within a presentation.There are a huge number of drag and drop clips, so I've added a bit of swapDepth code so that the chosen movieclip is always in view. The problem now is that when I go to the next page (which contains a different drag and drop activity), a movieclip from the previous page is duplicated. Is there any solution to this? I've tried an onenterframe unload for the next page, but obviously this deletes the MC permanently making it fairly useless.

View 2 Replies

ActionScript 1/2 :: Swapdepth Object Under Two Objects

Aug 12, 2011

Can I put one object under two objects?

View 3 Replies

ActionScript 2.0 :: Animation Stops After The Use Of Swapdepth?

Sep 20, 2011

The tab stays at its place once mouseover takes place. do the mouseover on BEST PROPERTY DEALS tab and you'll see the issue. how to make the animation smoother as i tried but i wasn't able to make complete cirle's animation smoothly as the MC used to come back the same path it took in the first half of animation.

View 0 Replies

ActionScript 2.0 :: MC Remaining In Scene After SwapDepth

Jun 11, 2008

I'm trying to make a few movieclips grow when you rollover them and the shrink back down when you rollout. I tried using swapDepth to make it so each clip would stay on top. But then when I try to instruct its root movie clip to go back to frame 1 (which is blank with a stop command), it remains on the stage. Here's the code for the movie clip to grow/shrink/swapDepths

[Code]...

View 1 Replies

ActionScript 2.0 :: Keep Button Rollover After SwapDepth()?

May 13, 2004

I am using buttons inside movieclips, and changing their visual layer by using swapDepth method. But for some reason i loose my rollover button effect when I use swapDepth.

View 2 Replies

ActionScript 1/2 :: SwapDepth And Dynamic Text Boxes?

Feb 24, 2010

I have a dynamic text box that I need to use  swapDepths with and I understand that I should turn it into a movieclip but I get weird results.

View 2 Replies

ActionScript 2.0 :: OnRollOver/RollOut SwapDepth And Zoom?

May 27, 2010

I have 9 movieclips that I would like to when you rollover they zoom in and come to the front and when you rollout they to return to their original positions.I am using as2 and the code that I have is for the swapDepths

1_mc.onRollOver = function() {
1_mc.swapDepths(2_mc);
1_mc.swapDepths(3_mc);

[code]....

View 0 Replies

ActionScript 2.0 :: Keeping Button Rollover After SwapDepth()

May 13, 2004

I am using buttons inside movieclips, and changing their visual layer by using swapDepth method. But for some reason i loose my rollover button effect when I use swapDepth.

View 2 Replies

ActionScript 2.0 :: Recreate The RollOver Swapdepth Effect?

Jan 9, 2006

I have been trying to recreate the rollOver swapdepth effect (above). Works OK but slow using mc's on the main timeline using the swapDepth behaviors.It appears (on the [URL]) that each swf is loaded independently on top of the main with their own preloaders.This seems vastly more complicated than just swapping depths on a single timeline.

View 1 Replies

ActionScript 2.0 :: Changing Stacking Order (swapDepth)?

Jan 25, 2006

I've been following the Changing Stacking Order (swapDepth) tutorial but there's something I'd like to know.In this tutorial, we have 3 buttons inside 3 Mc's. Each Mc is called green, yellow and blue.The AS code for each button is:

Code:
on (press, release, dragOver, dragOut) {
x = 0;
x = x+2;[code]....

What I would like to get is that the MC (window) that I click, goes to the top, BUT respecting the relative position for the others. I mean, in this tutorial, if you run the swf file and put every window a bit one over the other, and click the bottom window, it will come to the top, but the other two won't keep their relative position because the clicked window will be swapped with the one on the top. Understand? (it's very simple although difficult to explain).To make it easier: let's imagine we have 3 papers on the table and I pick up the one in the bottom and put it on top....this is exactly what I want (but in this tutorial, the other 2 papers are moved aswell). I just want that the window I click gets on top of the other 2, nothing else.

According to Kirupa's words, this EXAMPLE here is done using swapdepth aswell, and IT'S EXACTLY the behaviour that I want. Just compare this one with the one in the tutorial and see the different window behaviour.The thing is that I don't know how to do this with "swapdepths". In the AS reference bok it says it can be done but (as usual) they don't tell you how to do it...

View 8 Replies

ActionScript 2.0 :: Slideshow - Populate With CreateEmptyMovieClips / Swapdepth

Jan 27, 2008

I envisioned to create a xml slideshow that'll populate and preload images with createEmptyMovieClips at once and do particular functions to work as a slideshow. I have brainstormed the functions:

Functions
-Load XML file
-Preload all images at once and populate them into with createEmptyMovieClips. Will the functions cache images? or do we have to add more functions in order to cache them that way the bandwidth will be conserve?
-Use depth or _level to stack images based on their "child" in order in xml file and set all in alpha 0 except the first child on top stack
-Loop slideshow to fade in/fade out top two stacks (simulate slideshow) and move faded out top image down to last stack and move others up in stack order

However there's one problem: it's beyond my new-founding AS knowledge to figure out how to develop the heavy AS stuff to accomplish the slideshow.

View 2 Replies

ActionScript 2.0 :: [CS4] Create Empty Movieclip And SwapDepth

Apr 7, 2009

I have a main file running at the bottom (HD video of myself), and several clickable options (for various stuff on my portfolio). To show my digital work, I have a button that takes me to a frame label on _root. and a frame action that tells it to open a movieclip into a containerMC. All this is working perfectly, but it might be needful background info.

This section of my digital portfolio is a mock up of a mac screen desktop (yes I use a mac) / and I want to show my work as "programs". I expect to have 5-10 programs, 2 for now in testing. With no open "programs" at start, but I want the possibility of multiple open "programs", and when you open a new one or click one that already open but in the back, it automatically comes to the foreground (and does not close the ones already open - just like the desktop actually works). Obviously the "programs" have to be draggable too.

[Code]...

View 7 Replies

ActionScript 1/2 :: SwapDepth In A Playing Movieclip (no Buttons/clicking)?

Dec 5, 2009

What happens is I've used the the bus and car mcs to drive on both sides of the road in the animation (they will go across the screen then flip over and drive back within their respective mc).When they first cross over they are layered right but because of the timing of each animation, there is a point where both are going the same way on the same side of the road. At this point the bus pulls up higher (to the side of the road to pick people up) and the car passes it. The problem is when the car passes it is registered as being behind the bus (which would be hitting people).So i'm trying to get the car to swapDepths and come to the front Only when driving on one side of the road, so only at a certain frame reference essentially - not the entire mc.

View 3 Replies

ActionScript 1/2 :: SwapDepth - How Random Objects Continue To Show Up

Aug 18, 2011

I have an interavtive module where user drags objects using droptarget. Once items are filled in the timeline moves to a frame where there is only one object. What I dont understand is that random objects continue to show up at the end frame where there is only one object! How do these objects show up?

View 7 Replies

ActionScript 2.0 :: SwapDepth Of MC's With Buttons (flash5) - Changing Stacking Order

Dec 27, 2002

I know, there is a tutorial about changing stacking order [URL], but the makers were so kind to use Mx files for the .fla's.

[Code]...

When I click one of the 4 buttons, the image related to that button has to move to the hightest position. And ofcourse the previous highest one should be the one under the new highest image. Well, I tried to fix the script, but for some reason it gets all confused and starts switching images, and sometimes none.

View 14 Replies

ActionScript 2.0 :: SwapDepth And Delay - Stops Working After Mouse Rollover (Flash 8)

Jul 16, 2009

I have three buttons, each time you hover over a button an image related to that button will appear. Got this to work by following this tutorial: [URL]

I have the buttons inside a movieclip and the code on each movie clip is

on (rollOver) {
_root.x +=2;
_root.But1_MC.swapDepths(_root.x);

[Code]....

This works together nicely until I roll my mouse over one of the buttons, and pretty much whatever the last button was that I rolled over that's what image stays up. The side buttons still keep rotating at the correct interval, but the images are not the correct ones

View 0 Replies

ActionScript 3.0 :: Swapdepth - Creates 4 Stacking And Draggable Files And When The Bottom File Is Clicked

Aug 1, 2009

It is a script that creates 4 stacking and draggable files, and when the bottom file is clicked, it will appear on the top most layer. However, when i click on the bottom file, it doesn't appear on top.

[Code]....

View 2 Replies

ActionScript 2.0 :: SwapDepth - SetTimeout - MovieClip To Fade Out - Pause Then A New MovieClip To Fade In

Jan 19, 2010

What have I done wrong here? I need a movieClip to fade out, pause, then a new movieClip to fade in.

[Code]....

What I've tried to do is to set the target_MC alpha to 0 and fade out the current mc. Then when the fadeOut has completed to setTimeOut. After this the mcs will swapDepths and the target_MC should fade up to alpha = 0I've attached the flash and xml files. The images were too large.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved