# Swf file works great on mac but not windows

**URL:** https://forum.kirupa.com/t/swf-file-works-great-on-mac-but-not-windows/253914
**Category:** Uncategorized
**Created:** [March 6, 2008, 2:02pm UTC](https://forum.kirupa.com/t/swf-file-works-great-on-mac-but-not-windows/253914 "2008-03-06T14:02:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![forbes](https://avatars.discourse-cdn.com/v4/letter/f/9fc348/32.png) [@forbes](https://forum.kirupa.com/u/forbes)
#### Post date: [March 6, 2008, 2:02pm UTC](https://forum.kirupa.com/t/swf-file-works-great-on-mac-but-not-windows/253914/1 "2008-03-06T14:02:08Z")

</div>

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](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](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
