i have a flash button with rollover effects all coded in as3, i have checked in all mac browsers it works great but the rollover effects doesnt seem to work at all on a windows platform whihc is very strange…
heres the html http://www.zirkuscreative.com/mckibbin/site/foryou.html
heres the code:
import caurina.transitions.*;
import flash.net.navigateToURL;
import flash.net.URLRequest;
var req:URLRequest = new URLRequest(“http://www.zirkuscreative.com/mckibbin/site/services.htm”);
see.alpha = 0;
addEventListener(Event.ENTER_FRAME, fadeIn);
function fadeIn(e:Event):void {
Tweener.addTween(see, {alpha:1, time:0.7, transition:“linear”});
}
butt.addEventListener(MouseEvent.ROLL_OVER, butt_ROLLOVER);
function butt_ROLLOVER(e:MouseEvent):void
{
if(alphaSlide.width == 278.9) {
Tweener.addTween(alphaSlide, {width:210, time:0.3, transition:“linear”});
Tweener.addTween(back,{_saturation:10,time:0.3,transition:“linear”});
Tweener.addTween(roundArrow, {rotation: -180, x: 210, time:0.3, transition:“linear”});
butt.removeEventListener(MouseEvent.ROLL_OVER, butt_ROLLOVER);
butt.addEventListener(MouseEvent.ROLL_OUT,butt_ROLLOUT);
}
}
function butt_ROLLOUT(e:MouseEvent):void
{
if(alphaSlide.width == 210) {
Tweener.addTween(alphaSlide, {width:278.9, time:0.8, transition:“easeOutBounce”});
Tweener.addTween(back, {_saturation: 100, time: 0.3, transition:“linear”});
butt.addEventListener(MouseEvent.ROLL_OVER, butt_ROLLOVER);
Tweener.addTween(roundArrow, {rotation: 0, x: 275, time:0.8, transition:“easeOutBounce”});
}
}
butt.addEventListener(MouseEvent.CLICK, butt_CLICK);
function butt_CLICK(e:MouseEvent):void {
navigateToURL(req, '_self');
}
id be grateful if anyone could point out my mistake…
cheers