# Easy help please - using a string to call an object

**URL:** <https://forum.kirupa.com/t/easy-help-please-using-a-string-to-call-an-object/191732>\
**Category:** flash\
**Created:** [June 22, 2006, 3:50pm UTC](https://forum.kirupa.com/t/easy-help-please-using-a-string-to-call-an-object/191732 "2006-06-22T15:50:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Loque](https://avatars.discourse-cdn.com/v4/letter/l/dfb087/32.png) [@Loque](https://forum.kirupa.com/u/Loque)\
**Post date:** [June 22, 2006, 3:50pm UTC](https://forum.kirupa.com/t/easy-help-please-using-a-string-to-call-an-object/191732/1 "2006-06-22T15:50:22Z")

</div>

Hi there,

Please help me understand why this does not work;

```php

this.floorplan.butt01.onPress = function(){
    floorplan.alphaTo(0, fadeOutTS, fadeOutTT, 0, 'revealNext(1)');
}

function revealNext(num){
    revealMC = ["page_"+num]
    trace(revealMC);
}

```

This returns a string value, page\_1 (instead of the usual Object path), but alas, if i change this one line to;

```php

revealMC = _root["page_"+num]

```

it will return the Object path (using ‘this’ doesnt, as i presume its reffering to the function). i can also put it in an MC on the stage, called “pages” and do;

```php

revealMC = pages["page_"+num]

```

please, please save me from this!

Many thanks,  
Loque
