Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

creating slide shows in flash

New Here ,
Apr 27, 2010 Apr 27, 2010

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.

Capture.JPG

This is what the tutorial says to do, and as best as I can tell, I am doing just that:

Capture2.JPG

This is what part of my screen looks like:

Capture3.JPG

I would greatly appreciate any pointers, perhaps to a more current tutorial.

Many thanks!

christian

TOPICS
ActionScript
847
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 27, 2010 Apr 27, 2010

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 27, 2010 Apr 27, 2010

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 27, 2010 Apr 27, 2010

You're welcome Christian.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 27, 2010 Apr 27, 2010

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:

Capture.JPG

Here is the tutorial script:

Capture2.JPG

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 27, 2010 Apr 27, 2010

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 27, 2010 Apr 27, 2010
LATEST

Again, many thanks Ned - I will give that a try!

christian

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines