# Scene 1	1046: Type was not found or was not a compile-time constant: btRewind

**URL:** <https://forum.kirupa.com/t/scene-1-1046-type-was-not-found-or-was-not-a-compile-time-constant-btrewind/331205>\
**Category:** Uncategorized\
**Created:** [June 12, 2013, 8:12pm UTC](https://forum.kirupa.com/t/scene-1-1046-type-was-not-found-or-was-not-a-compile-time-constant-btrewind/331205 "2013-06-12T20:12:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Telma\_Parada](https://avatars.discourse-cdn.com/v4/letter/t/9fc29f/32.png) [@Telma\_Parada](https://forum.kirupa.com/u/Telma_Parada)\
**Post date:** [June 12, 2013, 8:12pm UTC](https://forum.kirupa.com/t/scene-1-1046-type-was-not-found-or-was-not-a-compile-time-constant-btrewind/331205/1 "2013-06-12T20:12:47Z")

</div>

Hi, I can’t put a video on flash with actionscript because appears this error. I put this code, and the button are with instace name btRewind. I don’t understand why is not working…

movie.stop();

var previous:Boolean=false;  
var next:Boolean=false;

addEventListener(Event.ENTER\_FRAME, onAnimation);

function onAnimation(evt:Event):void {  
if (next) {  
movie.nextFrame();  
}  
if (previous) {  
movie.prevFrame();  
}  
}

btNext1.addEventListener(MouseEvent.MOUSE\_DOWN, onNextOn);  
btNext1.addEventListener(MouseEvent.MOUSE\_UP, onNextOff);  
btPrevious.addEventListener(MouseEvent.MOUSE\_DOWN, onPreviousOn);  
btPrevious.addEventListener(MouseEvent.MOUSE\_UP, onPreviousOff);  
btPlay.addEventListener(MouseEvent.MOUSE\_UP, onPlay);  
btRewind.addEventListener(MouseEvent.MOUSE\_UP, onRewind);

function onNextOn(evt:Event):void {  
next = true;  
}  
function onNextOff(evt:Event):void {  
next = false;  
}

function onPreviousOn(evt:Event):void {  
previous = true;  
}

function onPreviousOff(evt:Event):void {  
previous = false;  
}  
function onPlay(evt:Event):void {  
movie.play();  
}  
function onRewind(evt:Event):void {  
movie.gotoAndStop(1);  
}
