Dec 1, 2005 #1 hezaa Technical User Nov 30, 2005 2 US I have two button images that are jpegs. Is there a bit of code in actionscript to toggle between them on click? Thanks!
I have two button images that are jpegs. Is there a bit of code in actionscript to toggle between them on click? Thanks!
Dec 2, 2005 #2 seantuk Programmer Mar 22, 2005 62 GB put the two images on different frames in the same movieclip, and make the button code do this: on(press) { if(images_mc._currentframe == 1) { images_mc.gotoAndStop(2); } else { images_mc.gotoAndStop(1); } } if you don't like using frame number, use a boolean to record what picture is showing. Upvote 0 Downvote
put the two images on different frames in the same movieclip, and make the button code do this: on(press) { if(images_mc._currentframe == 1) { images_mc.gotoAndStop(2); } else { images_mc.gotoAndStop(1); } } if you don't like using frame number, use a boolean to record what picture is showing.