# \[Embed\] suddenly not working

**URL:** <https://forum.kirupa.com/t/embed-suddenly-not-working/316197>\
**Category:** flash\
**Created:** [November 15, 2010, 11:01pm UTC](https://forum.kirupa.com/t/embed-suddenly-not-working/316197 "2010-11-15T23:01:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![carrot](https://avatars.discourse-cdn.com/v4/letter/c/9de0a6/32.png) [@carrot](https://forum.kirupa.com/u/carrot)\
**Post date:** [November 15, 2010, 11:01pm UTC](https://forum.kirupa.com/t/embed-suddenly-not-working/316197/1 "2010-11-15T23:01:18Z")

</div>

Hello

I’ve been using the embed tag for a while and it has been working perfectly. I’ve got an XML file that I have embedded into my .swf, using

```auto
[Embed(source="nodes.xml", mimeType="application/octet-stream")]

```

as per [this site’s instructions](http://blog.mattmakesgames.com/2009/06/embedding-xml-in-as3.html) and I have had no problems with it. However it has just decided that it no longer wants to compile anymore, giving six errors on this line and this line only:

> 

Line 32 1180: Call to a possibly undefined method Embed.  
Line 32 1120: Access of undefined property source.  
Line 32 1120: Access of undefined property mimeType.  
Line 32 1180: Call to a possibly undefined method Embed.  
Line 32 1120: Access of undefined property source.  
Line 32 1120: Access of undefined property mimeType.

(Yes, 3 errors given twice each)

Does anyone have any idea what is happening? I had added a new function just before this error started appearing, but it had absolutely nothing to do with the embedding and the problem still happens after I comment out everything I added before the error.

This is in Flash CS5 by the way.
