# Works in design mode but o in the player

**URL:** <https://forum.kirupa.com/t/works-in-design-mode-but-o-in-the-player/173310>\
**Category:** Uncategorized\
**Created:** [December 23, 2005, 9:22am UTC](https://forum.kirupa.com/t/works-in-design-mode-but-o-in-the-player/173310 "2005-12-23T09:22:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![9604\_9604\_9604](https://avatars.discourse-cdn.com/v4/letter/9/9f8e36/32.png) [@9604\_9604\_9604](https://forum.kirupa.com/u/9604_9604_9604)\
**Post date:** [December 23, 2005, 9:22am UTC](https://forum.kirupa.com/t/works-in-design-mode-but-o-in-the-player/173310/1 "2005-12-23T09:22:08Z")

</div>

i have this code that i get from [www.gotoandlearn.com](http://www.gotoandlearn.com) mi problem, whe i execute it, it works in the flash8 in designmode, but when i close flash and doubleclick the .swf file, it dosent work…? whats the problem?

[AS] import flash.display.BitmapData;  
//------------------------------  
win.setSize(160, 145);  
win.title = “Screenshots”;  
win.closeButton = true;  
win.\_visible = false;  
win.contentPath = “holder”;  
//------------------------------  
var winList:Object = new Object();  
winList.click = function() {  
win.\_visible = false;  
};  
//-------------------------------  
win.addEventListener(“click”, winList);  
butt.onRelease=function(){  
var bmd:BitmapData=new BitmapData(320,240)  
bmd.draw(vid)  
win.content.attachBitmap(bmd,1)  
win.content.\_width=160  
win.content.\_height=120  
win.\_visible=true  
}[/AS]
