I posted a question asking where to find help on adding navigation buttons to my swf slideshow. I have had many views but no comments. I dont want someone to do the work for me. I just want to know if it's possible and where I may be able to find documentation or tutorial on how to achieve this. Can someone please help and point me in the right direction.
Thanks for the reply. I'm just trying to learn this and it's a little overwhelming. I'm trying so hard to be able to get navigation set in the slideshow and just no luck so far. If you could point me in the right direction, it would be greatly appreciated. Can you also give me some advice on the best readable text to use in these slideshows. Once again thanks so much.
I'm sorry but it wont let me upload the file, what other options do I have, thanks in advance.
what in the what of the what, Framerate 0,30 O_O_O???? Now that's cheap
Make 4 buttons, Next Slide, Prev Slide, Play and Stop, with the instance names, next_btn, prev_btn, play_btn and stop_btn, and then use this code on your Frame replacing your old one:
Actionscript Code:
stop();
function autoSlide(){ if(currentFrame == totalFrames){ gotoAndStop(1); }else{ nextFrame(); } }
var timer = setInterval(autoSlide, 3000); varpause = false;
the key for this slide, is setInterval, which executes a function after a specified amount of milliseconds. This function goes to the next frame. With the play button, we clear the interval and set a new one, just in case people press the play button twice, making two intervals, and so on, which would mess up the whole slideshow. The stop button clears the interval, nothing else. The next button clears the interval, checks if the current frame on the timeline is equals to the last one, if it is, then go to the first frame, to make the slideshow loop, but if it's not, go to the next frame, and lastly, it checks if the boolean variable, pause, is equals to false, which it is when we press the play button, but not when we press the stop button, so if it's false, then start the interval again. Same goes for the prev button, the only modification is that we check if it's on the first frame, and then redirect to the last frame, and we go to the previous frame instead of the next one.
Hope this helps
DOWNLOAD FLA FILE ( press GREY download button, TinyUpload was down for some reason )
Last edited by Nig 13; 02-12-2012 at 10:29 AM.
I am back, guys ... and finally 18 :P
BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS
no, I was just implying that it was a cheap trick to make the Flash look like a slideshow by going to the next frame (aka playing) with a framerate of 0.30, 'cause that would make it play slowly :P
WOW, 1000th POST!!!!!!
I am back, guys ... and finally 18 :P
BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS
i'm definitly new and I was just playing around with it. Like I said I really appreciate any and all help. It's tough but I will get it together one day. I tried what you supplied me with, I created the 4 additional buttons and swapped the code out, but for some reason it kept causing issues. I'm about to start over and hopefully it was just a rookie mistake. Thanks again and I greatly appreciate the help. I would also appreciate it if you could point me to some good tutorial sites.
I'm sorry but I also wanted to ask if you might know why my text is getting cut off in some places on the flash. I have tried resizing and different fonts and still get the issues here and there.
by cutting off, if you mean continues off-screen, then click on your Textfield, open Properties Panel (CTRL+F3), under Paragraph section, change Single Line to Multiline (Multiline without anything, NOT Multiline no wrap)
Kirupa is definitely the best Actionscript tutorials website, just be aware of which Actionscript version's tutorial you are reading
I am back, guys ... and finally 18 :P
BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS
thanks so much, I will check Kirupa out tonight and try and learn a few things. I created the pics with text using photoshop cs3 and I would guess that is what you are referring to with changing single to multiple. I will get right on that. Thanks for all the help and have a great evening.