# Problem externally loading swf

**URL:** <https://forum.kirupa.com/t/problem-externally-loading-swf/278832>\
**Category:** Uncategorized\
**Created:** [January 6, 2009, 2:02pm UTC](https://forum.kirupa.com/t/problem-externally-loading-swf/278832 "2009-01-06T14:02:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![scarjoh](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@scarjoh](https://forum.kirupa.com/u/scarjoh)\
**Post date:** [January 6, 2009, 2:02pm UTC](https://forum.kirupa.com/t/problem-externally-loading-swf/278832/1 "2009-01-06T14:02:54Z")

</div>

i am trying to load en external swf file, here is the code which for it:

[http://pastie.org/353753](http://pastie.org/353753)

the swf that i am trying to load also has some code in it:

[http://pastie.org/353759](http://pastie.org/353759)

(it loads one image aside and a text into a dynamic textfield, and it works fine on its own)

now, if i test my main movie this way, i get an error:

“TypeError: Error #1009: Cannot access a property or method of a null object reference.  
at Content2\_fla::MainTimeline/Content2\_fla::frame1()”

what i also noticed that if i remove first two lines of my code in the swf file, like this:

[http://pastie.org/353761](http://pastie.org/353761)

and then test my main movie, i get this errors:

“Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: file:///G|/flash%20%20sites%5Factionscript%203/%5F%5FWEB%201/moj%20pokusaj%202/Content.txt  
at Content2\_fla::MainTimeline/Content2\_fla::frame1()  
Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.”

* * *

i really dont know how to solve this on my own, somebody please point me in the right direction… ☹

my main movie is in a one folder along with an xml file which holds the link to the swf file i am trying to load.  
the swf file is located in a subfolder below along with the “Content.txt” and “Image.jpg” which i am loading in the swf.
