A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Multiple buttons in a slideshow

  1. #1
    Junior Member
    Join Date
    Oct 2009
    Posts
    2

    Multiple buttons in a slideshow

    I'm trying to link all the images in my slideshow to their respective pages in AS2. With the code below:


    Code:
    stop();
    
    next_btn.onRelease = function() {
    	if (_root._currentframe == 19) {
    		gotoAndStop(1);
    	} else {
    		nextFrame();
    	}
    };
    
    stop();
    
    prev_btn.onRelease = function() {
    	if (_root._currentframe == 1) {
    		gotoAndStop(19);
    	} else {
    		prevFrame();
    	}
    };
    
    cracked_sand.onRelease = function(){
    
        getURL("http://www.laisdilan.com/cracked_sand.html", "_self");
    
    }
    the cracked_sand button goes to the correct page. When I use the same onRelease code and just change instance names and URLs:
    Code:
    crackle.onRelease = function(){
    
        getURL("http://www.laisdilan.com/crackle.html", "_self");
    
    }
    it does not work. Do I need separate frames in the action layer or?


    LINK to .fla since it's just over the limit.

  2. #2
    Junior Member
    Join Date
    Oct 2009
    Posts
    2
    Looks like I was trying to add the code to the button instead of the images layer...

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