The Flash Tour
Alright, onto assembling the flash tour.
- Break up the panoramic picture into roughly 3 equal parts. You could do this with 2 pictures that are wide enough each to cover the stage, however, Flash gets funky when the images get too far off the stage. So 3 smaller pictures is a safer bet, and that's what I've coded for.
- Place them in the appropriate movie clips: left, center and right. Line them yp in perfect, seamless, alignment. If they're out of aligment to begin with, they'll be perfectly out of alignment throughout.
- Keep all the movie clip's widths free of decimal points other than 0. (No '900.7' type widths). Otherwise, you'll get small gaps between your pictures. Remember, the movie clips determine the width of the picture they contain, not the other way around. You could have a picture 1000 pixels wide, but it will get stretched to 1015.5 pixels wide if that's how wide your movie clip is set to.
- If you change the stage's width, be sure to make the variable in the Action Script in Frame 1 reflect that.
Alright, for you "just gimme the .fla" types, you're all set. For a walk through of the code, see below.
For reference, a snapshot of the timeline:
In the above code, there's no "playing," in the usual sense. The play head gets sent via "Goto" to different frames only for time delay purposes, and the pictures are repositioned by Action Script's Set Property X Position, etc., creating the effect of motion.
First, I'll introduce the section of script to discuss, then I'll discuss it.
|» Level Advanced|
Rating: 7.76 Votes: 95
|No details available.|
|Download the files used in this tutorial.|
|Download (647 kb)|
|More help? Search our boards for quick answers!|