# Access class inside loaded SWF

**URL:** <https://forum.kirupa.com/t/access-class-inside-loaded-swf/264820>\
**Category:** flash\
**Created:** [June 30, 2008, 10:20pm UTC](https://forum.kirupa.com/t/access-class-inside-loaded-swf/264820 "2008-06-30T22:20:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RickDangerous](https://avatars.discourse-cdn.com/v4/letter/r/9de053/32.png) [@RickDangerous](https://forum.kirupa.com/u/RickDangerous)\
**Post date:** [June 30, 2008, 10:20pm UTC](https://forum.kirupa.com/t/access-class-inside-loaded-swf/264820/1 "2008-06-30T22:20:13Z")

</div>

Hello

I have a problem i can’t really figure out. Here’s the case.  
I have a .fla with a document class. Inside the documentClass i load another SWF. The SWF loaded has objects with Classes linked. Like: “com.menu.item”.  
When i have loaded the SWF i can access the objects through the following from my documentClass:

```auto
import com.menu.item;
var _item: item = new item()
addChild(_item)

```

This works fine and i can see the object being added. The problem is that the object has a timeline and that timeline doesn’t work. A simple stop is not triggered. It just loops.

If i do the same within a documentClass on the loaded SWf, the stop() works.

Anyone have an idea how to fix that?

Any help appreciated  
Regards  
Rick
