Search Tutorials
Adding function to buttonsWe now will add functions to the individual buttons. Frame 1: carshowWe add two more frames in the timeline and call the first frame ´menu´ and the second frame ´carshow´.
on (release) {
gotoAndPlay("carshow");
}
Frame 2: PreviewThe arguments for the preView function are 1 (firstSlide), 5 (lastSlide) and "nail_" (nailName). It is important to put the nailName into quotation marks, because it is a string. Arguments of other functions are similar.
on (release) {
preView(1,5,"nail_");
}
Menu
on (release) {
gotoAndStop("menu");
}
Next
on (release) {
nextSlide (1,5,"slide_","slide_")
}
Previous
on (release) {
previousSlide (1,5,"slide_","slide_")
}
Invisible buttons
on (release) {
showSlide(7,"slide_","slide_")
}
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|