I'm assuming the container doesn't have to redraw when the inside graphic is redrawn. Thanks a lot for the info.
--- In flexcoders@yahoogroups.com, "Michael VanDaniker" <[EMAIL PROTECTED]> wrote: > > This feels like comparing apple and oranges. Can you provide a bit > more information about the complexity of your graphics calls and how > you're able to consider them as replacements to move operations? > > The little test I just ran seems to show that graphics operations are > faster than calls to move. This isn't all that surprising as > UIComponent.move has some conditionals and dispatches an event. Of > course, my test doesn't account for the actual rendering of anything > -- just the time it takes to execute the instructions to tell Flash > Player how to render. > > var d:Number = getTimer(); > var num:Number = 100000; > var a:Number; > for(a = 0; a < num; a++) > { > button.move(Math.random() * 500,Math.random() * 500); > } > trace((getTimer() - d)) // Outputs ~1719 > > d = getTimer(); > for(a = 0; a < num; a++) > { > graphics.clear(); > graphics.lineStyle(1,0); > graphics.drawRect(0,0,Math.random() * 500,Math.random() * 500); > } > trace((getTimer() - d)) // Outputs ~257 >