# Loading an AS2 swf into an AS3 swf

**URL:** https://forum.kirupa.com/t/loading-an-as2-swf-into-an-as3-swf/258152
**Category:** Uncategorized
**Created:** [April 21, 2008, 2:55pm UTC](https://forum.kirupa.com/t/loading-an-as2-swf-into-an-as3-swf/258152 "2008-04-21T14:55:10Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Dom\_1](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@Dom\_1](https://forum.kirupa.com/u/Dom_1)
#### Post date: [April 21, 2008, 2:55pm UTC](https://forum.kirupa.com/t/loading-an-as2-swf-into-an-as3-swf/258152/1 "2008-04-21T14:55:10Z")

</div>

hi,  
is there any “proper” way to do this ?  
i’m trying to load a swf with some as2 code into a swf file coded in as3, I am using a Loader object and when trying to load the as2 swf file i keep getting this:

**TypeError** : **Error** # **1009** : Cannot access a property or method of a null object reference

thx for any help i can get

---

<div class="post-metadata">

### Author: ![shishimaru](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@shishimaru](https://forum.kirupa.com/u/shishimaru)
#### Post date: [June 9, 2008, 7:05pm UTC](https://forum.kirupa.com/t/loading-an-as2-swf-into-an-as3-swf/258152/2 "2008-06-09T19:05:42Z")

</div>

Thank you–

---

<div class="post-metadata">

### Author: ![Dom\_1](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@Dom\_1](https://forum.kirupa.com/u/Dom_1)
#### Post date: [June 10, 2008, 9:05am UTC](https://forum.kirupa.com/t/loading-an-as2-swf-into-an-as3-swf/258152/3 "2008-06-10T09:05:27Z")

</div>

neat! thanks alot  
Grant skinner also has some classes to take care of lc between as2 and as3 [here](http://www.gskinner.com/blog/archives/2007/07/swfbridge_easie.html)

---

<div class="post-metadata">

### Author: ![bgosh](https://avatars.discourse-cdn.com/v4/letter/b/e47c2d/32.png) [@bgosh](https://forum.kirupa.com/u/bgosh)
#### Post date: [July 11, 2008, 2:14pm UTC](https://forum.kirupa.com/t/loading-an-as2-swf-into-an-as3-swf/258152/4 "2008-07-11T14:14:23Z")

</div>

I am using the above .fla examples on this post by using a AS3 file that loads in an AS2 (AVM1 movie). The AS3 file loads in the AS2 swf just fine; however, the AS2 swf has a moviecliploader class within its script and once the AS2 file fires the loadClip function of the class none of the event listeners are called(i.e. onLoadStart, onLoadProgress, etc.). Does the AS3 root file ignore the movieClipLoader class within AVM1 movies?
