Hey guys I have Flash CS3 and I just started working with flash. I was just wondering if there's and easy way to make a rotating banner ad? If you check out this site http://www.activerideshop.com/ they have one on there front page. I want to make one really similiar to that and I was just wondering if something like that is hard to make. If anyone has and ideas or suggestion I would really appreciate it thanks.
Welcome to the forum.
When you say rotating I think of angles. I assume you are speaking of the ads that slide from right to left pushing the other ads out of the way.
I know nothing of CS3. I'm stuck with Flash 8 Actionscript 2. You do not need actionscript for this. If it has a timeline here's what you can do.
Set your stage size for a new flash file and set the frame rate to 15 fps.
On any layer, import your first graphic onto the stage. Convert it to a symbol (ie. movieclip). Make it the size you want it.
Decide how many seconds you want the graphic to display. Myltiply it by 15 (ie. (3 seconds) * (15 frames per second) = 45 frames).
On the same layer that your new movieclip is on go to the frame you calculated and select that frame and push the F6 key. This will create a new key frame.
Determine how long you want the transition from one pix to the other. I'll use 1/2 sec or 15 frames. On the same layer as before select the frame that is 15 frames past the last one we created. Select key F6 again. This creates another key frame.
In this last keyframe left click on the graphic. Hold down the shift key and press the left arrow on the keyboard. Move the graphic until it is just off of the stage.Left mouse clich on the layer between the last two keyframes and right mouse click. There should be an option that says create motion tween. Left mouse click on that. An ar row should appear between these keyframes.
Now we'll do the same thing for the next graphic:
Insert a new layer. Its the little folder at the bottom of the tool bar.
On this new layer select the keyframe just below that of the original graphic just as it began to move.
Into this key frame import your next graphic. Convert it to a movieclip as you did before. Align it so that it is to the side of the first graphic.
Select the keyframe just below the one where the original(first) graphic stopped it's motion. Select the F6 key. Move the graphic to the centered position. Set the motion tween as you did before.
Now run the program.
You'll have to fix the beginning of the first graphic but this will have two graphics constantly replacing each other.
hope this helps,
The above ad will continue to transition between the graphics you choose.
If you want to stop the graphic when you click on it, you will have to add actionscript and a button/movieclip that is either visible or invisible.
Check out the attached. It is written in Flash 8 Actionscript 2 even though the code is as1.
Rename bannerAd.txt to bannerAd.fla and see if it gives you any ideas.
I would probably make two arrays. One with the images and one with the links. Like that whenever you select an image you can select the link thats comes with it.You can also make an multidimensional array but I prefer two seperate arrays.
_root.images = ["google.jpg","grafia.jpg","etc"];
In my previous post I included a file with links. My computer says the file is still being quequed.
I'll try again. Change the .txt to .fla.
Hope this helps.
it's not that hard for cs3.
check out the example on http://www.stixrideshop.com/ if you are lost. i hope it helps.
Thanks you guys. I also want to make a rotating banner on my website http://www.whatsappoppc.net but im a total flash noob.
But i think i will figure it out with this information
If you dont see me here again i have not failed ;)