Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Pb With Lawer Depth (I Suppose)



Here is the pb...

I've got a MC called Main on ie lawer 1. I've got another MC called ie sounds in lawer 2.
When I click on a button containing on the MC "souds", MC "souds" have a tween shape and cover/hide all the lawer 1 (MC main).
On the MC main i've got some button and I can still click on them even if they're hide by the MC "sounds" on the upper lawer (lawer2).

What' I've missed?



ActionScript.org Forums > Flash General Questions > Other Flash General Questions
Posted on: 08-01-2002, 02:17 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Easy I Suppose
Hi. I have a simple question regarding Flash. I've made a little web site. I made some buttons for it. I want that, when one clicks on a button, it will pop out an html site. I've done the other sites in html so what code should I use to link them to the buttons?

Help...the Preloader Not Appear As Suppose To...
i got main movie size about 227kb but the preloader it seems not appear as suppose to...


u guy's can view my fla at
here


pls help mee..anyone?


any help would be appreciated...

Stage Size Is Not What It Is Suppose To Be
Hello Everybody,

My boss has given me a most excellent copy of flash MX to work with. (Can you say "cheap old bugger?")

Anyway, I started a new project and selected the stage size to be 162px by 360px. This is to show vertical scrolling ads that are 160px wide and 120px high, with three ads (or a portion thereof) being visable at any given time during the scrolling. The ads loop continuosly.

My issue is that the ad images that are off stage and waiting to move onto what is suppose to be the visable area of the stage, are all visable when I test the scene or when I publish the fla to the final swf.

My Question:
Is there a setting that I've missed and need to flip on or off to hide the images that are off stage and keep them from showing? Or, is there something (other than using a newer version of flash rather than MX) that I can do to prevent/fix this issue? Of course I am under a time restriction, so prompt help is appreciated.

BTW - The area on the web page that the final swf file will go is 165px wide and 370px high, so I need to keep the

What I Suppose Is Probably A Very Simple Task...
how do i do this sliding movie like on this page www.izreal.com ?

Noobie AS Question About Variables. (I Suppose)
quick break down

I have a a button that starts a transition efect/animation to play...
I have a stop action mid-way through where it does:
1.) shows my preloader clip and starts it
2.) has frame action of load (whatever content external.swf or
external .jpg) into an empty "container" clip.

once preloader checks for 100% load of the external content being loaded into the "contaier" clip...it starts the "outro" transition effect..and removes preloader clip from stage


what I want to knwo wo to do is..(basically use these clip over and over so i need to remove the frame action where it loads the external content.... and basically check s for a varibale instead.. so I can assign the variable to the button.

so the frame action on the transition effect has something similar to this


Code:
_root.container.loadMovie("varaiable");


this is what I have now:

_root.container.loadMovie("1.jpg");

so on the button I have something like:


Code:
on (release) {
_root.transition.gotoAndPlay ("in");
variable = "1.jpg";
}

}
I dont knwo the ocrrect syntax or anthing..or even if this is the correct way...so any help is appreciated thanks.

-whispers-

Noobie Question I Suppose. I'm Just Missing Something
I'm trying to make 2 things move when I click on one of the objects.

The code I'm putting in is


Code:
on (Release) {
gotoAndPlay("txt") ;
gotoAndplay("bar") ;
}
simple bit of code!

But it always just plays "bar" Which is what I am clicking on to make them move.

Even when I delete out "gotoAndPlay("bar"); It still only moves "bar"

any ideas?

Noobie Question I Suppose. I'm Just Missing Something
I'm trying to make 2 things move when I click on one of the objects.

The code I'm putting in is


Code:
on (Release) {
gotoAndPlay("txt") ;
gotoAndplay("bar") ;
}
simple bit of code!

But it always just plays "bar" Which is what I am clicking on to make them move.

Even when I delete out "gotoAndPlay("bar"); It still only moves "bar"

any ideas?

