# Never ending nightmare

**URL:** https://forum.kirupa.com/t/never-ending-nightmare/10565
**Category:** Uncategorized
**Created:** [January 3, 2003, 1:12pm UTC](https://forum.kirupa.com/t/never-ending-nightmare/10565 "2003-01-03T13:12:07Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ozy](https://avatars.discourse-cdn.com/v4/letter/o/71e660/32.png) [@ozy](https://forum.kirupa.com/u/ozy)
#### Post date: [January 3, 2003, 1:12pm UTC](https://forum.kirupa.com/t/never-ending-nightmare/10565/1 "2003-01-03T13:12:07Z")

</div>

i am still workin on the same movie  
u know there is a bug about unloadmovie method so i revised everything and attached the movies i loaded before,so that i could use removemovieclip method…  
but there is still a problem; when i remove the mc s from some buttons and recall the same mc s again, they don’t obey the codes written …grrrhhh

here r all my codes;

onClipEvent (load) {  
this.\_x=0;  
this.\_y=9;  
buttonNames=[“BÝZE ULAÞIN”,“ÝÞ ORTAKLARI”,“PORTFÖY”,“ÇÖZÜMLER”,  
“SERVÝSLER”,“PROFÝL”,“ANA SAYFA”,“HABERLER”];  
item.\_visible=false;  
function populateList() {  
spacing=20;  
\_global.numberOfButtons=buttonNames.length;  
var i=-1;  
while (++i\<numberOfButtons) {  
name=i;  
item.duplicateMovieClip(name,numberOfButtons-i);  
trace(this[name].content.attachMovie(“content”+i,“content”,2+i));  
this[name].itemName.text=buttonNames\*;  
this[name].\_x=0;  
this[name].\_y=390-(i\*spacing);  
}  
}  
populateList();  
}

these r the ones i use to create my slider menu items and attach the related contents…they work properly…

on (release) {  
trace(\_root.window4\_1.attachMovie(“yazilim”,“new”,10));  
if(\_root.window4\_1.\_alpha=30)  
{  
\_root.window4\_1.\_alpha=100;  
\_root.window4\_2.\_alpha=30;  
\_root.window4\_3.\_alpha=30;  
}  
trace(\_root.x +=2);  
\_root.window4\_1.swapDepths(\_root.x);  
}

this one is for one button inside the mc content4 we attached before…there 3 buttons in content4…

on (press) {  
\_root.window4\_1.\_alpha=100  
\_root.window4\_2.\_alpha=30  
\_root.window4\_3.\_alpha=30  
\_root.x +=2;  
\_root.window4\_1.swapDepths(\_root.x);  
startDrag(this);  
}  
on (release) {  
stopDrag();  
}

this one is for a button inside window4\_1 yazilim…

anyway here comes the one that works …

on (release) {  
i=this.\_name;  
removeMovieClip ("\_root.window4\_1.new");  
removeMovieClip ("\_root.window4\_2.new");  
removeMovieClip ("\_root.window4\_3.new");  
while(0\<=i) {  
if (\_root.slidermenu\*.durum==1) {  
\_root.slidermenu\*.play();  
}  
i–;  
}  
}  
this one is on a button in slidermenu.item …

and here is the one that doesn’t work

on (release) {  
i = this.\_name;  
k = Number(i);  
removeMovieClip ("\_root.window4\_1.new");  
removeMovieClip ("\_root.window4\_2.new");  
removeMovieClip ("\_root.window4\_3.new");  
j = k+1;  
trace(j);  
\_root.gotoAndStop(j);  
while (i\<=numberofbuttons) {  
if (\_root.slidermenu\*.durum == 0) {  
\_root.slidermenu\*.play();  
}  
i++;  
}  
}

let me explain u the problem ;

let’s say that i have opened the 4.th slidermenu item by clickin on its button and when it slides up it shows me content4 that i have attached…

…

now i wanna see the mc s inside it and trigger them by clicking on the buttons inside content4…

each of the buttons in content4 attach the mc s called yazilim etc… into instances window4\_1…etc…

then i wanna take a look at another menu item so i close down (or up) content 4 and slide the other one i wanna check for…

and the mc s attached are removed…  
…

but when i do this with a slidermenu item that is below the one i have just used (4th one ) and slide back the 4th one again;the problem starts…

it acts like there r no codes about alphas or depths of the mc s attached in instances window4\_1 etc…

and worst of all it creates two copies of these mc s and doesn’t remove them later…

because they become undefined stuff this time…  
but it works correctly when i remove them from a slidermenu item above it…

if there’s anyone here who can solve this problem i am gonna start adoring him/her…it’d better be a he

thanx in advance everyone…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [January 3, 2003, 1:21pm UTC](https://forum.kirupa.com/t/never-ending-nightmare/10565/2 "2003-01-03T13:21:42Z")

</div>

try not to crosspost

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [January 3, 2003, 1:36pm UTC](https://forum.kirupa.com/t/never-ending-nightmare/10565/3 "2003-01-03T13:36:26Z")

</div>

what do u mean?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [January 3, 2003, 2:01pm UTC](https://forum.kirupa.com/t/never-ending-nightmare/10565/4 "2003-01-03T14:01:57Z")

</div>

You posted two identical threads on different forums. that will not help you to get more atention dude.

:-\
