[CS3] Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.
hi,
i have a parent swf with images that when clicked loads another swf. the problems is that the child swf is not loading the images that correspond to the scrolling nav neither loads the other swfs. now, when i try the child alond it has no problem loading the images or the swfs.
the child swf is inside a folder called, "swfIndex"- inside such folder is the child and the folders holding the images and the swf for the child. bellow is the code.
parent swf load code:
PHP Code:
var image1URL:String = "swfIndex/" + basename1 + id1 + ".swf"
var image1Ldr:Loader = new Loader ();
var image1URLReq:URLRequest = new URLRequest ( thumb1URL );
image1Ldr.load ( image1URLReq );
image1Ldr.contentLoaderInfo.addEventListener ( Event.COMPLETE, image1Loader );
function image1Loader ( event:Event ):void
{
load1Target.addChild ( image1Ldr.content );
var image1Ldr2:Loader = new Loader ();
var image1URLReq:URLRequest = new URLRequest ( thumb1URL );
image1Ldr2.load ( image1URLReq );
image1Ldr2.contentLoaderInfo.addEventListener ( Event.COMPLETE, image1Loader2 );
function image1Loader2 ( event:Event ):void
{
load1Target2.addChild ( image1Ldr2.content );
}
}
child swf load code:
PHP Code:
var imageURL:String = "images/" + basename + id + ".swf"
var imageLdr:Loader = new Loader ();
var imageURLReq:URLRequest = new URLRequest ( thumbURL );
imageLdr.load ( imageURLReq );
imageLdr.contentLoaderInfo.addEventListener ( Event.COMPLETE, imageLoader );
function imageLoader ( event:Event ):void
{
loadTarget.addChild ( imageLdr.content );
var imageLdr2:Loader = new Loader ();
var imageURLReq:URLRequest = new URLRequest ( thumbURL );
imageLdr2.load ( imageURLReq );
imageLdr2.contentLoaderInfo.addEventListener ( Event.COMPLETE, imageLoader2 );
function imageLoader2 ( event:Event ):void
{
loadTarget2.addChild ( imageLdr2.content );
}
}