ActionScript 2.0 :: Swap Depths Between _root. And Nested MC?

Apr 23, 2010

I've realized that I am unable to swap depths between _root. and nested mc's based on its _y axis.For example, I use this code:

Code:
_root.player.onEnterFrame =function() {
this.swapDepths(this._y-230)

[code]....

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Swap Depths - If I Click On The Space Between The Nested Clips In The Top Clip It Actually Is Hitting The Buttons(movieclips) On The Other Clip Under It?

Apr 11, 2007

I have two main clips with clickable clicks within each. I am using swapDepths on the two main clips in a tab navagation fashion. The problem is that if I click on the space between the nested clips in the top clip it actually is hitting the buttons(movieclips) on the other clip under it. Any suggestions?

View 1 Replies

ActionScript 3.0 :: Know How To Swap Depths

Aug 28, 2010

ts an interactive gallery where when a photo is selected it plays the movie clip and the photo grows to fill the screne. The problem is, since the animations take part within the movie clips and all the movie clips exist on the same layer when they are selected and grow to fill the screne they are being hidden behind all the movieclips infront of it in that layer  I know that there is an action to bring movieclips to the highestdepth or to front on click/release but i do not have a clue where to start

View 5 Replies

Swap Depths: Not Working With Animation

Jul 31, 2009

*I can't post the file due to the company policy, so I'll do my best to explain. 3 movie clips: slide 1, 2, and 3. Each loads an external image.

Layers (how I have them set up):
slide 1
slide 2
slide 3

The slides have a 3d feel, as if they are in the distance. When the user clicks one, the slide(mc) motion-tweens towards the screen, while the other 2 stay back. Obviously, if slide 2 comes towards the screen then slide 1 will be over top of it DUE TO layer structure (above). And of course, 1 & 2 will be over slide 3. To get around this I made a "current" layer over top of all the slide layers. So if I click on slide 2/3 then the tween is up on the "current" layer instead of the "slide 2/3" layer so that it's the highest.

[Code]....

View 2 Replies

ActionScript 3.0 :: Swap Depths In Layer Only?

Sep 16, 2011

I use this line to bring an object foward, but if i want to bring it to the front of its own layer only. setChildIndex(helpmenu,numChildren - 1)

View 4 Replies

ActionScript 3.0 :: Correct Way To Swap Depths?

Jan 10, 2012

Its been a while since I've done anything in AS3. I was hoping someone could point me in the right direction. I am working on a type of menu where there are 6 cards and on roll over of one of the cards it is brought to the front of the stack. What is the correct method of doing this in AS3? Can someone post a quick example or point me in the right direction to a link that does a good job covering this. I did a quick search and didn't find anything right away that did a good job explaining so I thought I would head over to AS.org

View 2 Replies

ActionScript 2.0 :: DepthHeight Swap Depths ?

Feb 13, 2007

i have this section of code:

[AS]
var s:MovieClip = this.createEmptyMovieClip("1a", 1);
[/AS]

because of the "1" at the end its ontop of all my content is there a way to have it sit right at the bottom depth underneath everything??

View 1 Replies

ActionScript 2.0 :: Timeline Tween Swap Depths?

Jan 19, 2009

I have a timeline animation various movie clips with play bk and forward controllers for when it is pressed it display (grows, rotates etc), is there anyway of having it so on each layer there is a swap depth command to make whichever button is pressed make the mc's appear at the top?

View 1 Replies

ActionScript 3.0 :: SetChildIndex - Getting MovieClips To Swap Depths

Oct 4, 2011

I have this script I am writing where when someone hovers over a button it displays a popup box until they roll off. I have that function working alright, but I need the movie clips to swap depths, I realize I can do this with setChildIndex but I'm running into a small problem with my children/parent situation.
My items are added as such:
root > color_mc (blue or red or whatever) > button (this is the hover)
I have the event listener added to the button for each color, but I need it so that when the button is rolled over, it takes the color_mc and moves it to the -1 spot. I've tried writing the code a number of ways but can't seem to get it.

Code:
function manageMouseOver(event:MouseEvent):void{
var parentClip = event.target.parent.name;
parentClip.setChildIndex(parentClip, parentClip.numChildren - 1);
event.target.parent.gotoAndPlay(2);
}

That code gives me the following error:
Error #1069: Property numChildren not found on String and there is no default value.

View 4 Replies

ActionScript 2.0 :: Navigation ForLoop Swap Depths

Jun 30, 2009

This should be interesting in explaining what it is i'm looking for. I have multiple buttons on top of each other. And when the hit state on the other side of the screen is rolled over the text will change, which are all overlapping each other. Would swap depths be the best answer for this to bring the one I'm rolling over to the top? And how would I implement it into my for Loop? I'm using the for Loop for my navigation:

[Code]...

View 3 Replies

ActionScript 2.0 :: Integrate Swap Depths With Map Scrolling?

Jun 25, 2010

I'm trying to find a way to integrate swap depths with map scrolling. Here is my current code:

SWF:

[URL]

Code:
var mapItem:Array = new Array(_root.tree1, _root.building1, _root.keith,_root.shinru);
mapControl = function () {
_root.player.swapDepths(_root.player._y);

[code]....

The problem lies within the fact that the bounds are pushing away the player too fast for Flash to finish cycling through the array of items.

View 1 Replies

ActionScript 2.0 :: Swap Depths Code In Timeline?

May 27, 2010

So I'm placing all my code on the timeline so I don't have to change the code on every single button in my Flash. Here's the code that I am using.

Code:
buttonName.onMouseDown = function()
{

[code].....

View 3 Replies

Swap Depths For Multiple Movie Clips At The Same Time?

Aug 18, 2005

is it possible to swap depths for multiple movie clips at the same time? how about swapping for negative depths? or will that kind of thing lead me into probs later?

View 8 Replies

ActionScript 2.0 :: Swap The Depths Of Externally Loaded Movies?

Jan 21, 2004

is it possible to swap the depths of externally loaded movies? if so, what is the best way to do it?

View 1 Replies

ActionScript 2.0 :: Swap Depths In Class Definition Using Variable Name For Movieclip?

Jan 15, 2010

I have a class definition as file. In it a variable gets passed to into a function (parameters). Then I want to use the name of this function to swapDepths with another movieclip.

Code:
private function alphaZero(clipToSwap) {
trace(clipToSwap+"+clipToSwap");

[code].....

View 1 Replies

ActionScript 2.0 :: Make Xscale Larger When OnRollOver / But Need To Swap Depths

Jan 4, 2004

I am making a photo gallery with thumbnails and when the mouse rolls over them, they increase in size. Problem: when they increase, they do not cover the other thumbnails completely, since it is only an _xscale percentage increase and not a new movie clip. So you can see all the other thumbnails over the increased photo size. It is a problem of swapping depths I'm sure--but do I have to take off all the thumbnails from the main level and load them dynamically onto different levels in order to be able to swap depths?

View 4 Replies

ActionScript 2.0 :: Make _xscale Larger When OnRollOver But Need To Swap Depths?

Jan 4, 2004

I am making a photo gallery with thumbnails and when the mouse rolls over them, they increase in size. Problem: when they increase, they do not cover the other thumbnails completely, since it is only an _xscale percentage increase and not a new movie clip. So you can see all the other thumbnails over the increased photo size. It is a problem of swapping depths I'm sure--but do I have to take off all the thumbnails from the main level and load them dynamically onto different levels in order to be able to swap depths?

View 4 Replies

ActionScript 2.0 :: Duplicate Nested Movieclip And Swap?

Dec 14, 2011

is there a jsx script that I can use to duplicated a nested clip in my library along with all of the sub movieclips and relink them?

View 0 Replies

ActionScript 2.0 :: Change The _root.broj And _root.logo Variables Inside The Function?

Jan 14, 2010

In the code below i want to change the _root.broj and _root.logo variables inside the function which returns values from .php file. Inside the function everything works fine and all values are correct but when i trace var broj outside the function it's still 0.

var result_lv:LoadVars = new LoadVars();
var send_lv:LoadVars = new LoadVars();
var broj:Number=0;
var logo = new Array();

[Code].....

View 1 Replies

ActionScript 2.0 :: _root.cargo Are Multipled By 10 And Added To _root.totalscore?

Feb 27, 2003

im lookin to make this so that the points taken from the _root.cargo are multipled by 10 and added to _root.totalscore

[Code]...

View 2 Replies

ActionScript 2.0 :: _root._root[eelmine].nextFrame()?

Sep 14, 2004

if a condition is true, then:_root.(MC with instance name that is the value of "_root.eelmine").nextFrame(); is this correct?_root._root[eelmine].nextFrame();

View 16 Replies

ActionScript 3.0 :: No Longer Move The "_root" By Changing The _x And _y Positions Of The _root?

Jan 26, 2009

I just recently began migrating from AS2 to AS3, and I have of course realized that I can no longer move the "_root" by changing the _x and _y positions of the _root (which no longer exists in AS3). How can I do this in AS3 (specifying _x, _y, _z possibly of the "_root")?

View 2 Replies

ActionScript 2.0 :: Remove All Mc At Different Depths?

Feb 24, 2011

I am trying to remove all instances of the many movie clips located inside a main holder_mc on the stage. I want to remove these on the click of a buttonSomething like this

onRelease() {
<<<<<!---- REMOVE ALL MC'S FROM HOLDER_MC ----!>
}

[code].....

View 2 Replies

ActionScript 2.0 :: Depths Particular To Movieclips?

Feb 3, 2005

Are depths particular to the timeline of the movieclip you refer to it? In other words, let's say you have actionscript to duplicate a movieclip 100 times, each time putting the new one on the next depth. But the code and the movieclip to be duplicated are themselves inside a movie clip. Are those depths inside that movieclip?

So for instance, let's say the parent movieclip lies on the maintime. And on a layer above that is a button. Are those duplicated movieclips going to be visibly above or below the button? A tangible example: I would like to have a smoke/steam effect that uses duplicateMC and depths. But I need the effect to be underneath other movieclips at certain times. Can I just contain the effect inside a movieclip that sits on a layer below other movieclips on the maintimeline? Or do I need to stop the effect and do a swapdepth with whatever the last depth was?

View 6 Replies

ActionScript 3.0 :: Placing Container Over Top Of Another To Specify Depths?

Jun 18, 2009

I have 3 containers on stage holding various buttons but these containers are created in seperate Class files....I want to place the 1 container over the top of another container similar to the way I use addChildAt to specify depths.....is there an easy way to do so?

View 4 Replies

ActionScript 2.0 :: Switching Depths Between Multiple MC?

Dec 12, 2009

I'm making a website for my business. I want this site to run similar to an OS UI. The first issue I've run into is swapping between "window" MC depths. I'm not quite sure if its just that I need to add a mathematical variable to each one every time it is clicked or how to getDepth of the highest "window" MC in order to put the desired "window" MC above it.

You can download the .fla file <a href="www.dpr.150m.com/images/index.fla">here</a>.

View 9 Replies

Professional :: Change Order Of Depths?

May 12, 2010

I have some movieclips stacked on top of each other, i've got them swapping depths onRelease, but I want them to swap in opposite direction to what they are now. Check out the link below, basically you click the 2nd or 3rd clip to call infront of the 1st, but i want to click the 1st to send to back and so on.[URL]..
 
Code as follows. Does anyone know what i would change to reverse the order? 
 
var mcs:Array = new Array (first_mc, second_mc, third_mc); 
var mc:MovieClip;var total:Number = mcs.length; 

[Code]...

View 3 Replies

ActionScript 2.0 :: Depths With A Particle System?

Aug 20, 2009

I am new to actionscript but I am fairly confident in messing around with it. I have been trying to make a particle engine for two days now and I'm at my wits end.

What's funny is, the particle engine works fine. i have piggy backed off of somebody elses particle engine and modified things to how i need them (And stripped it of a few unnessicary things..) what my problem consists of, is I am trying to make the particles go behind another movie clip. this movie clip is a frame (to make it blend in with the webpage it is displayed on) and it must always stay on top depth no matter what to give that affect.

[Code]...

View 4 Replies

ActionScript 2.0 :: Changing Layer Depths With Example?

Sep 6, 2009

Basically i want each of the side scrolling menu to apprear in front when hovered over.

View 1 Replies

ActionScript 2.0 :: Depths Particular To Timeline Of MovieClips?

Feb 3, 2005

Are depths particular to the timeline of the movieclip you refer to it? In other words, let's say you have actionscript to duplicate a movieclip 100 times, each time putting the new one on the next depth. But the code and the movieclip to be duplicated are themselves inside a movie clip. Are those depths inside that movieclip? So for instance, let's say the parent movieclip lies on the maintime. And on a layer above that is a button. Are those duplicated movieclips going to be visibly above or below the button?

A tangible example:
I would like to have a smoke/steam effect that uses duplicateMC and depths. But I need the effect to be underneath other movieclips at certain times. Can I just contain the effect inside a movieclip that sits on a layer below other movieclips on the maintimeline? Or do I need to stop the effect and do a swapdepth with whatever the last depth was?

View 7 Replies







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