# Kax! ilyaslamasse! anyone! help!

**URL:** https://forum.kirupa.com/t/kax-ilyaslamasse-anyone-help/15282
**Category:** Uncategorized
**Created:** [March 12, 2003, 2:03pm UTC](https://forum.kirupa.com/t/kax-ilyaslamasse-anyone-help/15282 "2003-03-12T14:03:40Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![indojepang](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/indojepang/32/39_2.png) [@indojepang](https://forum.kirupa.com/u/indojepang)
#### Post date: [March 12, 2003, 2:03pm UTC](https://forum.kirupa.com/t/kax-ilyaslamasse-anyone-help/15282/1 "2003-03-12T14:03:40Z")

</div>

hello again guys…  
I have same problems with array(again)… i hope u could help me…

here’s the condition:

1. i’m duplicating movieclip as a button
2. when i release the current button\*, I want it’s \_visible = false;  
and images(mc that has frame contain image).gotoAndStop\*;
3. Other buttons, \_visible = true;

code:

//duplicate movieclip(butThumb)

butThumb.\_visible = false;  
for (i=1; i\<=5; i++) {  
butThumb.duplicateMovieClip(“butThumb”+i, i);  
thisBut = this[“butThumb”+i];  
if (i\>1) {  
thisBut.\_y = this[“butThumb”+(i-1)].\_y+this[“butThumb”+(i-1)].\_height+10;  
}

/_here’s the problem (I don’t know how to tell other butThumb except this butThumb that i’m pressing, \_visible = true;)/_

```
this["butThumb"+i].ii = i-1;
this["butThumb"+i].onRelease = function() {
	this._visible = false;
                            images.gotoAndStop(i);
};

```

}

please help me guys:(  
thank u…

---

<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: [March 12, 2003, 7:03pm UTC](https://forum.kirupa.com/t/kax-ilyaslamasse-anyone-help/15282/2 "2003-03-12T19:03:41Z")

</div>

so quiet around here… where’s everybody…:cyclops:

---

<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: [March 12, 2003, 7:38pm UTC](https://forum.kirupa.com/t/kax-ilyaslamasse-anyone-help/15282/3 "2003-03-12T19:38:30Z")

</div>

try to use

with(MCname) {  
functions  
}

---

<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: [March 12, 2003, 8:42pm UTC](https://forum.kirupa.com/t/kax-ilyaslamasse-anyone-help/15282/4 "2003-03-12T20:42:51Z")

</div>

> this[“butThumb”+i].ii = i-1;

I’m trying to help you out… but where is the .ii coming from?

---

<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: [March 12, 2003, 8:48pm UTC](https://forum.kirupa.com/t/kax-ilyaslamasse-anyone-help/15282/5 "2003-03-12T20:48:35Z")

</div>

ok, nevermind… I dont think the domain of the question is even there… what I would do in the function is a loop

```php

this["butThumb"+i].onRelease = function() {
     this._visible = false;
     images.gotoAndStop(i);

     for (x = 1, x <=5, x++){
          if (x != i){
               this["butThumb"+x]._visible = true
          }     
     }
}

```

the for loop says that everytime except when x is equal your current index, it should make the button visible…

does this help?

---

<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: [March 13, 2003, 2:58pm UTC](https://forum.kirupa.com/t/kax-ilyaslamasse-anyone-help/15282/6 "2003-03-13T14:58:02Z")

</div>

sorry for the late reply…

thank u for the code,  
i’ll inform the progress…i’m on it now…

---

<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: [March 13, 2003, 5:11pm UTC](https://forum.kirupa.com/t/kax-ilyaslamasse-anyone-help/15282/7 "2003-03-13T17:11:43Z")

</div>

i’m done with the project…(deadline suck!)  
but not the way I want it…

I’m startin this from zero again…  
1st evaluation :

for lavaboy  
PHP:--------------------------------------------------------------------------------  
this[“butThumb”+i].onRelease = function() {  
this.\_visible = false;  
images.gotoAndStop(i);

```
 for (x = 1, x &lt;=5, x++){
      if (x != i){
           this["butThumb"+x]._visible = true
      }     
 }

```

}

* * *

it’s not workin…

I attach my fla for u to see…🙂

---

<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: [March 13, 2003, 7:49pm UTC](https://forum.kirupa.com/t/kax-ilyaslamasse-anyone-help/15282/8 "2003-03-13T19:49:00Z")

</div>

```auto
this["butMain"+i].onRelease = function() {
	for (x=1; x<=photoArray.length; x++) {
		this._parent["butMain"+x]._visible = true;
	}
	this._visible = false;
}

```

??

---

<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: [March 14, 2003, 6:20am UTC](https://forum.kirupa.com/t/kax-ilyaslamasse-anyone-help/15282/9 "2003-03-14T06:20:59Z")

</div>

it’s about time man… you’re always there to solve the problems…  
where have u been??

can i put your link for the credits when my personal page is online???🙂  
(what is it?)

a question : this.\_parent, is it the same statement with \_root. in this situation??

thank u so much … this is for my appreciation[SIZE=4] **KAX THE SAVIOR** …[/SIZE]

---

<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: [March 14, 2003, 6:24am UTC](https://forum.kirupa.com/t/kax-ilyaslamasse-anyone-help/15282/10 "2003-03-14T06:24:43Z")

</div>

and by the way…

[COLOR=red][SIZE=4]Happy Belated Birthday !!![/SIZE][/COLOR] 😛

---

<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: [March 14, 2003, 6:30am UTC](https://forum.kirupa.com/t/kax-ilyaslamasse-anyone-help/15282/11 "2003-03-14T06:30:36Z")

</div>

> it’s about time man… you’re always there to solve the problems…  
> where have u been??

i’ve been really drunk celabrating my past birthday 😛

not kidding … it was my birthday march 7th 🙂

> can i put your link for the credits when my personal page is online???  
> (what is it?)

nah … you don’t need to 😉 [size=1]besides i don’t have a site :P[/size]

> a question : this.\_parent, is it the same statement with \_root. in this situation??

yes … but i prefer \_parent so you can place everything into a movie clip if needed and the script should still work 😉

> thank u so much … this is for my appreciation KAX THE SAVIOR …

no problem man =) 😉

---

<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: [March 14, 2003, 6:32am UTC](https://forum.kirupa.com/t/kax-ilyaslamasse-anyone-help/15282/12 "2003-03-14T06:32:18Z")

</div>

> \*Originally posted by indojepang \*  
> \*\*and by the way…

[COLOR=red][SIZE=4]Happy Belated Birthday !!![/SIZE][/COLOR] 😛 \*\*

thanks =)

i really appreciate it 😉

---

<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: [March 16, 2003, 6:22pm UTC](https://forum.kirupa.com/t/kax-ilyaslamasse-anyone-help/15282/13 "2003-03-16T18:22:18Z")

</div>

for (x=1; x\<=photoArray.length; x++) {  
this.\_parent[“butMain”+x].\_visible = true;

should be : photoArray.length+i  
isn’t kax?..

next problemo… 🙂  
the images(MC), u forgot to write it , if i only put this:

this[“butMain”+i].onRelease = function() {  
[COLOR=red]images.gotoAndStop(i);[/COLOR]  
for (x=1; x\<=photoArray.length; x++) {  
this.\_parent[“butMain”+x].\_visible = true;  
}  
this.\_visible = false;  
}

the images gotoAndStop the last frame on the MC…

---

<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: [March 16, 2003, 8:04pm UTC](https://forum.kirupa.com/t/kax-ilyaslamasse-anyone-help/15282/14 "2003-03-16T20:04:28Z")

</div>

Ok, I am confused. I don’t see any problems after what Kax posted. And I don’t see anything on your stage besides the buttons (which are 1 frame), so what are you gotoAndPlaying?

The script there should work.

---

<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: [March 16, 2003, 8:08pm UTC](https://forum.kirupa.com/t/kax-ilyaslamasse-anyone-help/15282/15 "2003-03-16T20:08:03Z")

</div>

Nevermind, I just tested it, I see what you 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: [March 16, 2003, 8:11pm UTC](https://forum.kirupa.com/t/kax-ilyaslamasse-anyone-help/15282/16 "2003-03-16T20:11:53Z")

</div>

[AS]this[“butMain”+i].playVar = i;  
this[“butMain”+i].onRelease = function() {  
images.gotoAndStop(this.playVar);  
for (x=1; x\<=photoArray.length; x++) {  
this.\_parent[“butMain”+x].\_visible = true;  
}  
this.\_visible = false;  
};[/AS]

fixed.

---

<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: [March 16, 2003, 8:19pm UTC](https://forum.kirupa.com/t/kax-ilyaslamasse-anyone-help/15282/17 "2003-03-16T20:19:48Z")

</div>

the fla…i forgot

---

<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: [March 16, 2003, 8:21pm UTC](https://forum.kirupa.com/t/kax-ilyaslamasse-anyone-help/15282/18 "2003-03-16T20:21:25Z")

</div>

refer above 😉

---

<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: [March 16, 2003, 8:30pm UTC](https://forum.kirupa.com/t/kax-ilyaslamasse-anyone-help/15282/19 "2003-03-16T20:30:51Z")

</div>

WOWOW… THANK U VERY MUCH LOST!!! U’RE GREAT!! THANK’S

but what does (this[“butMain”+i].playVar = i;) means?  
is it (this[“butMain”+i]) has another virtual clip??

(if this question make u laugh…well… that’s me…)

thank u for solving this Lost!! u’re throw away my headache…

---

<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: [March 16, 2003, 8:33pm UTC](https://forum.kirupa.com/t/kax-ilyaslamasse-anyone-help/15282/20 "2003-03-16T20:33:46Z")

</div>

this[“butMain”+i].playVar = i

It creates a variable on your clip called playVar.

It sets the value of the variable to whatever value “i” is equal to at that time in the for loop.

We then call this variable (this.playVar since the variable is in that clip) in the onRelease of the this[“butMain”+i] clip.

[Next page](https://forum.kirupa.com/t/kax-ilyaslamasse-anyone-help/15282.md?page=2)
