# How to access a sprite on a "loaded" swf from parent stage

**URL:** <https://forum.kirupa.com/t/how-to-access-a-sprite-on-a-loaded-swf-from-parent-stage/293900>\
**Category:** flash\
**Created:** [August 5, 2009, 4:14pm UTC](https://forum.kirupa.com/t/how-to-access-a-sprite-on-a-loaded-swf-from-parent-stage/293900 "2009-08-05T16:14:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tpann](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tpann](https://forum.kirupa.com/u/tpann)\
**Post date:** [August 5, 2009, 4:14pm UTC](https://forum.kirupa.com/t/how-to-access-a-sprite-on-a-loaded-swf-from-parent-stage/293900/1 "2009-08-05T16:14:32Z")

</div>

I am creating a Flash training app that includes a glossary. You click a button and the glossary opens. The glossary loads thus:

```php
var request:URLRequest = new URLRequest("glossary.swf");
var loader:Loader = new Loader()
loader.load(request);
swfCont.addChild(loader);

```

The glossary has a scrollbar, and that scrollbar has this listener (among other things):

```php
scrollbar.addEventListener(MouseEvent.MOUSE_UP, stopScroll);

```

Once the glossary is loaded into my app, if I do a MOUSE\_DOWN on the scrollbar and then drag the mouse away from the glossary, onto the parent stage, then when I do a MOUSE\_UP on the parent stage, I need to dispatch a new MouseEvent.MOUSE\_UP event to the scrollbar in the glossary swf.

How do I access the scrollbar of glossary.swf in my dispatchEvent? In other words, in the following code in the parent:

```php

stage.addEventListener(MouseEvent.MOUSE_UP, glossarySBMouseUp);
function glossarySBMouseUp(me:MouseEvent):void {
     xxx.dispatchEvent (new MouseEvent(MouseEvent.MOUSE_UP));
}

```

…what’s xxx?