Button Within A Movie That Suppose To Call .swf Or Scene ?
i have this button called "test 1" within a movie and it suppose to call this movies test 1.....i thought as long as i put on relase go play the .swf movie it would... also i try to be slick and just copy da frames to a new scence in the .fla but when i go and use gotoandplay command then i chose the correct scence (which is scence 2) and i even try using the lable name and frame number (2 different occasions) but it still would pull that scence up. What it kept doing is restarting the movie that i have my buttons in but that aint what i want it to do... i cant figure out the problem for the life of me..... SOME PLEASE HELP

Clock Trouble (i Suppose I Should Stop Slamming It Against The Wall...)
ive got this code:


code*
//you can ignore just about everything except stuff dealing
//with milliseconds, as thats what im having troubles with.
dObj = new Date();
h=dObj.getHours();
m=dObj.getMinutes();
s=dObj.getSeconds();
ms=dObj.getMilliseconds();
//make strings to be modified
hour= String(h);
minute= String(m);
second= String(s);
miliS= String(ms);
//add 0 if only 1 digit
if(hour.length == 1) {hour= "0" + hour;}
if(minute.length == 1) {minute="0" + minute;}
if(second.length == 1) {second="0" + second;}
if(miliS.length == 1) {miliS="0" + "0" + miliS;}
if(miliS.length == 2) {miliS="0" + miliS;}
//*tries* unsuccessfully to make miliS only 2 digits.
miliS.slice(-2, -1);
time = hour + "." + minute + "." + second + "." + miliS;
*/code

in the first frame of an mc. the dynamic text box displays everything right except the milliseconds. i can't seem to keep it to two characters. theres a line of code that tries to tell miliS to slice off the last digit, but i can't get it right.


p.s. i still can't get the code i type in a post to be set off and in blue text... help?

Problem About Depth Of Objects..(swap Depth) Plse.help
umph..hello i'm nameg sir
i'm trying to do dragging project. drag isomatric object in small room(isomatric view too) for test installation..(so i necessary have foreground objects,background objects ..u know)
now i can drag many objs. in same movie when i press it , by i use swap depth command (for see it above other)and drag it around sometime it works...but sometime it don't!...
1..... some obj. automatic swap its depth! when i release other one....i don't know why
2. some time i dup. new obj. to drag and it del some old obj. that call before
ps. i use swap code from this site tutorial ...s.a.Drag & Drop / Swap DepthsAuthor by : estudioworks

thank u so muchhhhhhhhhhhhh

[as1] [clip Depth] Can You Assign A Clips Depth?
Does anyone know if it is possible to assign a depth to a MC? What I need to be able to do is to tell a MC to be at a certain depth. Any thoughts?

--xenite

Question About Depth And Highest Depth
Hello hello
I am learning AS and am now at the depth story.
I have questions about it : when I create an empty mc, where different swfs will load in ( loaded on main stage by several movie clips) is it interesting to use the getNextHighestDepth command ??
Thank you action scripters !!!

Z-Depth
on my site I have content that appears in windows.
Each content window, (itself a mc) is on a different layer, on the timeline.

Is there a way of bringing a movie to the front, (ie by clicking on a button) using actionscript...I have seen the z-depth command but aint sure how to implement it?

Any ideas anyone?

Cheers - Check my site if you don't fully get what I mean....http://www.beseku.co.uk

Set DEPTH
is it possible to change the depth of a (dublicated)movieClip with a variable? I need this for a (pseudo) 3d engine!

peter

Depth
ok going to try this a diffrent way. I am going to preload 10 swf into difrent levels one on top of the other. the top one being blank so nothing shows. now I have 10 buttons in another swf on the right side that are loaded in there own level so the always show. now how to I get the first 10 movies to swap depth, I read what I could on macromedia and just could not make sence out of it.

