# External SWF Loading

**URL:** <https://forum.kirupa.com/t/external-swf-loading/271466>\
**Category:** flash\
**Created:** [September 23, 2008, 2:26pm UTC](https://forum.kirupa.com/t/external-swf-loading/271466 "2008-09-23T14:26:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![djnorthyy](https://avatars.discourse-cdn.com/v4/letter/d/779978/32.png) [@djnorthyy](https://forum.kirupa.com/u/djnorthyy)\
**Post date:** [September 23, 2008, 2:26pm UTC](https://forum.kirupa.com/t/external-swf-loading/271466/1 "2008-09-23T14:26:26Z")

</div>

I am currently working on a project which requires the use of Away3D. What I have done is created a main SWF which has the main menu then loads the content via external swf’s. I have created these SWF’s which have heavy use of of Away3D, and they run fine when played on their own, but when I tried to play them through the main SWF, Flash kicks up the error:

```auto
TypeError: Error #1009: Cannot access a property or method of a null object reference .
    at away3d.core.clip::Clipping/screen()
    at away3d.containers::View3D/clear()
    at away3d.containers::View3D/render()
    at WorldDoc/onEnterFrame()
TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at away3d.core.clip::Clipping/screen()
    at away3d.containers::View3D/clear()
    at away3d.containers::View3D/render()
    at WorldDoc/onEnterFrame(

```

Any idea on how to fix this?This error is repeated hundreds of times whil,e the movie is running in the output panel.  
Harry.
