# How to incapsulate an as2 swf inside as3

**URL:** https://forum.kirupa.com/t/how-to-incapsulate-an-as2-swf-inside-as3/289662
**Category:** flash
**Created:** [June 3, 2009, 3:20am UTC](https://forum.kirupa.com/t/how-to-incapsulate-an-as2-swf-inside-as3/289662 "2009-06-03T03:20:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Kirbyprime](https://avatars.discourse-cdn.com/v4/letter/k/f475e1/32.png) [@Kirbyprime](https://forum.kirupa.com/u/Kirbyprime)
#### Post date: [June 3, 2009, 3:20am UTC](https://forum.kirupa.com/t/how-to-incapsulate-an-as2-swf-inside-as3/289662/1 "2009-06-03T03:20:09Z")

</div>

Wondering if anyone can help,

currently I’m working on an AS3 project and am trying to incorperate an as2 based swf into it.

Normally with all as3 based swfs I could simply use the loader and load in the swf. But with the as2 file it’s giving me the following error.

```auto

ArgumentError: Error #2180: It is illegal to move AVM1 content (AS1 or AS2) to a different part of the displayList when it has been loaded into AVM2 (AS3) content.
    at flash.display::DisplayObjectContainer/addChild()
    at guestbook_fla::MainTimeline/loadGame()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at com.twiggyandmanhim::ContentLoader/loadComplete()

```

Tried googling but it gave me stuff like bridges which I don’t need since the as2 file is fully independant.

Thanks in advance.
