# Access methods/properties of embedded swf

**URL:** https://forum.kirupa.com/t/access-methods-properties-of-embedded-swf/327185
**Category:** Uncategorized
**Created:** [February 11, 2012, 3:24pm UTC](https://forum.kirupa.com/t/access-methods-properties-of-embedded-swf/327185 "2012-02-11T15:24:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![tbo](https://avatars.discourse-cdn.com/v4/letter/t/7feea3/32.png) [@tbo](https://forum.kirupa.com/u/tbo)
#### Post date: [February 11, 2012, 3:24pm UTC](https://forum.kirupa.com/t/access-methods-properties-of-embedded-swf/327185/1 "2012-02-11T15:24:37Z")

</div>

Sorry if I am just being stupid…

```php
import flash.display.MovieClip;

[Embed(source = 'embed.swf')]
var MainGame:Class;

var m:MovieClip= new MainGame;
addChild(m);

m.poo();

```

ReferenceError: Error #1069: Property poo not found on embed1\_fla.MainTimeline\_MainGame and there is no default value.  
at embed1\_fla::MainTimeline/frame1()

(embed1\_fla is is trying to embed the swf named _embed.swf_)
