ActionScript 2.0 :: Change The Depths Of Two Movieclips On The Same Layer With Swapdepths?

Jan 6, 2009

can i change the depths of two movieclips on the same layer with swapdepths? like...

mc1.swapDepths(mc2 + 1);

it's not working for me. So i figure you can't do it with two mc's on the same layer...

View 5 Replies


Similar Posts:


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 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 1/2 :: Changing Layer Depths ,,, Each Of The Side Scrolling Menu To Appear In Front When Hovered Over

Sep 6, 2009

Basically i want each of the side scrolling menu to apprear in front when hovered over. I have been breaking my head at this for a while and cant get it

View 1 Replies

ActionScript 2.0 :: SwapDepths On Multiple Movieclips/buttons?

Feb 24, 2010

I'm making a website where you click a character and a board drops down behind the character. But I have this for many other buttons. For example board 1 is already placed, I click button 2 and board 2 comes down infront of the first board (which I wanted btw) HOWEVER the board also goes infront of the characters, I've been trying to sort this but nothings working .

Button 1 code:
on (release) {
//Movieclip GotoAndPlay Behavior
_root.home.gotoAndPlay(2);

[Code].....

View 5 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 :: Draggin MovieClips In A Layer Beneath Another Layer?

Aug 17, 2010

I have a container MovieClip called Drags where I can drag stamps (other MovieClips)--they are added to the Drags container via addChild. I have a second container MovieClip above that one (display order-wise) call Paint that contains a bmp, and some sprites used for adding a layer of paint.
 
My question is this: I need to be able to click on the Paint layer when I am above a draggable MovieClip and trigger the MouseEvent for the correct object to drag it around, but the item must always remain below the Paint layer.

View 10 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

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

Change Swapdepths To Make Sure Layers Above Buttons STAY Above?

Aug 10, 2009

I'm using a really simple bit of code on some fading in/out buttons which overlap each other slightly to ensure that the one with the cursor resting over it sits in front of the others:[code]problem being that this brings the button in front of everything across all layers. How do I change my swapdepths to make sure the layers above the buttons STAY above? - or do I need to add something to the other layers to give them a fixed 'depth'?

View 11 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 3.0 :: Possible To Add Layers / Re-order Layers / Move Movieclips From Layer To Layer

Oct 22, 2008

Is it possible to add layers, re-order layers, move movieclips from layer to layer or specify which layer a duplicate movieclip appears on at runtime with AS3?I am aware of the depth properties and the functions associated with that but it would be easier to have a concept of a layer because I am dealing with masks.I have a nasty feeling I'm gonna be told that layers don't really exist within an swf and that depths and setmask are all there is to work with.

View 4 Replies

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 :: Add Movieclips To Layer?

Apr 26, 2010

A simple question I'm sure but its been driving me slightly mad.I have created a program where a movieclip is affected by sliders which affect its size and blur etc.Problem is, I want to use the same sliders to effect a different movieclip when a button is pressed, switching the movieclip so to speak.I thought about switching to another frame in the main timeline but the code is still there which means they are still affecting the same movieclip.I also thought that if i could get the code to affect a single layer then I could direct my code towards that layer so anything on it would be affected independently.

View 1 Replies

ActionScript 3.0 :: Set Of Movieclips In Each Layer

Apr 25, 2011

Currently I have two layers with a set of movieclips in each layer. I only have actions in one of the layers. This is an abbreviation of the code:

[Code]...

Should i move the showmary function into the layer with the mbelly movieclip? Is there anything else I'm missing?

View 3 Replies

How Does The Flash Layer Interact With The Flex Layer In A Multiple Layer Design

Aug 26, 2011

Don't know if the flash layer on the view stack contain only the compiled flash swf file

View 1 Replies

ActionScript 3.0 :: Stage3D - Put Movieclips And Sprites Underneath The 3D Layer?

Oct 6, 2011

Is it completely impossible to put movieclips and sprites underneath the 3D layer?Eg, you can't load a swf with 3D content and show it on top?

View 7 Replies

ActionScript 2.0 :: Change The FPS Of A Layer?

May 5, 2011

I wish to show balls being added on everyframe. But I want to to be able to increase/decrease the speed of it without changing the speed of everything else.

View 1 Replies

ActionScript 3.0 :: Button Change Layer?

Jan 15, 2009

I've seen the tutorials 'Flash Buttons with Action Script 3'Tried to make my own but PROBLEMS.First here what I want to learn:- have layer 1 with one button- new layer 'action1' with action for button on layer 1- have layer 2 with text- from start You only see layer 1 with the button- when click this button You see layer 2 with text and notsee layer 1 and it's stop herethis is my AS3 code:

btn1.addEventListener(MouseEvent.CLICK, click1);
function click1(evt:MouseEvent):void {
gotoAndStop("5");

[code]....

View 12 Replies

ActionScript 3.0 :: Dynamically Change Layer?

Jan 15, 2012

I've got an Adobe Captivate file which is pulling through an SWF which I have created. I am not sure exactly how the CP file is importing this SWF but it is.I'd like to ensure that this SWF is on the uppermost layer when the file is published as at the moment it is placed further down the order - which leaves it obscured by other elements on screen. Is there any AS3 code like onEnterFrame or something like that in AS3 which would lift it to the highest depth?

View 3 Replies

ActionScript 3.0 :: Possible To Change Layer Properties?

Sep 16, 2009

Is it possible to change the background of a certain layer in flash using code.

View 4 Replies

ActionScript 3.0 :: Change Color Of First Layer Only?

Jan 24, 2010

I have a movieclip object that I'm changing the color of.

ActionScript Code:
var colorTransform:ColorTransform = mc.transform.colorTransform;
colorTransform.color = 0xFF0000;
mc.transform.colorTransform = colorTransform;

My problem is that I have multiple layers in that movie clip and the code above changes every layer to that color. Is there a way I can change only the first layers color?

View 1 Replies

ActionScript 2.0 :: Change The Visibility Of The Second Layer

Dec 2, 2010

I am making an animation with subtitles (separate layer) but at the menu I have made a subtitle button that should change the visibility of the second layer, but I can't get past that bit.

View 1 Replies

Change Default Color Of Timeline Layer?

Jan 31, 2010

Is there a way to change the background color of the layers the Flash timeline itself? I'm using XP, and there is not enough difference in the color of a selected layer and one with extended keyframes that is not selected. At school I use a Mac and there is definitely a blue vs. a gray. On my computer, they are two very close shades of gray.

View 1 Replies

ActionScript 1/2 :: Change The Layer Depth Of A Drawing?

Aug 22, 2009

I've got a spiral

-----------------
function spiral(centerX, centerY, radius, sides, coils, rotation){    with(this){        moveTo(centerX, centerY);        var awayStep = radius/sides;        var aroundStep = coils/sides;// 0 to 1 based.        var aroundRadians = aroundStep * 2 * Math.PI;        rotation *= 2 * Math.PI;        for(var i=1; i<=sides; i++){            var away = i * awayStep;            var around = i *

[code]....
 
and I want some movie clips to appear infront as well as behind it, but right now it always appears on the bottom layer. Is there a way to attach the drawing to a movie clip or something so I can change it's depth?

View 4 Replies

Professional :: Change To A Duplicated Layer It Changes The Original As Well

Apr 1, 2010

I have a template that I am editing. I have created new layers by duplicating an existing layer. The problem I am having is that anytime I make a change to a duplicated layer it changes the original as well. ie if I attempt to edit the action script on the new layer it changes the action script on the original? It seems as though they are linked and I can not find a way to unlink them??

View 1 Replies

Flash 10 :: Change The Color Of One Layer In The Timeline?

Mar 9, 2011

Is it possible to change the color of one layer in the timeline?I would like to do this to create a kind-of separator...

View 0 Replies

ActionScript 3.0 :: Putting An Action Layer Over A Layer With A ClickTag Element

Nov 19, 2009

I am doing some research on creating clcikTags. I read a few places that the clcikTag should be on the top layer. That has been fine, but now I want to loop it and I usually put my actions in the top layer. Will this cause a problem? Am I better off just putting my loop  action on the last key frame of the clcikTag layer?

View 3 Replies

ActionScript 3.0 :: Convert Layer To Movie Clip Or Print Layer?

Aug 9, 2010

Im creating a program that is designed to allow the used to select  3 pictures (movie clips) and print them off on a single peace of paper.

The program works by allowing the user to select 3 graphics (the graphics are actually instructions for various exercises) and then moving the desired movieclips onto the stage. This all happens on a layer named "Content"

So far the program will allow the user to select the movieclips and will move them into place on the Content layer as well as move smaller versions of the pictures into a preview box the only thing it does not do is print. (the most important bit)

View 5 Replies

Actionscript 3 :: Create Multiple Layer Masks Over A Single Layer?

Mar 22, 2012

Is it possible to create multiple layer masks over a single layer using Actionscript3?Below is the flash effect I wanted to create with masks.First it starts from A and goes to B and C simultaneously.Then from B it goes to H and D simultaneously (the same applies to C).This is how the end result will look like.ps. I need my background to be transparent. I'm embedding it into a web page later.

View 2 Replies







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