flash question
- Started
- Last post
- 10 Responses
- itstimefortea
Hey.
I'm putting together a flash slideshow which has about 50 slides. The last time I did this, I put all the slides in one document and just got the left/right arrows to skip frames. This made the file pretty slow to work with.
I was thinking it would be easier to do each slide as a seperate swf and load them all into the same place.
The closest thing I've found is this...
http://www.flashandmath.com/inte…But its not quite right. I can't get a back button to work. Has anyone come across a simple tutorial for this? Or is there a way to get the one above to work?
I guess what I'm trying to do is navigate an array of swf's with the left/right arrows.
Any help is as always greatly appreciated!
Cheers.
- chrisRG0
yep, keep slides as images and controlled on an Array.
create a current var to control the current slide and increase/decrease its value according to the clicked arrow.* it'd be even better to store the images on an xml, could be reusable for you.
- ahli0
This is a start for you, take the Timer out and code in buttons :)
//Get the LoaderMax and GreenSock classes at http://www.greensock.com/
import com.greensock.*;
import com.greensock.loading.*;
import com.greensock.events.LoaderEvent...
import com.greensock.loading.display.*;var xml:XMLLoader;
var images;
var current = 0;
var previous;function init(){
LoaderMax.activate([ImageLoader...
xml = new XMLLoader("images.xml", {name:"images", onComplete:onXmlLoaded});
xml.load();
}function onXmlLoaded(e){
images = LoaderMax.getContent("images");
nextImage();}
function nextImage(){
TweenLite.from(images[current],1...
onStart:function(){
addChild(images[current]);
},
onComplete:function(){
if(previous){
removeChild(images[previous])
}
previous = current;
if(current<images.length-1){
current++;
}else{
current=0;
}
setTimeout(nextImage,2000);
}
});
}init();
- itstimefortea0
cool... thats very useful thanks.
I found this too which is close enough... 'cept it's in as2
- PIZZA0
"I was thinking it would be easier to do each slide as a seperate swf and load them all into the same place."
Just the thought of doing that is depressing me. Maybe you should just use Powerpoint or Keynote
- itstimefortea0
yeah i know what you mean. its like a demo of a retirement planner (contain your excitement) so some of the pages have bits of animation n stuff.
- ESKEMA0
you could use Indesign CS5 for this type of stuff. much more easy if you're not a flash guy.
- Ancillary0
You could definitely do it in HTML 5!
- vaxorcist0
will you probably have to change things at the last minute? i.e. sales guys add a slide between slide 22 and slide 23 and take one out near the end? if you have to do that, XML may be your friend....
- yeah exactly... skt just helped me out massively with a template which uses xml. sorted.itstimefortea
- vaxorcist0
will you probably have to change things at the last minute? i.e. sales guys add a slide between slide 22 and slide 23 and take one out near the end? if you have to do that, XML may be your friend....
- itstimefortea0
thanks again guys for all the help the other day. i just wanted to bump this thread with another actionscript question if i can...
i've got these sliders that change the value of a text box as you slide them back and forth. i'm trying to use math.round to round off the figures in the text box to the nearest 50.
this is the code...
slider1.changeHandler = function() {
box1.text = this.value;
}does anyone know how to use math.round to round the numbers off?
again any help would be amazing. thanks a lot!