Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Image Gallery in Director

Status
Not open for further replies.

PDoctor

Technical User
Aug 31, 2005
1
GB
Hello

I need to create a simple image gallery in Director
with pervious and next buttons.

Can someone help please

Thanks for any help
 
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).

Kenneth Kawamoto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top