PDA

View Full Version : Mouse over problem


ksduded
07-03-2008, 08:19 PM
I am making a slide show. But instead, I want the the image to show when i move my mouse over a button . And if i click the button a url is opened up in a new window.

Button Instance Name: btn_show
Graphic Instance Name: image_slide

I tried putting this in the first frame of the button layer but its giving me an error :Mouse events are permitted only for button instances.

on (rollOver)
{
image_slide.alpha = 0;
}

please help

ramm19
07-15-2008, 06:49 PM
ksduded, your code it's not working because your are calling the image from the button code, it's best to call both of them from the timeline containing both MCs, would look something like this:

btn_show.onRollOver = function(){
image_slide.alpha = 100;
}