# I Just Dont Understand!

**URL:** <https://forum.kirupa.com/t/i-just-dont-understand/275820>\
**Category:** Uncategorized\
**Created:** [November 19, 2008, 12:33am UTC](https://forum.kirupa.com/t/i-just-dont-understand/275820 "2008-11-19T00:33:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![obmon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/obmon/32/3503_2.png) [@obmon](https://forum.kirupa.com/u/obmon)\
**Post date:** [November 19, 2008, 12:33am UTC](https://forum.kirupa.com/t/i-just-dont-understand/275820/1 "2008-11-19T00:33:24Z")

</div>

in the following code:

```php

// Place season choice buttons
        for (i = 1; i <= numSeasons; i++) {
            thisSeason = setSeasonVar["seasonString"+i];
            currSeasonHidden = setSeasonVar["season"+i];
            var mcName:String = "MC_seasonChoice"+i;
            var depthToUse:Number = 1001+i;
            var seasonChoiceXPos:Number = 100 + (i*75);
            
            // Add season choice
            seasonNavHolder.attachMovie("MC_seasonChoice", mcName, depthToUse, {_x:seasonChoiceXPos, _y:65, txt_seasonChoice:thisSeason});
            
            // Give season choice button actions
            var curr_button = seasonNavHolder[mcName];
            curr_button.season = currSeasonHidden;
            curr_button.thisSeason = thisSeason;
            curr_button.onPress = function() {
                trace(this.thisSeason);
                trace(this._parent);
                
                this._parent.txt_thisSeason.text = this.thisSeason;
                //_root.MC_stageHolder.MC_seasonSelectNav.txt_thisSeason.text = this.thisSeason;
                
                var tweenSeasonNav:Tween = new Tween(this._parent, "_y", Strong.easeOut, this._parent._y, 140, 10, false);
            }
        }

```

this line:

```php
trace(this._parent);

```

points to the right movie clip

and the text file in this movie clip is called “txt\_thisSeason”

then why doesn’t the very following line:

```php
this._parent.txt_thisSeason.text = this.thisSeason;

```

work?!?!?!

IM GOING CRAZY!.. I HATE FLASH SCOPE!!!

```php

```
