Quantcast
Channel: Adobe Community : All Content - Adobe Animate CC - General
Viewing all articles
Browse latest Browse all 13519

Creating a simple photo gallery.. buttons not working.

$
0
0

Im trying to create a photo gallery that when you click on the thumbnail image you get a blown up image on the screen. The user will then hit the little "x" button to return to the thumbnail page.

I have attached pictures of what they look like. My issues is that when the user clicks on the little "x" nothing happens on images 2-5. It works fine on image 1. I have fiddled with the code, creating different buttons, using the same button both with different instance names and with different. Still does not work. I do not get any error messages during test either. Im at a loss. Please help!

Here is the code as it stands: (ActionScript 3.0 using Flash CC)

function go_back1(event:MouseEvent):void {

  gotoAndStop(1)

}

close1.addEventListener(MouseEvent.CLICK, go_back1);

close2.addEventListener(MouseEvent.CLICK, go_back1);

close3.addEventListener(MouseEvent.CLICK, go_back1);

close4.addEventListener(MouseEvent.CLICK, go_back1);

close5.addEventListener(MouseEvent.CLICK, go_back1);

close6.addEventListener(MouseEvent.CLICK, go_back1);

main gall.JPG

 

gal img1.JPG


Viewing all articles
Browse latest Browse all 13519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>