PDA

View Full Version : One Button, Different Content Each time it is rollover


gdesigner36
12-19-2007, 09:18 PM
Any one know where to start to have a button throttle between four different contents each time it is rolled onto by a user?

fentunfont
12-19-2007, 09:40 PM
a few ways:

1. through actionscript assign mouse listeners to a sprite, and have the sprite change its frame (or switch between multiple sprites)

2. have a button which when it detects a rollover, replaces itself with the next button (can a display object remove itself from its parent? havent actually tried)

i would probably go with option 1. either have one sprite with several keyframes (1 keyframe per rollover), or have several sprites but only display 1 at a time

gdesigner36
12-20-2007, 01:38 PM
How do you go about creating a sprite. can you point me to a tutorial that does what i am looking for?

Thanks A bunch