Copy link to clipboard
Copied
I am trying to teach myself to create slide shows in Flash. I have Flash CS4 Professional. I found a tutorial to do this for CS3, Action Script 2.0, here:
http://previews.learnflash.com/previews/flash/basicslideshow.html
It seems like a great tutorial. However, as I am following it, I can't make my slide show work as the tutorial demonstrates. Specificall, after creating the buttons as shown, my slide show will not stop at the next frame, but rapidly runs through all the slides.
I have worked with the tutorial for several days and can not get it to work for me. I get the below error messages when I follow the turorial.
This is what the tutorial says to do, and as best as I can tell, I am doing just that:
This is what part of my screen looks like:
I would greatly appreciate any pointers, perhaps to a more current tutorial.
Many thanks!
christian
Copy link to clipboard
Copied
The first image you show is probably the most telling, especially if the second image you show is taken from the tutorial and is not a screenshot of what you've done. Based on the error messages, you are using parentheses where you should be using curly braces.
next_btn.onRelease = function(){
nextFrame();
}
Also, just for the sake of it, check your Flash Publish Settings and make sure you have AS2 selected for the Actionscript version.
Copy link to clipboard
Copied
Hey Ned, thank you SO very much. The second image is indeed from the tutorial, and I was using parentheses instead of curly braces.
I was not aware of the different terminology - duhhhhh!!!
So, I am sure that is it!
Again, many thanks for taking the time to help!
christian
Copy link to clipboard
Copied
You're welcome Christian.
Copy link to clipboard
Copied
Hey Ned - I am so sorry. I got past the first hurdle, but now I can't get the slideshow to "gotoAndStop(1);"
Here is my script:
Here is the tutorial script:
And I simply am not able to see any difference. I checked and I have AS2 selected.
Thanks for your patience!
christian
=========
ps. here is the tutorial:
http://previews.learnflash.com/previews/flash/basicslideshow.html
Copy link to clipboard
Copied
The code looks reasonably okay, so you should test to see if your button is set up to deal with it. Adding the following line of code inside that onRelease function, outside of the conditional code...
trace("button works");
If you get that text appearing in your Output panel when you click the button, the button is set up properly. If you don't, then you need to be sure that you have assigned that instance name to the button (in the Properties panel where it says <Instance Name> when it's not assigned). If the name is asigned, make sure that code is executing in a frame where the buttons exists by that name.
Copy link to clipboard
Copied
Again, many thanks Ned - I will give that a try!
christian
Find more inspiration, events, and resources on the new Adobe Community
Explore Now