i am trying to load en external swf file, here is the code which for it:
the swf that i am trying to load also has some code in it:
(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:
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.