Image rollovers

Hi I need to make a flash intro where there is one main pic in the middle, and 3 images to its sides. when the user needs to roll over one of the outside image the main one turns to the one that is highlighted. then when you click on it it takes you to the corresponding page. :phil: i have attached this image so you can see what i mean. if someone could tell me where i can find a template or if so one can show me how to make it i would be very grateful.

Hi,
First in a movie clip, on on layer place you three images in a key frame each, next on a seperate layer - above your images place an invisible button, the same size as the images - you only nedd one, it has to cover all three frames, next plac a stop action on each key frame.
Drag your mc on stage, give it a instance name ( mainImage), then drag another on on stage, scale it to the size you want it to be, copy and past two times, so that you have three of the smaller images next to your main image, give each of these images an instance name… I am lousy at explaining things, perhaps better if I give you an example, back soon

SteveD

Hi,
Hope this is what you are looking for, all the code you need is on the button, inside the mc

Cheers

SteveD

That is EXACTLY what im after thanks a lot for your help. :tb:

Dan

Ok, Ive managed too replace the existing pics with my own. but how do i get rid of the text saying, image 1 etc. also i have added another picture/button and changed its label to image 4 but how do i tell it that, that particular image/button is for image 4. does that make sense?

Hi Dude,
Not sure what you mean here, when you say duplicates, do you mean you have duplicated them in the library - if so there is no need to do that, if you look at the code, all you have to do is

1.) for each image make sure you give frame a label image1, image2, image3 etc,

2)for each button, copy and paste on the main stage and your buttons instance names - image1, image2, etc, that way you do not have to edit the rollOver code at all.

When you say different web pages, are these frames in Flash or www address
Let me know and I will edit the code for you

SteveD

Hi, ive edited my last post and we posted at the same time so i didnt see your instructions. but ive pretty much got it apart from the problems i mentioned above. also the web pages are just html pages.

Hey,
That nearly did my 'ed in then, I answered a post and the post wasn’t there, thought I was seeing things -and I have not had any booze or anything ( yet.)
First of if you name the label image4 and the fourth mc image4, you shouldn’t have to alter the code at all - its all self contained. To open up your html pages you need a simple getURL action, but it will have to be written like this :
[AS]on(release){
if (this== _parent.image1){
getURL(“etc etc”);
} else if (this == _parent.image2){
getURL(“etc etc”)[/AS]

you can get the drift from that.
To remove the text from the image, remove layer textBox from inside the mc - just delete it. You can also remove this line of code:
[AS] _parent.mainImage.imageBox = (_name);[/AS]

Does that do it ?

SteveD

Hmm now im really confused. :trout:
is there anychance you could add the other 3 images? then re post it. also i dont understand where i put the script for the get url. the place i thought was the button but that button serves all the pics :tie:

DAN

Hi,
Yep, thats riight one button, one mc for all the images, one line of code for the rollOver, and, unfortunately several lines of code for the getURL.
I make no apologies for the colours (lol!!!)

SteveD

Steve my friend, you are a genius :A+:
that works great. thanks alot for your help. :toad:

Dan