property pStageW -- the width of the stage property pStageH -- the height of the stage on prepareFrame me -- determine the width and height of the stage pStageW = getStageWidth(me) pStageH = getStageHeight(me) end -- -- This behavior draws randomly sized, randomly colored dots -- all over the stage using imaging Lingo. Place this script in a -- frame script. No other sprites are needed for it to work. -- Ken Loge - http://diginoodles.com -- on exitFrame me -- get an image of the stage myImage = _movie.stage.image -- draw a randomly sized and colored line myImage.setPixel(point(random(pStageW), random(pStageH)), rgb(random(255), random(255), random(255))) _movie.go(_movie.frame) end -- get the width of the stage on getStageWidth me return _movie.stage.rect[3] - _movie.stage.rect[1] end -- get the height of the stage on getStageHeight me return _movie.stage.rect[4] - _movie.stage.rect[2] end