# Loading one AS3 swf into another - how to access properties?

**URL:** <https://forum.kirupa.com/t/loading-one-as3-swf-into-another-how-to-access-properties/267897>\
**Category:** flash\
**Created:** [August 6, 2008, 11:37pm UTC](https://forum.kirupa.com/t/loading-one-as3-swf-into-another-how-to-access-properties/267897 "2008-08-06T23:37:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tibberous](https://avatars.discourse-cdn.com/v4/letter/t/cdc98d/32.png) [@tibberous](https://forum.kirupa.com/u/tibberous)\
**Post date:** [August 6, 2008, 11:37pm UTC](https://forum.kirupa.com/t/loading-one-as3-swf-into-another-how-to-access-properties/267897/1 "2008-08-06T23:37:44Z")

</div>

I have an swf with a main document class and some public properties.

```php

public class loaded extends MovieClip{
 public var x:String = 'readme';
}

```

Now, I load that in. If I do…

```php

function onInitHandler(loadEvent:Event){
	trace(loader.content);
}

```

I get [object loaded]

But I can’t access any properties. If I try to read x, it gives me an error.

Does anyone know how I do this?
