▄▄▄
December 23rd, 2005, 05:22 AM
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?
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
}
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
}