A Flash Developer Resource Site

Results 1 to 20 of 24

Thread: [CS3] Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.

Threaded View

  1. #1
    Junior Member
    Join Date
    Jun 2007
    Posts
    23

    [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.COMPLETEimage1Loader );

    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.COMPLETEimage1Loader2 );

        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.COMPLETEimageLoader );

    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.COMPLETEimageLoader2 );

        function 
    imageLoader2 event:Event ):void
        
    {
            
    loadTarget2.addChild imageLdr2.content );    
        }

    Last edited by Lexicon; 04-14-2008 at 05:21 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center