Flash 8 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript language elements > Global Functions > showRedrawRegions function | |||
showRedrawRegions(enable:Boolean, [color:Number]) : Void
Provides the ability for the debugger player to outline the regions of the screen that are being redrawn (that is, dirty regions that are being updated). The outlines can also be turned on with the Show Redraw Regions menu option.
Availability: ActionScript 1.0; Flash Player 8
enable:Boolean - Specifies whether to enable (true) or disable (false) redraw regions. When set to true, the redraw rectangles are shown. When set to false, the redraw rectangles are cleared.
color:Number [optional] - The color to draw with. The default is red: 0xFF0000.
The following example demonstrates the showRedrawRegions function.
var w:Number = 100;
var h:Number = 100;
var shape1:MovieClip = createShape("shape1");
shape1.onEnterFrame = function():Void {
this._x += 5;
this._y += 5;
}
var shape2:MovieClip = createShape("shape2");
shape2.onEnterFrame = function():Void {
this._y += 5;
}
_global.showRedrawRegions(true);
function createShape(name:String):MovieClip {
var mc:MovieClip = this.createEmptyMovieClip(name, this.getNextHighestDepth());
mc.beginFill(0xFFCC00);
mc.moveTo(200, 200);
mc.curveTo(300, 200, 300, 100);
mc.curveTo(300, 0, 200, 0);
mc.curveTo(100, 0, 100, 100);
mc.curveTo(100, 200, 200, 200);
mc.endFill();
return mc;
}
Version 8
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/8/main/00001768.html
Comments
No screen name said on Oct 12, 2005 at 2:48 AM : JanM said on Dec 1, 2005 at 8:26 AM : No screen name said on Dec 15, 2005 at 7:24 AM : gldnratio said on Apr 12, 2006 at 9:50 PM : Ashi_k said on Jun 6, 2007 at 3:11 AM : juankpro said on Aug 1, 2007 at 9:31 AM : juankpro said on Aug 1, 2007 at 9:33 AM :