A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: previous image button

  1. #1
    Member
    Join Date
    Oct 2008
    Posts
    42

    Unhappy previous image button

    i get this error Error #2044: Unhandled ioError:. text=Error #2035: URL Not Found. URL: file:///E|/media%20work/flash/slideshow/


    Code:
    back.addEventListener(
        MouseEvent.CLICK,
        function(evt:MouseEvent):void {
            currentImage--;
            if (currentImage == xml.slide.length()-1) {
                currentImage < 0;
            }
            images.selectedIndex = currentImage;
            changePicture(currentImage);
        
        }
    );

  2. #2
    Total Universe Mod jAQUAN's Avatar
    Join Date
    Jul 2000
    Location
    Honolulu
    Posts
    2,429
    currentImage < 0 is not a command, its a condition.
    You probably want this:

    PHP Code:
    back.addEventListener(
        
    MouseEvent.CLICK,
        function(
    evt:MouseEvent):void {
            
    currentImage--;
            if (
    currentImage 0) {
                
    currentImage xml.slide.length()-1;
            }
            
    images.selectedIndex currentImage;
            
    changePicture(currentImage);
        
        }
    ); 

  3. #3
    Member
    Join Date
    Oct 2008
    Posts
    42
    thank you so much

    been racking my brain for 3 days

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