Here’s a very basic example.
1. Place the images in the cast in the order of you want them to appear
2. Create the next and previous buttons and name them "Next button" and "Previous button"
3. Place the first image on stage - sprite channel 6 in this example
4. Place the buttons on stage
5. Attach the following behaviour script to the buttons
[tt]--
on mouseUp me
if sprite(me.spriteNum).member.name contains "Next" then
sprite(6).memberNum = sprite(6).memberNum + 1
else
sprite(6).memberNum = sprite(6).memberNum - 1
end if
end mouseUp
--[/tt]
The next step is to decide what to do when you reach the last image (and when you reach the first image with previous button).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.