Fl Depth
I have button that when clicked it makes a mc move back into the screen using the fl perceptive code which works but what I want is when you roll off the button for it to come back to its orignal scale and position .
on the button I have
on rollOver _root.acive =true; and rollOut _root.active=false[code]
onClipEvent (load) {
fl=150;
x=_x;
y=_y;
z=0;
spd=5;
}
onClipEvent (enterFrame) {
if ( _root.active ) {
scale=fl/(fl+z);
_x=x*scale;
_y=y*scale;
_xscale=_yscale=scale*56.4;
z+=spd;
if (z>400) {
z=400;
} else if (!_root.active) {
z-=spd;
[Edited by ericflash on 03-10-2002 at 08:53 PM]

Depth ?
can somebody please explane this depth thing to me cause i've herd of it but i really don't know what it does and how to use it....ect .

Depth.....
I am trying to have a gun that moves from side to side with Key.LEFT and Key.RIGHT.

and when you press spacebar it attaches a movie of a bullet moving forward

I am not worried yet about all the hitTest and enemys

But there is one problem, i don't know how to make all the bullets stay on the screen.

It sets them at one depth and then if you shoot again it will take away the last bullet, because it sets it at thesame depth.

doe any one have a solution¿?¿

Please help!

Depth
Does anybody know how to change depth property in movie clips?
Thanks.

Depth
hi there!
can anyone tell me how to change the depth of a loaded movie?i can't put it behind the content of the original one!
thanx!

Depth
Hello!

Is it posible in flash to make one mc appear over another even that they are in the same layer a _depth or _z something like that?

Depth.....
How would I go about making a MC in _level0 be above _level2

I sthere a way that a MC on the main time line can be higher than a SWF with

code:
loadMovieNum("contact.swf",2)

Depth
Ok, i have some buttons and movieclips, when you press a button i need it to bring it's corosponding movieclip to the front of the rest...

anyone?

-Stwelin

Depth
If i have and object, and I want its depth to be _parent.mc's depth - 1, how would I actionscript it on MX?
Im thinking like

this._depth = _parent.mc._depth-1

but it's not working. how's it meant to work?

Please remember i'm using MX pro 2004, and I will be truly thankful if you provide me the answer.

Depth
If i have and object, and I want its depth to be _parent.mc's depth - 1, how would I actionscript it on MX?
Im thinking like

this._depth = _parent.mc._depth-1

but it's not working. how's it meant to work?

Please remember i'm using MX professional 2004, and I will be truly thankful if you provide me the answer.

Depth?
Hi, after i have duplicated a MC, i want its depth to be less than that of my cursor?? how can i do this??

Depth
Is there a code in actionscript (i'm using Actionscript 2.0, Mx Pro 2004) which tells a movie clip to arrange itself under another mc on _level0, without swapping?

Please try, Ryan.

Set Depth
Hi, I attach a movie clips when movie is running but i want it behind my top layer 'tree'. I want it in the layer 'App'. I tried putting App in quotaion marks in the depth bit and i tried it without quuotaion marks like so

this.attachMovie("Apple","Apple_mc" + AppNum,"App")

Dont work.

How do i do it?

Thx

Help With Depth
How do you change the depth of an object already on the scene?

Get Depth?
i want to search a specific depth, and have it return the name of the movieclip there, i know there is a class that does this, but cant remember its name

Depth
what do i need to to to get a MC on my stage to sit above my circlemc which is using:

this.attachMovie("circle", "circle"+count, 10000+count,{_x:210, _y:250,_xscale:100, _yscale:100});

iv'e tried this:

this.mainBut.getNextHighestDepth();

but no luck

rat

[F8] How Is This Done? 2D, But With Depth...
Yes I know that makes it 3D, but what I'm looking for are flat levels at different depths. So maybe you click on one character and it zooms in and the other levels move accordingly? It could be thought of as paper dolls on toothpicks in a diorama. I'm not sure what to call it - check the example for my ad hoc version 1.

What I want is to move around, but always from the front, in a convincing way, as different characters are clicked. My question is how would I mathematically get the various MC's locations and scales? My best guesses look like just that, guesses...

Thanks!

Depth From AS2 To AS3.
I have been trying to do depth sorting for my MMORPG in Flash AS3. I saw this on Kirupa for Depth Sorting: http://www.kirupa.com/developer/isom...th_sorting.htm, but it seems to be AS2, and I already tried that method the same way in AS3. It doesn't work. What would I need to do to switch this method into AS3? In AS3, the max depth is the number of children, but I think there may be a way around. Anyone know how to fix this? Thanks in advance.

[F8] I'm A Little Out Of My Depth...
Hello, o' noble and sagacious ones;
i recently put up a site at creativelicensedesign.com that is flash based. when i test it on the computer, its fast like anything. but when i go to the site, its really slow. i am aware of the concept of a preloader but i havent the faintest clue what to do about it. any suggestions?

Thanks!
Berish

Can't Set Depth
Hello,

I was trying to remove a movieclip with no luck. I figured it could only be because there was no depth which turn out to be the case. I have tried to manually set the depth and cannot. I have 6 items attached in total and 2 of them cannot be removed or have depths defined for them.

For example...


Code:

subNav = survey_mc.attachMovie("SubNavSet","SubNavSet", survey_mc.getNextHighestDepth(),{_x:13, _y:558});

mainNav = survey_mc.attachMovie("MainNavigation","MainNavigation", survey_mc.getNextHighestDepth(),{_x:0, _y:260});

trace(subNav.getDepth()); //traces undefined
trace(mySlideViewer.getDepth());//traces 7
and


Code:

subNav = survey_mc.attachMovie("SubNavSet","SubNavSet", 2000,{_x:13, _y:558});

mainNav = survey_mc.attachMovie("MainNavigation","MainNavigation", survey_mc.getNextHighestDepth(),{_x:0, _y:260});

trace(subNav.getDepth()); //traces undefined
trace(mySlideViewer.getDepth());//traces 2001
does anyone know why this is happening and how to fix it?

thanks

Depth
I have a serious question about the getNextHighestDepth.

I am using the attach movie method to place some items on the stage, but it seems to be over lapping. Sometimes its in the right place and other times its missing?? Not too sure what's the problem here.

Example:

Code:

this.createEmptyMovieClip("emptyMC", this.getNextHighestDepth());
emptyMC.attachMovie("shapes", "name_shape, emptyMC.getNextHighestDepth(), {_x:329, _y:159});
}
emptyMC.attachMovie("letters", "alphabets", emptyMC.getNextHighestDepth(), {_x:327, _y:163});
}
Thanks

Depth From AS2 To AS3.
I have been trying to do depth sorting for my MMORPG in Flash AS3(Yes, I posted an earlier post, but I found more information and my question changed ultimately). I saw this on Kirupa for Depth Sorting: http://www.kirupa.com/developer/isom...th_sorting.htm, but it seems to be AS2, and I already tried that method the same way in AS3. It doesn't work. What would I need to do to switch this method into AS3? In AS3, the max depth is the number of children, but I think there may be a way around. Anyone know how to fix this? Thanks in advance.

Set Depth?
I have a deck of cards from 1-5 that are overlapping each other. When you click on one it enlarges and using swapDepth come to the front. When I close the card it goes back to it original state but is now on top of the other cards.

Is there a way that you can set depth? I want cards 1-5 to be at depths of 1-5 so when I close my card I can define what depth I want my card to return to.

Thanks for any help

Z-depth?
hi.
Ive just started using flash cs3 for games, and i was wondering if there's a way to control what depth movie clips get displayed at, as in, one picture in front of another? i know you can do it all on layers, but is there a way to control it with actionscript?
thanks.
jack.x

Depth
i've got a button and want to control it in actionscript to be infront of a movieclip created in actionscript...

Depth
Hey guys, I'm sure that I have seen a tutorial on this site with this topic, but for the life of me I can't find it again, and my search was useless so hear goes: How do I bring a movieclip to the front when it is played? So that whichever mc is clicked last goes in front of the others....

Thanks

Insomniac

Help With Depth
Hi i hope u can help me cause i know u rock!!

I´m building a form applicaton using components, i have tree separated forms every one of them inside a MovieClip and i call them whenever i need with the tab component, ok?

Now i also build a slide menu to access any part of the form in the left part of my movie and when it appears it is alway shown at the back of my forms.

I can´t make my menu to be in front of the forms, i have already tryied by inserting the menu on a higher level form, in a higher layer....I want to know if there is an action that helps me to tell the menu to have a higher depth when its shown.

In a very more simple way, How do i manage MovieClips depth ? , because components inside my forms always superpose to my menu.

How do i disable my form's movieclip when the menu is shown.

Thank u and sorry about my english.

[FMX] Depth
Hi!
I try to obtain the effect like this:
http://www.elementzoffoto.com
It's the effect in the 1ST page, after you click on enter, where you have 3 schedules that change depth.
My problem is that when i use the swapDepth, in the same moment I click on the second schedule (For exemple), the depth change.
I would like the depth change after the animation and not imediatley.
So, excuse me for my english, I hope you understand what I mean!!
Bye bye!!

Get Depth
this is a simple one.
on Frame XX i want to have symbols on layers 1,2,3 (for sake of argument) at differnt depths.
thats the tag to change the depth of multiple symbols?

Depth Mc
I have more than one holder(mc) on stage. How can I make sure that the mc I won't on top of the other mc(holder) is. Not by layer but by script.
It's with swapdepth or getnextdepth or something?Don't know any help is appreciated

Depth Help
Hello,
I'm having trouble making a movie clip (portfolio_mc) appear on top of another movie clip. (bg_mc) I've tried setting portfolio_mc to the next highest depth using the following directly on the movie clip.

onClipEvent(enterFrame) {
this.swapDepths(portfolio_mc.getNextHighestDepth() );
}

I've also tried multiple times to set bg_mc to the lowest depth possible, but my novice AS skills are hopeless.

Are there any other ways I can set portfolio_mc's depth to the highest possible?
(or bg_mc's depth to the lowest possible..)

3d And Depth
I'm trying to have a 3d text revolve around an object.

suppose the object's depth is 0 and the text revolve 100 units around the object which means that each individual letters ( which duplicated clips from a dynamic text animation ) changes depth at every frame from 100 to -100.

The problem is that i can't make the letters go around the object.

I checked every letters depths and they are correct. What i'm assuming is that the original text animation is on a different depth than the object ( say 1 ) and each individual letters are on different sub-depths, not related directly to the root, so it would be something like:

_root.text_mc.letter.getDetph() > _root.object.getDepth()

even though,

_root.text_mc.letter.getDepth() = -100

and

_root.object.getDepth() = 0


Have any experienced that kinda problem? How were you able to get around that?

Thanks,
jtax

Depth
Hey guys, I'm sure that I have seen a tutorial on this site with this topic, but for the life of me I can't find it again, and my search was useless so hear goes: How do I bring a movieclip to the front when it is played? So that whichever mc is clicked last goes in front of the others....

Thanks

Insomniac

Help With Depth
Hi i hope u can help me cause i know u rock!!

I´m building a form applicaton using components, i have tree separated forms every one of them inside a MovieClip and i call them whenever i need with the tab component, ok?

Now i also build a slide menu to access any part of the form in the left part of my movie and when it appears it is alway shown at the back of my forms.

I can´t make my menu to be in front of the forms, i have already tryied by inserting the menu on a higher level form, in a higher layer....I want to know if there is an action that helps me to tell the menu to have a higher depth when its shown.

In a very more simple way, How do i manage MovieClips depth ? , because components inside my forms always superpose to my menu.

How do i disable my form's movieclip when the menu is shown.

Thank u and sorry about my english.

Copyright © 2005-08 www.BigResource.com, All rights reserved