I'm by no means a Flash whiz. I use it from time to time to create relatively
simple animation for the web. A current project at work requires that we create
interactivity into the Flash page. Mainly, I just need to create buttons that
when clicked will play different sections of the timeline and stop (or just
switch the visible content in some other way). I can't for the life of me
figure this out, and it seems it should be easy. I could do it in html without
blinking an eye. The help files don't seem to be helping. At least I can't make
it work when I try to follow the extremely vague instructions.
Is there an easy way to explain how to make a button that allows
interactivity? Or is this going to be way beyond the abilities of a casual
user?
For the record, I'm still using Macromedia Flash. We won't be upgrading to
Adobe CS for this project, so if the process is different in CS than in the
Macromedia version, I'd need to know how to make it work in Macromedia.
Cireworx - 18 Jul 2008 19:29 GMT
Flash buttons work by adding actionscript to the buttons. Once you've created
the button, goto Windows Menu....and open up the Actions Menu. In the actions
window, your text to make it the button work should be an "on release" action.
It should look like the following:
on (release) {
gotoAndPlay (12);
}
.........or
on (release) {
gotoAndStop(12);
}
This will make the button goto Frame 12 on the time line.
jfraze - 22 Jul 2008 00:11 GMT
That works perfectly. I'm not sure what exactly I was doing wrong before, but I suppose I was just trying to make it more complex than necessary. Problem solved. Thanks.