# Problem with attchMovie and for, i think :)

**URL:** <https://forum.kirupa.com/t/problem-with-attchmovie-and-for-i-think/195276>\
**Category:** flash\
**Created:** [July 30, 2006, 12:01pm UTC](https://forum.kirupa.com/t/problem-with-attchmovie-and-for-i-think/195276 "2006-07-30T12:01:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![unnamed](https://avatars.discourse-cdn.com/v4/letter/u/91b2a8/32.png) [@unnamed](https://forum.kirupa.com/u/unnamed)\
**Post date:** [July 30, 2006, 12:01pm UTC](https://forum.kirupa.com/t/problem-with-attchmovie-and-for-i-think/195276/1 "2006-07-30T12:01:29Z")

</div>

Hello.  
The problem is that I can’t make this code get to work how i want:  
ActionScript Code:  
[FONT=Courier New][LEFT][COLOR=#000000] **function** [/COLOR] images\*\*\*\*[COLOR=#000000]([/COLOR]currMovie, currPanel[COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]  
[COLOR=#0000FF]for[/COLOR] [COLOR=#000000]([/COLOR][COLOR=#000000] **var** [/COLOR] w:[COLOR=#0000FF]Number[/COLOR] = [COLOR=#000080]0[/COLOR]; w\<myImages.[COLOR=#0000FF]length[/COLOR]; w++[COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]  
[COLOR=#0000FF]for[/COLOR] [COLOR=#000000]([/COLOR][COLOR=#000000] **var** [/COLOR] c:[COLOR=#0000FF]Number[/COLOR] = [COLOR=#000080]0[/COLOR]; c\<myBigPanels.[COLOR=#0000FF]length[/COLOR]; c++[COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]  
currMovie[COLOR=#000000][[/COLOR][COLOR=#FF0000]“thumb”[/COLOR]+w[COLOR=#000000]][/COLOR].[COLOR=#000080]imgOver[/COLOR].[COLOR=#0000FF]\_alpha[/COLOR] = [COLOR=#000080]0[/COLOR];  
currMovie[COLOR=#000000][[/COLOR][COLOR=#FF0000]“thumb”[/COLOR]+w[COLOR=#000000]][/COLOR].[COLOR=#000080]imgOver[/COLOR].[COLOR=#0000FF]onRollOver[/COLOR] = [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]  
[COLOR=#0000FF]this[/COLOR].[COLOR=#0000FF]\_alpha[/COLOR] = [COLOR=#000080]20[/COLOR];  
[COLOR=#000000]}[/COLOR];  
currMovie[COLOR=#000000][[/COLOR][COLOR=#FF0000]“thumb”[/COLOR]+w[COLOR=#000000]][/COLOR].[COLOR=#000080]imgOver[/COLOR].[COLOR=#0000FF]onRollOut[/COLOR] = [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]  
[COLOR=#0000FF]this[/COLOR].[COLOR=#0000FF]\_alpha[/COLOR] = [COLOR=#000080]0[/COLOR];  
[COLOR=#000000]}[/COLOR];  
currMovie[COLOR=#000000][[/COLOR][COLOR=#FF0000]“thumb”[/COLOR]+w[COLOR=#000000]][/COLOR].[COLOR=#000080]imgOver[/COLOR].[COLOR=#0000FF]onRelease[/COLOR] = [COLOR=#000000] **function** [/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]  
big\_holder[COLOR=#000000][[/COLOR][COLOR=#FF0000]“big”[/COLOR]+c[COLOR=#000000]][/COLOR].[COLOR=#0000FF]\_visible[/COLOR] = !big\_holder[COLOR=#000000][[/COLOR][COLOR=#FF0000]“big”[/COLOR]+c[COLOR=#000000]][/COLOR].[COLOR=#0000FF]\_visible[/COLOR];  
[COLOR=#808080]_//big\_holder[“big”+c].\_x = Stage.width/2;_[/COLOR]  
[COLOR=#808080]_//big\_holder[“big”+c].\_y = Stage.height/2;_[/COLOR]  
[COLOR=#000000]}[/COLOR];  
[COLOR=#000000]}[/COLOR]  
[COLOR=#000000]}[/COLOR]  
[COLOR=#000000]}[/COLOR]  
[/LEFT]  
[/FONT]

currMovie[“thumb”+w].imgOver.onRelease should make one of the big panels make visible.  
so thumb0 should open big0, thumb1 should open big1 etc. but now with this code thumb0 opens big1, thumb1 opens big2, why big panel nr1 (big1) is missing somewhere ?  
Any ideas ?

Sorry for my english and thanks in advance.
