Hi!
I'm trying to create a picture slideshow for my website in Flash.
I wanted to have a preloader for each time the user clicks the next button, for the image to load. What i have done is, I've got 3 preloader scenes, and three scenes with an image in each one.
I hoped that the movie would flow thru the scenes like this
You can not prevent Flash from loading. It will load all scenes no matter what you do.
Usually in image galleries and slide shows you just just one scene and one frame. This beacuse you load the images only when needed. So you would have all images ( jpg's ) lying on the server.
Normally you would have a empty movieclip ( target ) that you load the external images into...
Movieclip targets are what it sounds like. A empty movieclip placed on the stage just for the purpose of loading a swf file or jpg into it. The advantage is that you can place it anywhere, manually ( as opposed to loading in _levels) .
Usually you give the movieclip an instance name of container. ( you give a instance name by selecting the empty movieclip on stage and write the name in the Property Panel )
//To load a external jpg into a target movieclip from a button ( both being on the main timeline ).
I'm loaded all my jpegs in swf files and it works. I loaded them all inside an empty movieclip called container.
The thing is It will only load the first three images and then it goes back to the first.
In other words i click to the button --> the swf is loaded --> click the button again --> new swf is loaded etc. However whenever i click the button for the 4th time it goes back to the first picture..
if this helps, heres my button script
on(release){
gotoAndPlay(1);
container.loadMovie("boat1.swf");
}
-------------------- then two frames latter its the same script except its boat2.swf
Using nextFrame() Flash will always try to go to the next frame instead of defaulting to the first frame which gotoAndPlay will, unless you have a stop action in the last frame.