View Full Version : Setting the depth on MCs
kildre
07-30-2002, 03:09 PM
Below is the incorrect version of what I am trying to do...
I want the dynamic instances to be created such that they are below another layer..
Psudo code : but = _root.but;
Or can I set the layer Im trying to have always on top some how?
for(var x=0; x<portfolios.length; x++){
this.attachMovie("btn","btnWhole"+x,x);
but = this["btnWhole"+x];
?? -> _root.swapDepths(but);
but._x = x*Pgap+Xshift-x;
but._y = Yshift
}
-Kildre
mad_A
07-30-2002, 05:27 PM
Have a look at this tutorial by the brilliant Jesse - it's where I got my head around depths!
http://www.actionscripts.org/tutorials/intermediate/swap_depths/index.shtml
kildre
07-30-2002, 05:50 PM
Thanks. I think my submit has the answer.. every time I hit it I seem to get the answer that pops into my head .. "Only after I click"
I often wonder if God coded my brain as
on release ( kildre finds answer) {
return true;
lol
mad_A
07-30-2002, 11:05 PM
I know the feeling. Same is always happening to me - if only I could bottle it I'd be a millionaire!
Abelius
07-31-2002, 10:58 PM
Originally posted by kildre
on release (kildre finds answer) {
return true;
}
Now, that was a good one...!!!
mad_A
07-31-2002, 11:10 PM
Yeah, one of the best I've seen in a while. Can't get it workingon my system though.:(
Abelius
07-31-2002, 11:21 PM
on (pressHarder) {
sweat.comingOut();
}
on(jobDone) {
needAnotherBeer = true;
}
on(getHome) {
if (alone == true) {
this.eatJustAboutAnything();
} elseif (wifeAtHome == true) {
this.eatDecentStuff();
}
I am sure there is even funnier stuff out there... :)
Ricod
08-01-2002, 10:42 AM
I think this code is in my DNA (not sure, my DNA -> AS convertor is still in alpha fase):
if (currentLine <= nextLine) {
currentline.speed -= 10;
}
function search(){
lookAround = true;
places = random;
if (_root.me._x < _root.keys._x) {
var distanceX = _root.keys._x - _root.me._x;
}else{
var distanceX = _root.me._x - _root.keys._x;
}
if (distanceX < 10) {
_root.keys._x += 10;
}
}
if (keys.status == "lost") {
search();
}
|
vBulletin® v3.8.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.