Swap Depths For Multiple Movie Clips At The Same Time?
Aug 18, 2005is 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 Repliesis 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 RepliesI have a splash page for a site I have built and it is 7 hexagons in a group like part of a bee hive.When I mouse over on it grows (tweens)and will ultimatley show some content when finally completed.on mouse out it shrinks back to normal size.what I want to achieve is that when mouse over the depth of that mc instance is on top and all the others a in the background.now for that part I can't seem to get right...
if I have mouse out from another of the 7 clips to mouse over another I want the mouse over tween of the new hex square to be on top and the mouse out tween of the prevous hex square to be below the new mc Instance that I have just mouse over and all the rest of the hex squares to be at a depth below the the hex square I have just mouse out from...This is the code I have on the buttons
on (press, rollOver, dragOver) {
this.swapDepths(100); // set this instance to top depth_root.x.swapDepths(50); // set mouse out instance below top[code]............
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 RepliesI'm having trouble managing the depths of my movie clips.I've got a startDrag() function and a stopDrag() function. Whenever I rollover another MC, I want the depth of that object to change to 1+ the object it rolled over.(I apologize if my English is poor)This is as far as I got, but cIndex returns the depth of the object that is currently being dragged; not the object it's hovering over... Is there a way to get that depth?[code]
View 1 RepliesI'm having trouble managing the depths of my movie clips. I've got a startDrag() function and a stopDrag() function. Whenever I rollover another MC, I want the depth of that object to change to 1+ the object it rolled over.(I apologize if my English is poor) Can anyone give me a nudge in the right direction? EDIT: This is as far as I got, but cIndex returns the depth of the object that is currently being dragged; not the object it's hovering over... Is there a way to get that depth?
[Code]...
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*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]....
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 RepliesIts 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 Repliesi 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??
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]....
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 RepliesI 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.
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]...
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.
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].....
is it possible to swap the depths of externally loaded movies? if so, what is the best way to do it?
View 1 RepliesI 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].....
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 RepliesI 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 RepliesI have multiple movie clips on stage (all in separate layers, of course) as well as buttons on stage to play each movie clip. There are buttons inside each movie clip. The problem is that the buttons inside the top layered movie clip work, but the others in the movie clips below don't.
View 2 RepliesIm trying to drag 2 seperate clips at the same time. 1 clip is a handle clip which exists in a container clip called "handles container", the other is a shape clip which exists in a container clip called "shapes container. I want to make it so that when the shape is pressed the handle appears on the center of the shape and when the handle is dragged the shape is dragged with it.
View 3 RepliesI have this code to use to pause animations in different areas of a .fla, for each pause I have been copying this and changing the "var timelinePause" and other items as shown after the original code, is repeating this code for each pause just junk code? is there something else from this that I can use to pause?
[Code]...
I have ablut 60 movie clips attached dynamically on the stage in flash each at various depths. I want to place some other movie clips in between the depths of those clips dynamically .. how would i go about that?
View 2 Replieshow to imitate a reflection of a movie clip in a "mirror." I don't know if I should have the initial movie clip on custom cursor or have it set to drag... but either way I don't know how to make the second clip the "reflection follow along. Obviously it would need to follow at a slightly offset pattern so that you would be able to see both clips (or majority of them) at the same time. It's for a school project that is due at 9am tomorrow so time is of the essence!!
View 4 RepliesI was wondering about the flexability of loading movies into a movie clip. Currently, I am well able to load one movie into a movie "loader" clip, but thought maybe there is a way to load additional movie clips into that same "loader" clip, as i am starting to accumulate several different graphics that i need to have be inside movie clips so that i can make them change colors on the same frame when needed.
i shot from the hip and tried this code, but didnt have any luck:
mc_LCD_loader.attachMovie("hilight", "g", 1), ("header", "X", 1); mc_LCD_loader.g._x = 0; mc_LCD_loader.g._y = 1000;
mc_LCD_loader.X._x = 0; mc_LCD_loader.X._y = 1000;
[Code]....
I'm having some trouble following this (link) tutorial. I'm new to flash, so please bear with me.
In step 1 of this tutorial, we have created multiple movie clips and then a single big movie clip(including all the movie clips).
In step 4, I'm not able to access the properties of the clips we created earlier by using the following code, like in the tutorial.
[Code]...
i have 12 items that I want to appear on stage one at a time in sequence, and I'm using setinterval, but I'm finding it hard to stop it once i've reached the twelve items.
View 3 RepliesI have a movie clip loaded using action script 3 at the start of my animation, I want ito to end at the 120th frame. But I can't use the stop(); command because it will also stop the rest of my animations from the 121st frame onwards. how can I stop the movie clip without stopping the rest of my animations?
View 5 RepliesI have a small, hidden button that runs the following code.
Code:
on (rollOver) {
for (k=0; k<50; k++) {
duplicateMovieClip(this.snow, "snow"+k, k);
}
inside my movie clip, I have this
[Code]...