# Question regarding controling object from child .as file

**URL:** <https://forum.kirupa.com/t/question-regarding-controling-object-from-child-as-file/303671>\
**Category:** Uncategorized\
**Created:** [January 24, 2010, 9:34pm UTC](https://forum.kirupa.com/t/question-regarding-controling-object-from-child-as-file/303671 "2010-01-24T21:34:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![oluc](https://avatars.discourse-cdn.com/v4/letter/o/cc9497/32.png) [@oluc](https://forum.kirupa.com/u/oluc)\
**Post date:** [January 24, 2010, 9:34pm UTC](https://forum.kirupa.com/t/question-regarding-controling-object-from-child-as-file/303671/1 "2010-01-24T21:34:19Z")

</div>

If I import pgming from one AS into an overall one like this:

```auto
import asFiles.slideshow.*;

public var slideshowAS:Slideshow;

//then later:

slideshowAS = new Slideshow;
mainSprite.addChild(slideshowAS);
//this code works fine in the the as file and loads fine

```

(mainSprite is a holder in the MainMenu .as file)

how do I control one object that is within that child .as file from the parent .as file?

so for instance if in the slideshowAS there is an item called “nextBtn” and I want to be able to do something with it in the parent main menu .as file.

If you could even direct me on what to search under I that would be very helpful! I tried googling it but did not know how to search for it.

Thanks!
