# Minor button prob

**URL:** <https://forum.kirupa.com/t/minor-button-prob/166447>\
**Category:** Uncategorized\
**Created:** [October 20, 2005, 12:24am UTC](https://forum.kirupa.com/t/minor-button-prob/166447 "2005-10-20T00:24:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![frizzle\_fry](https://avatars.discourse-cdn.com/v4/letter/f/46a35a/32.png) [@frizzle\_fry](https://forum.kirupa.com/u/frizzle_fry)\
**Post date:** [October 20, 2005, 12:24am UTC](https://forum.kirupa.com/t/minor-button-prob/166447/1 "2005-10-20T00:24:39Z")

</div>

my buttons not loading the swf.  
heres the code im using for the button.

on (rollOver) {  
\_root.rollover.gotoAndPlay(“NEWS”);  
}  
on (rollOut) {  
\_root.rollover.gotoAndPlay(“NEWSOFF”);  
}  
on (release) {  
if (\_root.currMovie == undefined) {  
\_root.currMovie = “NEWS”;  
contents.loadMovie(“NEWS.swf”);  
} else if (\_root.currMovie != “NEWS”) {  
if (contents.\_currentframe\>=contents.midframe) {  
\_root.currMovie = “NEWS”;  
contents.play();  
}  
}  
}

the rollovers work and the code works in another fla. file, so i cant see where the problem is.  
can anyone help?😟

edit: its also not loading the swf when the file plays as with this code  
\_root.currMovie = “NEWS”;  
contents.loadMovie(\_root.currMovie+".swf");
